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

// HandlersSubConfigRequest handlers sub config request
//
// swagger:model handlers.SubConfigRequest
type HandlersSubConfigRequest struct {

	// configuration
	Configuration []int64 `json:"configuration"`

	// did
	Did []int64 `json:"did"`

	// feature id
	FeatureID string `json:"feature_id,omitempty"`

	// hw version
	HwVersion string `json:"hw_version,omitempty"`

	// mask
	Mask []int64 `json:"mask"`

	// name
	Name string `json:"name,omitempty"`

	// pid
	Pid []int64 `json:"pid"`

	// sw version
	SwVersion string `json:"sw_version,omitempty"`
}

// Validate validates this handlers sub config request
func (m *HandlersSubConfigRequest) Validate(formats strfmt.Registry) error {
	return nil
}

// ContextValidate validates this handlers sub config request based on context it is used
func (m *HandlersSubConfigRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}

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

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