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

// HashicorpCloudNetwork20200907PrivateLinkServiceState hashicorp cloud network 20200907 private link service state
//
// swagger:model hashicorp.cloud.network_20200907.PrivateLinkService.State
type HashicorpCloudNetwork20200907PrivateLinkServiceState string

func NewHashicorpCloudNetwork20200907PrivateLinkServiceState(value HashicorpCloudNetwork20200907PrivateLinkServiceState) *HashicorpCloudNetwork20200907PrivateLinkServiceState {
	return &value
}

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

const (

	// HashicorpCloudNetwork20200907PrivateLinkServiceStateUNSET captures enum value "UNSET"
	HashicorpCloudNetwork20200907PrivateLinkServiceStateUNSET HashicorpCloudNetwork20200907PrivateLinkServiceState = "UNSET"

	// HashicorpCloudNetwork20200907PrivateLinkServiceStateCREATING captures enum value "CREATING"
	HashicorpCloudNetwork20200907PrivateLinkServiceStateCREATING HashicorpCloudNetwork20200907PrivateLinkServiceState = "CREATING"

	// HashicorpCloudNetwork20200907PrivateLinkServiceStateAVAILABLE captures enum value "AVAILABLE"
	HashicorpCloudNetwork20200907PrivateLinkServiceStateAVAILABLE HashicorpCloudNetwork20200907PrivateLinkServiceState = "AVAILABLE"

	// HashicorpCloudNetwork20200907PrivateLinkServiceStateDELETING captures enum value "DELETING"
	HashicorpCloudNetwork20200907PrivateLinkServiceStateDELETING HashicorpCloudNetwork20200907PrivateLinkServiceState = "DELETING"

	// HashicorpCloudNetwork20200907PrivateLinkServiceStateFAILED captures enum value "FAILED"
	HashicorpCloudNetwork20200907PrivateLinkServiceStateFAILED HashicorpCloudNetwork20200907PrivateLinkServiceState = "FAILED"

	// HashicorpCloudNetwork20200907PrivateLinkServiceStateUPDATING captures enum value "UPDATING"
	HashicorpCloudNetwork20200907PrivateLinkServiceStateUPDATING HashicorpCloudNetwork20200907PrivateLinkServiceState = "UPDATING"
)

// for schema
var hashicorpCloudNetwork20200907PrivateLinkServiceStateEnum []interface{}

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

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

// Validate validates this hashicorp cloud network 20200907 private link service state
func (m HashicorpCloudNetwork20200907PrivateLinkServiceState) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud network 20200907 private link service state based on context it is used
func (m HashicorpCloudNetwork20200907PrivateLinkServiceState) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
