func (m *RuleWaiver) MarshalBinary() ([]byte, error) {
	if m == nil {
		return nil, nil
	}
	return swag.WriteJSON(m)
}
MarshalBinary interface implementation
package models
import (
	"github.com/go-openapi/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/swag"
	"github.com/go-openapi/validate"
)
type RuleWaiver struct {
	Comment string `json:"comment,omitempty"`
	CreatedAt int64 `json:"created_at,omitempty"`
	CreatedBy string `json:"created_by,omitempty"`
	CreatedByDisplayName string `json:"created_by_display_name,omitempty"`
	EnvironmentID *string `json:"environment_id"`
	EnvironmentName string `json:"environment_name,omitempty"`
	ID *string `json:"id"`
	Name *string `json:"name"`
	ResourceID *string `json:"resource_id"`
	ResourceProvider *string `json:"resource_provider"`
	ResourceTag string `json:"resource_tag,omitempty"`
	ResourceType *string `json:"resource_type"`
	RuleComplianceMapping interface{} `json:"rule_compliance_mapping,omitempty"`
	RuleDescription string `json:"rule_description,omitempty"`
	RuleID *string `json:"rule_id"`
	UpdatedAt int64 `json:"updated_at,omitempty"`
	UpdatedBy string `json:"updated_by,omitempty"`
	UpdatedByDisplayName string `json:"updated_by_display_name,omitempty"`
}
func (m *RuleWaiver) Validate(formats strfmt.Registry) error {
	var res []error
	if err := m.validateEnvironmentID(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateID(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateName(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateResourceID(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateResourceProvider(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateResourceType(formats); err != nil {
		res = append(res, err)
	}
	if err := m.validateRuleID(formats); err != nil {
		res = append(res, err)
	}
	if len(res) > 0 {
		return errors.CompositeValidationError(res...)
	}
	return nil
}
func (m *RuleWaiver) validateEnvironmentID(formats strfmt.Registry) error {
	if err := validate.Required("environment_id", "body", m.EnvironmentID); err != nil {
		return err
	}
	return nil
}
func (m *RuleWaiver) validateID(formats strfmt.Registry) error {
	if err := validate.Required("id", "body", m.ID); err != nil {
		return err
	}
	return nil
}
func (m *RuleWaiver) validateName(formats strfmt.Registry) error {
	if err := validate.Required("name", "body", m.Name); err != nil {
		return err
	}
	return nil
}
func (m *RuleWaiver) validateResourceID(formats strfmt.Registry) error {
	if err := validate.Required("resource_id", "body", m.ResourceID); err != nil {
		return err
	}
	return nil
}
func (m *RuleWaiver) validateResourceProvider(formats strfmt.Registry) error {
	if err := validate.Required("resource_provider", "body", m.ResourceProvider); err != nil {
		return err
	}
	return nil
}
func (m *RuleWaiver) validateResourceType(formats strfmt.Registry) error {
	if err := validate.Required("resource_type", "body", m.ResourceType); err != nil {
		return err
	}
	return nil
}
func (m *RuleWaiver) validateRuleID(formats strfmt.Registry) error {
	if err := validate.Required("rule_id", "body", m.RuleID); err != nil {
		return err
	}
	return nil
}