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

// HashicorpCloudVault20201125ClusterLockOrigin LockOrigin holds the origin of the lock.
//
// swagger:model hashicorp.cloud.vault_20201125.Cluster.LockOrigin
type HashicorpCloudVault20201125ClusterLockOrigin string

func NewHashicorpCloudVault20201125ClusterLockOrigin(value HashicorpCloudVault20201125ClusterLockOrigin) *HashicorpCloudVault20201125ClusterLockOrigin {
	return &value
}

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

const (

	// HashicorpCloudVault20201125ClusterLockOriginUNKNOWNORIGIN captures enum value "UNKNOWN_ORIGIN"
	HashicorpCloudVault20201125ClusterLockOriginUNKNOWNORIGIN HashicorpCloudVault20201125ClusterLockOrigin = "UNKNOWN_ORIGIN"

	// HashicorpCloudVault20201125ClusterLockOriginCUSTOMER captures enum value "CUSTOMER"
	HashicorpCloudVault20201125ClusterLockOriginCUSTOMER HashicorpCloudVault20201125ClusterLockOrigin = "CUSTOMER"

	// HashicorpCloudVault20201125ClusterLockOriginBILLING captures enum value "BILLING"
	HashicorpCloudVault20201125ClusterLockOriginBILLING HashicorpCloudVault20201125ClusterLockOrigin = "BILLING"

	// HashicorpCloudVault20201125ClusterLockOriginINTERNAL captures enum value "INTERNAL"
	HashicorpCloudVault20201125ClusterLockOriginINTERNAL HashicorpCloudVault20201125ClusterLockOrigin = "INTERNAL"
)

// for schema
var hashicorpCloudVault20201125ClusterLockOriginEnum []interface{}

func init() {
	var res []HashicorpCloudVault20201125ClusterLockOrigin
	if err := json.Unmarshal([]byte(`["UNKNOWN_ORIGIN","CUSTOMER","BILLING","INTERNAL"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVault20201125ClusterLockOriginEnum = append(hashicorpCloudVault20201125ClusterLockOriginEnum, v)
	}
}

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

// Validate validates this hashicorp cloud vault 20201125 cluster lock origin
func (m HashicorpCloudVault20201125ClusterLockOrigin) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud vault 20201125 cluster lock origin based on context it is used
func (m HashicorpCloudVault20201125ClusterLockOrigin) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
