// Code generated by go-swagger; DO NOT EDIT.

package model

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

// DataflowVolumeBackupSetting dataflow volume backup setting
//
// swagger:model dataflowVolumeBackupSetting
type DataflowVolumeBackupSetting struct {

	// description
	Description string `json:"description,omitempty"`

	// whether open ebs feature
	Enable bool `json:"enable,omitempty"`

	// whether user can set ebs
	Hidden bool `json:"hidden,omitempty"`
}

// Validate validates this dataflow volume backup setting
func (m *DataflowVolumeBackupSetting) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this dataflow volume backup setting based on context it is used
func (m *DataflowVolumeBackupSetting) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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