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

package models

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

import (
	strfmt "github.com/go-openapi/strfmt"

	"github.com/go-openapi/errors"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)

// GetDogmaEffectsEffectIDOKBodyModifiersItems get_dogma_effects_effect_id_modifier
//
// modifier object
// swagger:model getDogmaEffectsEffectIdOKBodyModifiersItems

type GetDogmaEffectsEffectIDOKBodyModifiersItems struct {

	// get_dogma_effects_effect_id_domain
	//
	// domain string
	Domain string `json:"domain,omitempty"`

	// get_dogma_effects_effect_id_effect_id
	//
	// effect_id integer
	EffectID int32 `json:"effect_id,omitempty"`

	// get_dogma_effects_effect_id_func
	//
	// func string
	// Required: true
	Func *string `json:"func"`

	// get_dogma_effects_effect_id_modified_attribute_id
	//
	// modified_attribute_id integer
	ModifiedAttributeID int32 `json:"modified_attribute_id,omitempty"`

	// get_dogma_effects_effect_id_modifying_attribute_id
	//
	// modifying_attribute_id integer
	ModifyingAttributeID int32 `json:"modifying_attribute_id,omitempty"`

	// get_dogma_effects_effect_id_operator
	//
	// operator integer
	Operator int32 `json:"operator,omitempty"`
}

/* polymorph getDogmaEffectsEffectIdOKBodyModifiersItems domain false */

/* polymorph getDogmaEffectsEffectIdOKBodyModifiersItems effect_id false */

/* polymorph getDogmaEffectsEffectIdOKBodyModifiersItems func false */

/* polymorph getDogmaEffectsEffectIdOKBodyModifiersItems modified_attribute_id false */

/* polymorph getDogmaEffectsEffectIdOKBodyModifiersItems modifying_attribute_id false */

/* polymorph getDogmaEffectsEffectIdOKBodyModifiersItems operator false */

// Validate validates this get dogma effects effect Id o k body modifiers items
func (m *GetDogmaEffectsEffectIDOKBodyModifiersItems) Validate(formats strfmt.Registry) error {
	var res []error

	if err := m.validateFunc(formats); err != nil {
		// prop
		res = append(res, err)
	}

	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}

func (m *GetDogmaEffectsEffectIDOKBodyModifiersItems) validateFunc(formats strfmt.Registry) error {

	if err := validate.Required("func", "body", m.Func); err != nil {
		return err
	}

	return nil
}

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

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