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

// GetUniverseStargatesStargateIDOKBodyDestination get_universe_stargates_stargate_id_destination
//
// destination object
// swagger:model getUniverseStargatesStargateIdOKBodyDestination

type GetUniverseStargatesStargateIDOKBodyDestination struct {

	// get_universe_stargates_stargate_id_stargate_id
	//
	// The stargate this stargate connects to
	// Required: true
	StargateID *int32 `json:"stargate_id"`

	// get_universe_stargates_stargate_id_system_id
	//
	// The solar system this stargate connects to
	// Required: true
	SystemID *int32 `json:"system_id"`
}

/* polymorph getUniverseStargatesStargateIdOKBodyDestination stargate_id false */

/* polymorph getUniverseStargatesStargateIdOKBodyDestination system_id false */

// Validate validates this get universe stargates stargate Id o k body destination
func (m *GetUniverseStargatesStargateIDOKBodyDestination) Validate(formats strfmt.Registry) error {
	var res []error

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

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

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

func (m *GetUniverseStargatesStargateIDOKBodyDestination) validateStargateID(formats strfmt.Registry) error {

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

	return nil
}

func (m *GetUniverseStargatesStargateIDOKBodyDestination) validateSystemID(formats strfmt.Registry) error {

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

	return nil
}

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

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