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

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

// HashicorpCloudNetwork20200907DNSForwardingResponseState hashicorp cloud network 20200907 DNS forwarding response state
//
// swagger:model hashicorp.cloud.network_20200907.DNSForwardingResponse.State
type HashicorpCloudNetwork20200907DNSForwardingResponseState string

func NewHashicorpCloudNetwork20200907DNSForwardingResponseState(value HashicorpCloudNetwork20200907DNSForwardingResponseState) *HashicorpCloudNetwork20200907DNSForwardingResponseState {
	return &value
}

// Pointer returns a pointer to a freshly-allocated HashicorpCloudNetwork20200907DNSForwardingResponseState.
func (m HashicorpCloudNetwork20200907DNSForwardingResponseState) Pointer() *HashicorpCloudNetwork20200907DNSForwardingResponseState {
	return &m
}

const (

	// HashicorpCloudNetwork20200907DNSForwardingResponseStateUNSET captures enum value "UNSET"
	HashicorpCloudNetwork20200907DNSForwardingResponseStateUNSET HashicorpCloudNetwork20200907DNSForwardingResponseState = "UNSET"

	// HashicorpCloudNetwork20200907DNSForwardingResponseStateACTIVE captures enum value "ACTIVE"
	HashicorpCloudNetwork20200907DNSForwardingResponseStateACTIVE HashicorpCloudNetwork20200907DNSForwardingResponseState = "ACTIVE"

	// HashicorpCloudNetwork20200907DNSForwardingResponseStateCREATING captures enum value "CREATING"
	HashicorpCloudNetwork20200907DNSForwardingResponseStateCREATING HashicorpCloudNetwork20200907DNSForwardingResponseState = "CREATING"

	// HashicorpCloudNetwork20200907DNSForwardingResponseStateUPDATING captures enum value "UPDATING"
	HashicorpCloudNetwork20200907DNSForwardingResponseStateUPDATING HashicorpCloudNetwork20200907DNSForwardingResponseState = "UPDATING"

	// HashicorpCloudNetwork20200907DNSForwardingResponseStateFAILED captures enum value "FAILED"
	HashicorpCloudNetwork20200907DNSForwardingResponseStateFAILED HashicorpCloudNetwork20200907DNSForwardingResponseState = "FAILED"

	// HashicorpCloudNetwork20200907DNSForwardingResponseStateDELETING captures enum value "DELETING"
	HashicorpCloudNetwork20200907DNSForwardingResponseStateDELETING HashicorpCloudNetwork20200907DNSForwardingResponseState = "DELETING"
)

// for schema
var hashicorpCloudNetwork20200907DnsForwardingResponseStateEnum []interface{}

func init() {
	var res []HashicorpCloudNetwork20200907DNSForwardingResponseState
	if err := json.Unmarshal([]byte(`["UNSET","ACTIVE","CREATING","UPDATING","FAILED","DELETING"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudNetwork20200907DnsForwardingResponseStateEnum = append(hashicorpCloudNetwork20200907DnsForwardingResponseStateEnum, v)
	}
}

func (m HashicorpCloudNetwork20200907DNSForwardingResponseState) validateHashicorpCloudNetwork20200907DNSForwardingResponseStateEnum(path, location string, value HashicorpCloudNetwork20200907DNSForwardingResponseState) error {
	if err := validate.EnumCase(path, location, value, hashicorpCloudNetwork20200907DnsForwardingResponseStateEnum, true); err != nil {
		return err
	}
	return nil
}

// Validate validates this hashicorp cloud network 20200907 DNS forwarding response state
func (m HashicorpCloudNetwork20200907DNSForwardingResponseState) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud network 20200907 DNS forwarding response state based on context it is used
func (m HashicorpCloudNetwork20200907DNSForwardingResponseState) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
