// Code generated by go-swagger; DO NOT EDIT.

package ops

// This file was generated by the swagger tool.
// Editing this file might prove futile when you re-run the swagger generate command

import (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// JiraAlert jira alert
//
// swagger:model jira.Alert
type JiraAlert struct {

	// created at
	CreatedAt int64 `json:"created_at,omitempty"`

	// key
	Key string `json:"key,omitempty"`

	// name
	Name string `json:"name,omitempty"`

	// priority
	Priority string `json:"priority,omitempty"`

	// recovered
	Recovered bool `json:"recovered,omitempty"`

	// updated at
	UpdatedAt int64 `json:"updated_at,omitempty"`
}

// Validate validates this jira alert
func (m *JiraAlert) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this jira alert based on context it is used
func (m *JiraAlert) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

// MarshalBinary interface implementation
func (m *JiraAlert) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}

// UnmarshalBinary interface implementation
func (m *JiraAlert) UnmarshalBinary(b []byte) error {
	var res JiraAlert
	if err := swag.ReadJSON(b, &res); err != nil {
		return err
	}
	*m = res
	return nil
}
