// 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 (
	"context"

	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
)

// UpdateFolderCommand UpdateFolderCommand captures the information required by the folder service
// to update a folder. Use Move to update a folder's parent folder.
//
// swagger:model UpdateFolderCommand
type UpdateFolderCommand struct {

	// NewDescription it's an optional parameter used for overriding the existing folder description
	Description string `json:"description,omitempty"`

	// Overwrite only used by the legacy folder implementation
	Overwrite bool `json:"overwrite,omitempty"`

	// NewTitle it's an optional parameter used for overriding the existing folder title
	Title string `json:"title,omitempty"`

	// Version only used by the legacy folder implementation
	Version int64 `json:"version,omitempty"`
}

// Validate validates this update folder command
func (m *UpdateFolderCommand) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this update folder command based on context it is used
func (m *UpdateFolderCommand) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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