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

// HashicorpCloudGlobalNetworkManager20220215Licensing - LICENSING_UNSPECIFIED: the Consul licensing information is unspecified
//   - LICENSING_ENTERPRISE: the cluster has a valid Consul Enterprise license
//   - LICENSING_EXPIRED_ENTERPRISE: the cluster has an expired Consul Enterprise license
//   - LICENSING_OSS: the cluster is running Consul OSS
//   - LICENSING_OSS_FREE_TRIAL: the cluster is running Consul OSS with an active HCP Consul free trial
//   - LICENSING_COMMUNITY: the cluster is running Consul community edition
//   - LICENSING_COMMUNITY_TRIAL: the cluster is running Consul community edition with an active HCP Consul trial
//
// swagger:model hashicorp.cloud.global_network_manager_20220215.Licensing
type HashicorpCloudGlobalNetworkManager20220215Licensing string

func NewHashicorpCloudGlobalNetworkManager20220215Licensing(value HashicorpCloudGlobalNetworkManager20220215Licensing) *HashicorpCloudGlobalNetworkManager20220215Licensing {
	return &value
}

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

const (

	// HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGUNSPECIFIED captures enum value "LICENSING_UNSPECIFIED"
	HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGUNSPECIFIED HashicorpCloudGlobalNetworkManager20220215Licensing = "LICENSING_UNSPECIFIED"

	// HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGENTERPRISE captures enum value "LICENSING_ENTERPRISE"
	HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGENTERPRISE HashicorpCloudGlobalNetworkManager20220215Licensing = "LICENSING_ENTERPRISE"

	// HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGEXPIREDENTERPRISE captures enum value "LICENSING_EXPIRED_ENTERPRISE"
	HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGEXPIREDENTERPRISE HashicorpCloudGlobalNetworkManager20220215Licensing = "LICENSING_EXPIRED_ENTERPRISE"

	// HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGOSS captures enum value "LICENSING_OSS"
	HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGOSS HashicorpCloudGlobalNetworkManager20220215Licensing = "LICENSING_OSS"

	// HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGOSSFREETRIAL captures enum value "LICENSING_OSS_FREE_TRIAL"
	HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGOSSFREETRIAL HashicorpCloudGlobalNetworkManager20220215Licensing = "LICENSING_OSS_FREE_TRIAL"

	// HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGCOMMUNITY captures enum value "LICENSING_COMMUNITY"
	HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGCOMMUNITY HashicorpCloudGlobalNetworkManager20220215Licensing = "LICENSING_COMMUNITY"

	// HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGCOMMUNITYTRIAL captures enum value "LICENSING_COMMUNITY_TRIAL"
	HashicorpCloudGlobalNetworkManager20220215LicensingLICENSINGCOMMUNITYTRIAL HashicorpCloudGlobalNetworkManager20220215Licensing = "LICENSING_COMMUNITY_TRIAL"
)

// for schema
var hashicorpCloudGlobalNetworkManager20220215LicensingEnum []interface{}

func init() {
	var res []HashicorpCloudGlobalNetworkManager20220215Licensing
	if err := json.Unmarshal([]byte(`["LICENSING_UNSPECIFIED","LICENSING_ENTERPRISE","LICENSING_EXPIRED_ENTERPRISE","LICENSING_OSS","LICENSING_OSS_FREE_TRIAL","LICENSING_COMMUNITY","LICENSING_COMMUNITY_TRIAL"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudGlobalNetworkManager20220215LicensingEnum = append(hashicorpCloudGlobalNetworkManager20220215LicensingEnum, v)
	}
}

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

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

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