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

// HashicorpCloudVagrant20220930BoxState BoxState is an enumeration of possible Box states.
//
// swagger:model hashicorp.cloud.vagrant_20220930.BoxState
type HashicorpCloudVagrant20220930BoxState string

func NewHashicorpCloudVagrant20220930BoxState(value HashicorpCloudVagrant20220930BoxState) *HashicorpCloudVagrant20220930BoxState {
	return &value
}

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

const (

	// HashicorpCloudVagrant20220930BoxStateINACTIVEORUNSPECIFIED captures enum value "INACTIVE_OR_UNSPECIFIED"
	HashicorpCloudVagrant20220930BoxStateINACTIVEORUNSPECIFIED HashicorpCloudVagrant20220930BoxState = "INACTIVE_OR_UNSPECIFIED"

	// HashicorpCloudVagrant20220930BoxStateNOVERSIONS captures enum value "NO_VERSIONS"
	HashicorpCloudVagrant20220930BoxStateNOVERSIONS HashicorpCloudVagrant20220930BoxState = "NO_VERSIONS"

	// HashicorpCloudVagrant20220930BoxStateNORELEASEDVERSIONS captures enum value "NO_RELEASED_VERSIONS"
	HashicorpCloudVagrant20220930BoxStateNORELEASEDVERSIONS HashicorpCloudVagrant20220930BoxState = "NO_RELEASED_VERSIONS"

	// HashicorpCloudVagrant20220930BoxStateNOPROVIDERS captures enum value "NO_PROVIDERS"
	HashicorpCloudVagrant20220930BoxStateNOPROVIDERS HashicorpCloudVagrant20220930BoxState = "NO_PROVIDERS"

	// HashicorpCloudVagrant20220930BoxStateAVAILABLE captures enum value "AVAILABLE"
	HashicorpCloudVagrant20220930BoxStateAVAILABLE HashicorpCloudVagrant20220930BoxState = "AVAILABLE"
)

// for schema
var hashicorpCloudVagrant20220930BoxStateEnum []interface{}

func init() {
	var res []HashicorpCloudVagrant20220930BoxState
	if err := json.Unmarshal([]byte(`["INACTIVE_OR_UNSPECIFIED","NO_VERSIONS","NO_RELEASED_VERSIONS","NO_PROVIDERS","AVAILABLE"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVagrant20220930BoxStateEnum = append(hashicorpCloudVagrant20220930BoxStateEnum, v)
	}
}

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

// Validate validates this hashicorp cloud vagrant 20220930 box state
func (m HashicorpCloudVagrant20220930BoxState) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud vagrant 20220930 box state based on context it is used
func (m HashicorpCloudVagrant20220930BoxState) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
