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

// HashicorpCloudPacker20230101RegistryBillingDeprovisionReason hashicorp cloud packer 20230101 registry billing deprovision reason
//
// swagger:model hashicorp.cloud.packer_20230101.RegistryBillingDeprovision.Reason
type HashicorpCloudPacker20230101RegistryBillingDeprovisionReason string

func NewHashicorpCloudPacker20230101RegistryBillingDeprovisionReason(value HashicorpCloudPacker20230101RegistryBillingDeprovisionReason) *HashicorpCloudPacker20230101RegistryBillingDeprovisionReason {
	return &value
}

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

const (

	// HashicorpCloudPacker20230101RegistryBillingDeprovisionReasonDELINQUENTBILLINGACCOUNT captures enum value "DELINQUENT_BILLING_ACCOUNT"
	HashicorpCloudPacker20230101RegistryBillingDeprovisionReasonDELINQUENTBILLINGACCOUNT HashicorpCloudPacker20230101RegistryBillingDeprovisionReason = "DELINQUENT_BILLING_ACCOUNT"

	// HashicorpCloudPacker20230101RegistryBillingDeprovisionReasonUSERREQUEST captures enum value "USER_REQUEST"
	HashicorpCloudPacker20230101RegistryBillingDeprovisionReasonUSERREQUEST HashicorpCloudPacker20230101RegistryBillingDeprovisionReason = "USER_REQUEST"

	// HashicorpCloudPacker20230101RegistryBillingDeprovisionReasonHASHIADMINREQUEST captures enum value "HASHI_ADMIN_REQUEST"
	HashicorpCloudPacker20230101RegistryBillingDeprovisionReasonHASHIADMINREQUEST HashicorpCloudPacker20230101RegistryBillingDeprovisionReason = "HASHI_ADMIN_REQUEST"
)

// for schema
var hashicorpCloudPacker20230101RegistryBillingDeprovisionReasonEnum []interface{}

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

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

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

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

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

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