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

// HashicorpCloudVaultLink20221107LinkedClusterState hashicorp cloud vault link 20221107 linked cluster state
//
// swagger:model hashicorp.cloud.vault_link_20221107.LinkedCluster.State
type HashicorpCloudVaultLink20221107LinkedClusterState string

func NewHashicorpCloudVaultLink20221107LinkedClusterState(value HashicorpCloudVaultLink20221107LinkedClusterState) *HashicorpCloudVaultLink20221107LinkedClusterState {
	return &value
}

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

const (

	// HashicorpCloudVaultLink20221107LinkedClusterStateLINKEDCLUSTERSTATEINVALID captures enum value "LINKED_CLUSTER_STATE_INVALID"
	HashicorpCloudVaultLink20221107LinkedClusterStateLINKEDCLUSTERSTATEINVALID HashicorpCloudVaultLink20221107LinkedClusterState = "LINKED_CLUSTER_STATE_INVALID"

	// HashicorpCloudVaultLink20221107LinkedClusterStateLINKING captures enum value "LINKING"
	HashicorpCloudVaultLink20221107LinkedClusterStateLINKING HashicorpCloudVaultLink20221107LinkedClusterState = "LINKING"

	// HashicorpCloudVaultLink20221107LinkedClusterStateLINKED captures enum value "LINKED"
	HashicorpCloudVaultLink20221107LinkedClusterStateLINKED HashicorpCloudVaultLink20221107LinkedClusterState = "LINKED"

	// HashicorpCloudVaultLink20221107LinkedClusterStateUNLINKING captures enum value "UNLINKING"
	HashicorpCloudVaultLink20221107LinkedClusterStateUNLINKING HashicorpCloudVaultLink20221107LinkedClusterState = "UNLINKING"

	// HashicorpCloudVaultLink20221107LinkedClusterStateUNLINKED captures enum value "UNLINKED"
	HashicorpCloudVaultLink20221107LinkedClusterStateUNLINKED HashicorpCloudVaultLink20221107LinkedClusterState = "UNLINKED"
)

// for schema
var hashicorpCloudVaultLink20221107LinkedClusterStateEnum []interface{}

func init() {
	var res []HashicorpCloudVaultLink20221107LinkedClusterState
	if err := json.Unmarshal([]byte(`["LINKED_CLUSTER_STATE_INVALID","LINKING","LINKED","UNLINKING","UNLINKED"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVaultLink20221107LinkedClusterStateEnum = append(hashicorpCloudVaultLink20221107LinkedClusterStateEnum, v)
	}
}

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

// Validate validates this hashicorp cloud vault link 20221107 linked cluster state
func (m HashicorpCloudVaultLink20221107LinkedClusterState) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud vault link 20221107 linked cluster state based on context it is used
func (m HashicorpCloudVaultLink20221107LinkedClusterState) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
