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

// HashicorpCloudNetwork20200907DNSForwardingState hashicorp cloud network 20200907 DNS forwarding state
//
// swagger:model hashicorp.cloud.network_20200907.DNSForwarding.State
type HashicorpCloudNetwork20200907DNSForwardingState string

func NewHashicorpCloudNetwork20200907DNSForwardingState(value HashicorpCloudNetwork20200907DNSForwardingState) *HashicorpCloudNetwork20200907DNSForwardingState {
	return &value
}

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

const (

	// HashicorpCloudNetwork20200907DNSForwardingStateUNSET captures enum value "UNSET"
	HashicorpCloudNetwork20200907DNSForwardingStateUNSET HashicorpCloudNetwork20200907DNSForwardingState = "UNSET"

	// HashicorpCloudNetwork20200907DNSForwardingStateACTIVE captures enum value "ACTIVE"
	HashicorpCloudNetwork20200907DNSForwardingStateACTIVE HashicorpCloudNetwork20200907DNSForwardingState = "ACTIVE"

	// HashicorpCloudNetwork20200907DNSForwardingStateCREATING captures enum value "CREATING"
	HashicorpCloudNetwork20200907DNSForwardingStateCREATING HashicorpCloudNetwork20200907DNSForwardingState = "CREATING"

	// HashicorpCloudNetwork20200907DNSForwardingStateUPDATING captures enum value "UPDATING"
	HashicorpCloudNetwork20200907DNSForwardingStateUPDATING HashicorpCloudNetwork20200907DNSForwardingState = "UPDATING"

	// HashicorpCloudNetwork20200907DNSForwardingStateFAILED captures enum value "FAILED"
	HashicorpCloudNetwork20200907DNSForwardingStateFAILED HashicorpCloudNetwork20200907DNSForwardingState = "FAILED"

	// HashicorpCloudNetwork20200907DNSForwardingStateDELETING captures enum value "DELETING"
	HashicorpCloudNetwork20200907DNSForwardingStateDELETING HashicorpCloudNetwork20200907DNSForwardingState = "DELETING"
)

// for schema
var hashicorpCloudNetwork20200907DnsForwardingStateEnum []interface{}

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

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

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

	// value enum
	if err := m.validateHashicorpCloudNetwork20200907DNSForwardingStateEnum("", "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 state based on context it is used
func (m HashicorpCloudNetwork20200907DNSForwardingState) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
