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

// HashicorpCloudVagrant20220930VersionState State is an enumeration of possible Version states.
//
// swagger:model hashicorp.cloud.vagrant_20220930.Version.State
type HashicorpCloudVagrant20220930VersionState string

func NewHashicorpCloudVagrant20220930VersionState(value HashicorpCloudVagrant20220930VersionState) *HashicorpCloudVagrant20220930VersionState {
	return &value
}

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

const (

	// HashicorpCloudVagrant20220930VersionStateUNRELEASED captures enum value "UNRELEASED"
	HashicorpCloudVagrant20220930VersionStateUNRELEASED HashicorpCloudVagrant20220930VersionState = "UNRELEASED"

	// HashicorpCloudVagrant20220930VersionStateACTIVE captures enum value "ACTIVE"
	HashicorpCloudVagrant20220930VersionStateACTIVE HashicorpCloudVagrant20220930VersionState = "ACTIVE"

	// HashicorpCloudVagrant20220930VersionStateREVOKED captures enum value "REVOKED"
	HashicorpCloudVagrant20220930VersionStateREVOKED HashicorpCloudVagrant20220930VersionState = "REVOKED"
)

// for schema
var hashicorpCloudVagrant20220930VersionStateEnum []interface{}

func init() {
	var res []HashicorpCloudVagrant20220930VersionState
	if err := json.Unmarshal([]byte(`["UNRELEASED","ACTIVE","REVOKED"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVagrant20220930VersionStateEnum = append(hashicorpCloudVagrant20220930VersionStateEnum, v)
	}
}

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

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

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

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

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