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

// HashicorpCloudConsul20210204CapacityConfigSize Size represents the different VM sizes a Consul cluster can be provisioned
// with. These are bucketed as "t-shirt" sizes which each correspond to a
// specific instance type depending on the cloud provider.
//
// swagger:model hashicorp.cloud.consul_20210204.CapacityConfig.Size
type HashicorpCloudConsul20210204CapacityConfigSize string

func NewHashicorpCloudConsul20210204CapacityConfigSize(value HashicorpCloudConsul20210204CapacityConfigSize) *HashicorpCloudConsul20210204CapacityConfigSize {
	return &value
}

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

const (

	// HashicorpCloudConsul20210204CapacityConfigSizeUNSET captures enum value "UNSET"
	HashicorpCloudConsul20210204CapacityConfigSizeUNSET HashicorpCloudConsul20210204CapacityConfigSize = "UNSET"

	// HashicorpCloudConsul20210204CapacityConfigSizeXSMALL captures enum value "X_SMALL"
	HashicorpCloudConsul20210204CapacityConfigSizeXSMALL HashicorpCloudConsul20210204CapacityConfigSize = "X_SMALL"

	// HashicorpCloudConsul20210204CapacityConfigSizeSMALL captures enum value "SMALL"
	HashicorpCloudConsul20210204CapacityConfigSizeSMALL HashicorpCloudConsul20210204CapacityConfigSize = "SMALL"

	// HashicorpCloudConsul20210204CapacityConfigSizeMEDIUM captures enum value "MEDIUM"
	HashicorpCloudConsul20210204CapacityConfigSizeMEDIUM HashicorpCloudConsul20210204CapacityConfigSize = "MEDIUM"

	// HashicorpCloudConsul20210204CapacityConfigSizeLARGE captures enum value "LARGE"
	HashicorpCloudConsul20210204CapacityConfigSizeLARGE HashicorpCloudConsul20210204CapacityConfigSize = "LARGE"
)

// for schema
var hashicorpCloudConsul20210204CapacityConfigSizeEnum []interface{}

func init() {
	var res []HashicorpCloudConsul20210204CapacityConfigSize
	if err := json.Unmarshal([]byte(`["UNSET","X_SMALL","SMALL","MEDIUM","LARGE"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudConsul20210204CapacityConfigSizeEnum = append(hashicorpCloudConsul20210204CapacityConfigSizeEnum, v)
	}
}

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

// Validate validates this hashicorp cloud consul 20210204 capacity config size
func (m HashicorpCloudConsul20210204CapacityConfigSize) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud consul 20210204 capacity config size based on context it is used
func (m HashicorpCloudConsul20210204CapacityConfigSize) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
