// 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"
)

// GetWarsWarIDOKBodyAlliesItems get_wars_war_id_ally
//
// ally object
// swagger:model getWarsWarIdOKBodyAlliesItems

type GetWarsWarIDOKBodyAlliesItems struct {

	// get_wars_war_id_alliance_id
	//
	// Alliance ID if and only if this ally is an alliance
	AllianceID int32 `json:"alliance_id,omitempty"`

	// get_wars_war_id_corporation_id
	//
	// Corporation ID if and only if this ally is a corporation
	CorporationID int32 `json:"corporation_id,omitempty"`
}

/* polymorph getWarsWarIdOKBodyAlliesItems alliance_id false */

/* polymorph getWarsWarIdOKBodyAlliesItems corporation_id false */

// Validate validates this get wars war Id o k body allies items
func (m *GetWarsWarIDOKBodyAlliesItems) Validate(formats strfmt.Registry) error {
	var res []error

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

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

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