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

// HashicorpCloudVault20201125Tier  - DEV: NOTE: enum 0 values should be invalid. Use this field with care in GORM queries.
//
// swagger:model hashicorp.cloud.vault_20201125.Tier
type HashicorpCloudVault20201125Tier string

func NewHashicorpCloudVault20201125Tier(value HashicorpCloudVault20201125Tier) *HashicorpCloudVault20201125Tier {
	return &value
}

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

const (

	// HashicorpCloudVault20201125TierDEV captures enum value "DEV"
	HashicorpCloudVault20201125TierDEV HashicorpCloudVault20201125Tier = "DEV"

	// HashicorpCloudVault20201125TierSTANDARDSMALL captures enum value "STANDARD_SMALL"
	HashicorpCloudVault20201125TierSTANDARDSMALL HashicorpCloudVault20201125Tier = "STANDARD_SMALL"

	// HashicorpCloudVault20201125TierSTANDARDMEDIUM captures enum value "STANDARD_MEDIUM"
	HashicorpCloudVault20201125TierSTANDARDMEDIUM HashicorpCloudVault20201125Tier = "STANDARD_MEDIUM"

	// HashicorpCloudVault20201125TierSTANDARDLARGE captures enum value "STANDARD_LARGE"
	HashicorpCloudVault20201125TierSTANDARDLARGE HashicorpCloudVault20201125Tier = "STANDARD_LARGE"

	// HashicorpCloudVault20201125TierSTARTERSMALL captures enum value "STARTER_SMALL"
	HashicorpCloudVault20201125TierSTARTERSMALL HashicorpCloudVault20201125Tier = "STARTER_SMALL"

	// HashicorpCloudVault20201125TierPLUSSMALL captures enum value "PLUS_SMALL"
	HashicorpCloudVault20201125TierPLUSSMALL HashicorpCloudVault20201125Tier = "PLUS_SMALL"

	// HashicorpCloudVault20201125TierPLUSMEDIUM captures enum value "PLUS_MEDIUM"
	HashicorpCloudVault20201125TierPLUSMEDIUM HashicorpCloudVault20201125Tier = "PLUS_MEDIUM"

	// HashicorpCloudVault20201125TierPLUSLARGE captures enum value "PLUS_LARGE"
	HashicorpCloudVault20201125TierPLUSLARGE HashicorpCloudVault20201125Tier = "PLUS_LARGE"
)

// for schema
var hashicorpCloudVault20201125TierEnum []interface{}

func init() {
	var res []HashicorpCloudVault20201125Tier
	if err := json.Unmarshal([]byte(`["DEV","STANDARD_SMALL","STANDARD_MEDIUM","STANDARD_LARGE","STARTER_SMALL","PLUS_SMALL","PLUS_MEDIUM","PLUS_LARGE"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVault20201125TierEnum = append(hashicorpCloudVault20201125TierEnum, v)
	}
}

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

// Validate validates this hashicorp cloud vault 20201125 tier
func (m HashicorpCloudVault20201125Tier) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud vault 20201125 tier based on context it is used
func (m HashicorpCloudVault20201125Tier) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
