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

// HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOption PeeringConnectivityOption indicates an option for establishing network connectivity between two clusters
// for the purposes of cluster peering
//
// swagger:model hashicorp.cloud.global_network_manager_20220215.PeeringConnectivityOption
type HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOption string

func NewHashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOption(value HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOption) *HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOption {
	return &value
}

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

const (

	// HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOptionPEERINGCONNECTIVITYUNDEFINED captures enum value "PEERING_CONNECTIVITY_UNDEFINED"
	HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOptionPEERINGCONNECTIVITYUNDEFINED HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOption = "PEERING_CONNECTIVITY_UNDEFINED"

	// HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOptionPEERINGCONNECTIVITYHVNTOHVNPEERING captures enum value "PEERING_CONNECTIVITY_HVN_TO_HVN_PEERING"
	HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOptionPEERINGCONNECTIVITYHVNTOHVNPEERING HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOption = "PEERING_CONNECTIVITY_HVN_TO_HVN_PEERING"

	// HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOptionPEERINGCONNECTIVITYMESHGATEWAY captures enum value "PEERING_CONNECTIVITY_MESH_GATEWAY"
	HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOptionPEERINGCONNECTIVITYMESHGATEWAY HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOption = "PEERING_CONNECTIVITY_MESH_GATEWAY"

	// HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOptionPEERINGCONNECTIVITYHCPPUBLIC captures enum value "PEERING_CONNECTIVITY_HCP_PUBLIC"
	HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOptionPEERINGCONNECTIVITYHCPPUBLIC HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOption = "PEERING_CONNECTIVITY_HCP_PUBLIC"

	// HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOptionPEERINGCONNECTIVITYINTRAHVN captures enum value "PEERING_CONNECTIVITY_INTRA_HVN"
	HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOptionPEERINGCONNECTIVITYINTRAHVN HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOption = "PEERING_CONNECTIVITY_INTRA_HVN"
)

// for schema
var hashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOptionEnum []interface{}

func init() {
	var res []HashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOption
	if err := json.Unmarshal([]byte(`["PEERING_CONNECTIVITY_UNDEFINED","PEERING_CONNECTIVITY_HVN_TO_HVN_PEERING","PEERING_CONNECTIVITY_MESH_GATEWAY","PEERING_CONNECTIVITY_HCP_PUBLIC","PEERING_CONNECTIVITY_INTRA_HVN"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOptionEnum = append(hashicorpCloudGlobalNetworkManager20220215PeeringConnectivityOptionEnum, v)
	}
}

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

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

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