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

// GetFleetsFleetIDOKBody get_fleets_fleet_id_ok
//
// 200 ok object
// swagger:model getFleetsFleetIdOKBody

type GetFleetsFleetIDOKBody struct {

	// get_fleets_fleet_id_is_free_move
	//
	// Is free-move enabled
	// Required: true
	IsFreeMove *bool `json:"is_free_move"`

	// get_fleets_fleet_id_is_registered
	//
	// Does the fleet have an active fleet advertisement
	// Required: true
	IsRegistered *bool `json:"is_registered"`

	// get_fleets_fleet_id_is_voice_enabled
	//
	// Is EVE Voice enabled
	// Required: true
	IsVoiceEnabled *bool `json:"is_voice_enabled"`

	// get_fleets_fleet_id_motd
	//
	// Fleet MOTD in CCP flavoured HTML
	// Required: true
	Motd *string `json:"motd"`
}

/* polymorph getFleetsFleetIdOKBody is_free_move false */

/* polymorph getFleetsFleetIdOKBody is_registered false */

/* polymorph getFleetsFleetIdOKBody is_voice_enabled false */

/* polymorph getFleetsFleetIdOKBody motd false */

// Validate validates this get fleets fleet Id o k body
func (m *GetFleetsFleetIDOKBody) Validate(formats strfmt.Registry) error {
	var res []error

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

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

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

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

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

func (m *GetFleetsFleetIDOKBody) validateIsFreeMove(formats strfmt.Registry) error {

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

	return nil
}

func (m *GetFleetsFleetIDOKBody) validateIsRegistered(formats strfmt.Registry) error {

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

	return nil
}

func (m *GetFleetsFleetIDOKBody) validateIsVoiceEnabled(formats strfmt.Registry) error {

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

	return nil
}

func (m *GetFleetsFleetIDOKBody) validateMotd(formats strfmt.Registry) error {

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

	return nil
}

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

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