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

// HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason PeeringIneligibilityReason indicates a reason why a peering connection is not possible
//
// swagger:model hashicorp.cloud.global_network_manager_20220215.PeeringIneligibilityReason
type HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason string

func NewHashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason(value HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason) *HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason {
	return &value
}

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

const (

	// HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYUNDEFINED captures enum value "INELIGIBILITY_UNDEFINED"
	HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYUNDEFINED HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason = "INELIGIBILITY_UNDEFINED"

	// HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYMINVERSIONNOTMET captures enum value "INELIGIBILITY_MIN_VERSION_NOT_MET"
	HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYMINVERSIONNOTMET HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason = "INELIGIBILITY_MIN_VERSION_NOT_MET"

	// HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYPEERINGNOTENABLED captures enum value "INELIGIBILITY_PEERING_NOT_ENABLED"
	HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYPEERINGNOTENABLED HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason = "INELIGIBILITY_PEERING_NOT_ENABLED"

	// HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYCROSSCLOUDPREMIUMTIERREQUIRED captures enum value "INELIGIBILITY_CROSS_CLOUD_PREMIUM_TIER_REQUIRED"
	HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYCROSSCLOUDPREMIUMTIERREQUIRED HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason = "INELIGIBILITY_CROSS_CLOUD_PREMIUM_TIER_REQUIRED"

	// HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYCROSSREGIONPLUSTIERREQUIRED captures enum value "INELIGIBILITY_CROSS_REGION_PLUS_TIER_REQUIRED"
	HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYCROSSREGIONPLUSTIERREQUIRED HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason = "INELIGIBILITY_CROSS_REGION_PLUS_TIER_REQUIRED"

	// HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYNOCONNECTIVITYPOSSIBLE captures enum value "INELIGIBILITY_NO_CONNECTIVITY_POSSIBLE"
	HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYNOCONNECTIVITYPOSSIBLE HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason = "INELIGIBILITY_NO_CONNECTIVITY_POSSIBLE"

	// HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYINELIGIBLEBILLINGPLAN captures enum value "INELIGIBILITY_INELIGIBLE_BILLING_PLAN"
	HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYINELIGIBLEBILLINGPLAN HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason = "INELIGIBILITY_INELIGIBLE_BILLING_PLAN"

	// HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYCLUSTERINVALIDSTATE captures enum value "INELIGIBILITY_CLUSTER_INVALID_STATE"
	HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYCLUSTERINVALIDSTATE HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason = "INELIGIBILITY_CLUSTER_INVALID_STATE"

	// HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYCONSULACCESSREADONLY captures enum value "INELIGIBILITY_CONSUL_ACCESS_READ_ONLY"
	HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYCONSULACCESSREADONLY HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason = "INELIGIBILITY_CONSUL_ACCESS_READ_ONLY"

	// HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYINVALIDLICENSE captures enum value "INELIGIBILITY_INVALID_LICENSE"
	HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonINELIGIBILITYINVALIDLICENSE HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason = "INELIGIBILITY_INVALID_LICENSE"
)

// for schema
var hashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonEnum []interface{}

func init() {
	var res []HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason
	if err := json.Unmarshal([]byte(`["INELIGIBILITY_UNDEFINED","INELIGIBILITY_MIN_VERSION_NOT_MET","INELIGIBILITY_PEERING_NOT_ENABLED","INELIGIBILITY_CROSS_CLOUD_PREMIUM_TIER_REQUIRED","INELIGIBILITY_CROSS_REGION_PLUS_TIER_REQUIRED","INELIGIBILITY_NO_CONNECTIVITY_POSSIBLE","INELIGIBILITY_INELIGIBLE_BILLING_PLAN","INELIGIBILITY_CLUSTER_INVALID_STATE","INELIGIBILITY_CONSUL_ACCESS_READ_ONLY","INELIGIBILITY_INVALID_LICENSE"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonEnum = append(hashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReasonEnum, v)
	}
}

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

// Validate validates this hashicorp cloud global network manager 20220215 peering ineligibility reason
func (m HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud global network manager 20220215 peering ineligibility reason based on context it is used
func (m HashicorpCloudGlobalNetworkManager20220215PeeringIneligibilityReason) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
