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

// PutFleetsFleetIDParamsBody put_fleets_fleet_id_new_settings
//
// new_settings object
// swagger:model putFleetsFleetIdParamsBody

type PutFleetsFleetIDParamsBody struct {

	// put_fleets_fleet_id_is_free_move
	//
	// Should free-move be enabled in the fleet
	IsFreeMove bool `json:"is_free_move,omitempty"`

	// put_fleets_fleet_id_motd
	//
	// New fleet MOTD in CCP flavoured HTML
	Motd string `json:"motd,omitempty"`
}

/* polymorph putFleetsFleetIdParamsBody is_free_move false */

/* polymorph putFleetsFleetIdParamsBody motd false */

// Validate validates this put fleets fleet Id params body
func (m *PutFleetsFleetIDParamsBody) Validate(formats strfmt.Registry) error {
	var res []error

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

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

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