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

// HashicorpCloudNetwork20200907HVNRouteState state is one of the states the TGW Attachment could be in.
//
// swagger:model hashicorp.cloud.network_20200907.HVNRoute.State
type HashicorpCloudNetwork20200907HVNRouteState string

func NewHashicorpCloudNetwork20200907HVNRouteState(value HashicorpCloudNetwork20200907HVNRouteState) *HashicorpCloudNetwork20200907HVNRouteState {
	return &value
}

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

const (

	// HashicorpCloudNetwork20200907HVNRouteStateUNSET captures enum value "UNSET"
	HashicorpCloudNetwork20200907HVNRouteStateUNSET HashicorpCloudNetwork20200907HVNRouteState = "UNSET"

	// HashicorpCloudNetwork20200907HVNRouteStatePENDING captures enum value "PENDING"
	HashicorpCloudNetwork20200907HVNRouteStatePENDING HashicorpCloudNetwork20200907HVNRouteState = "PENDING"

	// HashicorpCloudNetwork20200907HVNRouteStateCREATING captures enum value "CREATING"
	HashicorpCloudNetwork20200907HVNRouteStateCREATING HashicorpCloudNetwork20200907HVNRouteState = "CREATING"

	// HashicorpCloudNetwork20200907HVNRouteStateACTIVE captures enum value "ACTIVE"
	HashicorpCloudNetwork20200907HVNRouteStateACTIVE HashicorpCloudNetwork20200907HVNRouteState = "ACTIVE"

	// HashicorpCloudNetwork20200907HVNRouteStateFAILED captures enum value "FAILED"
	HashicorpCloudNetwork20200907HVNRouteStateFAILED HashicorpCloudNetwork20200907HVNRouteState = "FAILED"

	// HashicorpCloudNetwork20200907HVNRouteStateDELETING captures enum value "DELETING"
	HashicorpCloudNetwork20200907HVNRouteStateDELETING HashicorpCloudNetwork20200907HVNRouteState = "DELETING"
)

// for schema
var hashicorpCloudNetwork20200907HVNRouteStateEnum []interface{}

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

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

// Validate validates this hashicorp cloud network 20200907 h v n route state
func (m HashicorpCloudNetwork20200907HVNRouteState) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud network 20200907 h v n route state based on context it is used
func (m HashicorpCloudNetwork20200907HVNRouteState) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
