// 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 (
	"encoding/json"

	"github.com/go-openapi/errors"
	"github.com/go-openapi/strfmt"
	"github.com/go-openapi/validate"
)

// CentralDatadogControlAction central datadog control action
//
// swagger:model centralDatadogControlAction
type CentralDatadogControlAction string

const (

	// CentralDatadogControlActionDATADOGCONTROLACTIONUNSPECIFIED captures enum value "DATADOG_CONTROL_ACTION_UNSPECIFIED"
	CentralDatadogControlActionDATADOGCONTROLACTIONUNSPECIFIED CentralDatadogControlAction = "DATADOG_CONTROL_ACTION_UNSPECIFIED"

	// CentralDatadogControlActionDATADOGCONTROLACTIONENABLE captures enum value "DATADOG_CONTROL_ACTION_ENABLE"
	CentralDatadogControlActionDATADOGCONTROLACTIONENABLE CentralDatadogControlAction = "DATADOG_CONTROL_ACTION_ENABLE"

	// CentralDatadogControlActionDATADOGCONTROLACTIONDISABLE captures enum value "DATADOG_CONTROL_ACTION_DISABLE"
	CentralDatadogControlActionDATADOGCONTROLACTIONDISABLE CentralDatadogControlAction = "DATADOG_CONTROL_ACTION_DISABLE"
)

// for schema
var centralDatadogControlActionEnum []interface{}

func init() {
	var res []CentralDatadogControlAction
	if err := json.Unmarshal([]byte(`["DATADOG_CONTROL_ACTION_UNSPECIFIED","DATADOG_CONTROL_ACTION_ENABLE","DATADOG_CONTROL_ACTION_DISABLE"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		centralDatadogControlActionEnum = append(centralDatadogControlActionEnum, v)
	}
}

func (m CentralDatadogControlAction) validateCentralDatadogControlActionEnum(path, location string, value CentralDatadogControlAction) error {
	if err := validate.Enum(path, location, value, centralDatadogControlActionEnum); err != nil {
		return err
	}
	return nil
}

// Validate validates this central datadog control action
func (m CentralDatadogControlAction) Validate(formats strfmt.Registry) error {
	var res []error

	// value enum
	if err := m.validateCentralDatadogControlActionEnum("", "body", m); err != nil {
		return err
	}

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