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

// HashicorpCloudGlobalNetworkManager20220215NetworkConnectivity NetworkConnectivity is a list of options for connecting the underlying
// network infrastructure
//
// - UNSPECIFIED: UNSPECIFIED means network connnectivity is left up to the user
//   - HVN_TO_HVN_PEERING: Triggers an automatic peering of two HVNs for connectivity
//
// swagger:model hashicorp.cloud.global_network_manager_20220215.NetworkConnectivity
type HashicorpCloudGlobalNetworkManager20220215NetworkConnectivity string

func NewHashicorpCloudGlobalNetworkManager20220215NetworkConnectivity(value HashicorpCloudGlobalNetworkManager20220215NetworkConnectivity) *HashicorpCloudGlobalNetworkManager20220215NetworkConnectivity {
	return &value
}

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

const (

	// HashicorpCloudGlobalNetworkManager20220215NetworkConnectivityUNSPECIFIED captures enum value "UNSPECIFIED"
	HashicorpCloudGlobalNetworkManager20220215NetworkConnectivityUNSPECIFIED HashicorpCloudGlobalNetworkManager20220215NetworkConnectivity = "UNSPECIFIED"

	// HashicorpCloudGlobalNetworkManager20220215NetworkConnectivityHVNTOHVNPEERING captures enum value "HVN_TO_HVN_PEERING"
	HashicorpCloudGlobalNetworkManager20220215NetworkConnectivityHVNTOHVNPEERING HashicorpCloudGlobalNetworkManager20220215NetworkConnectivity = "HVN_TO_HVN_PEERING"
)

// for schema
var hashicorpCloudGlobalNetworkManager20220215NetworkConnectivityEnum []interface{}

func init() {
	var res []HashicorpCloudGlobalNetworkManager20220215NetworkConnectivity
	if err := json.Unmarshal([]byte(`["UNSPECIFIED","HVN_TO_HVN_PEERING"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudGlobalNetworkManager20220215NetworkConnectivityEnum = append(hashicorpCloudGlobalNetworkManager20220215NetworkConnectivityEnum, v)
	}
}

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

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

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