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

// HashicorpCloudConsulCloudManager20231010ClusterConfigTier Tier represents the different groupings of features and cluster settings
// and determines the base billing product associated with a cluster resource.
//
// swagger:model hashicorp.cloud.consul_cloud_manager_20231010.ClusterConfig.Tier
type HashicorpCloudConsulCloudManager20231010ClusterConfigTier string

func NewHashicorpCloudConsulCloudManager20231010ClusterConfigTier(value HashicorpCloudConsulCloudManager20231010ClusterConfigTier) *HashicorpCloudConsulCloudManager20231010ClusterConfigTier {
	return &value
}

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

const (

	// HashicorpCloudConsulCloudManager20231010ClusterConfigTierDEVELOPMENT captures enum value "DEVELOPMENT"
	HashicorpCloudConsulCloudManager20231010ClusterConfigTierDEVELOPMENT HashicorpCloudConsulCloudManager20231010ClusterConfigTier = "DEVELOPMENT"

	// HashicorpCloudConsulCloudManager20231010ClusterConfigTierSTANDARD captures enum value "STANDARD"
	HashicorpCloudConsulCloudManager20231010ClusterConfigTierSTANDARD HashicorpCloudConsulCloudManager20231010ClusterConfigTier = "STANDARD"

	// HashicorpCloudConsulCloudManager20231010ClusterConfigTierPLUS captures enum value "PLUS"
	HashicorpCloudConsulCloudManager20231010ClusterConfigTierPLUS HashicorpCloudConsulCloudManager20231010ClusterConfigTier = "PLUS"

	// HashicorpCloudConsulCloudManager20231010ClusterConfigTierPREMIUM captures enum value "PREMIUM"
	HashicorpCloudConsulCloudManager20231010ClusterConfigTierPREMIUM HashicorpCloudConsulCloudManager20231010ClusterConfigTier = "PREMIUM"
)

// for schema
var hashicorpCloudConsulCloudManager20231010ClusterConfigTierEnum []interface{}

func init() {
	var res []HashicorpCloudConsulCloudManager20231010ClusterConfigTier
	if err := json.Unmarshal([]byte(`["DEVELOPMENT","STANDARD","PLUS","PREMIUM"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudConsulCloudManager20231010ClusterConfigTierEnum = append(hashicorpCloudConsulCloudManager20231010ClusterConfigTierEnum, v)
	}
}

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

// Validate validates this hashicorp cloud consul cloud manager 20231010 cluster config tier
func (m HashicorpCloudConsulCloudManager20231010ClusterConfigTier) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud consul cloud manager 20231010 cluster config tier based on context it is used
func (m HashicorpCloudConsulCloudManager20231010ClusterConfigTier) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
