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

// HashicorpCloudPacker20220411RegistryBillingDeprovisionReason hashicorp cloud packer 20220411 registry billing deprovision reason
//
// swagger:model hashicorp.cloud.packer_20220411.RegistryBillingDeprovision.Reason
type HashicorpCloudPacker20220411RegistryBillingDeprovisionReason string

func NewHashicorpCloudPacker20220411RegistryBillingDeprovisionReason(value HashicorpCloudPacker20220411RegistryBillingDeprovisionReason) *HashicorpCloudPacker20220411RegistryBillingDeprovisionReason {
	return &value
}

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

const (

	// HashicorpCloudPacker20220411RegistryBillingDeprovisionReasonDELINQUENTBILLINGACCOUNT captures enum value "DELINQUENT_BILLING_ACCOUNT"
	HashicorpCloudPacker20220411RegistryBillingDeprovisionReasonDELINQUENTBILLINGACCOUNT HashicorpCloudPacker20220411RegistryBillingDeprovisionReason = "DELINQUENT_BILLING_ACCOUNT"

	// HashicorpCloudPacker20220411RegistryBillingDeprovisionReasonUSERREQUEST captures enum value "USER_REQUEST"
	HashicorpCloudPacker20220411RegistryBillingDeprovisionReasonUSERREQUEST HashicorpCloudPacker20220411RegistryBillingDeprovisionReason = "USER_REQUEST"

	// HashicorpCloudPacker20220411RegistryBillingDeprovisionReasonHASHIADMINREQUEST captures enum value "HASHI_ADMIN_REQUEST"
	HashicorpCloudPacker20220411RegistryBillingDeprovisionReasonHASHIADMINREQUEST HashicorpCloudPacker20220411RegistryBillingDeprovisionReason = "HASHI_ADMIN_REQUEST"
)

// for schema
var hashicorpCloudPacker20220411RegistryBillingDeprovisionReasonEnum []interface{}

func init() {
	var res []HashicorpCloudPacker20220411RegistryBillingDeprovisionReason
	if err := json.Unmarshal([]byte(`["DELINQUENT_BILLING_ACCOUNT","USER_REQUEST","HASHI_ADMIN_REQUEST"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudPacker20220411RegistryBillingDeprovisionReasonEnum = append(hashicorpCloudPacker20220411RegistryBillingDeprovisionReasonEnum, v)
	}
}

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

// Validate validates this hashicorp cloud packer 20220411 registry billing deprovision reason
func (m HashicorpCloudPacker20220411RegistryBillingDeprovisionReason) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud packer 20220411 registry billing deprovision reason based on context it is used
func (m HashicorpCloudPacker20220411RegistryBillingDeprovisionReason) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
