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

// HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatus - LEADER: Deprecated values
//   - ACTIVE: Valid values
//
// swagger:model hashicorp.cloud.vault_link_20221107.LinkedClusterNode.LeaderStatus
type HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatus string

func NewHashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatus(value HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatus) *HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatus {
	return &value
}

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

const (

	// HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusLEADERSTATUSCLUSTERSTATEINVALID captures enum value "LEADER_STATUS_CLUSTER_STATE_INVALID"
	HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusLEADERSTATUSCLUSTERSTATEINVALID HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatus = "LEADER_STATUS_CLUSTER_STATE_INVALID"

	// HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusLEADER captures enum value "LEADER"
	HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusLEADER HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatus = "LEADER"

	// HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusFOLLOWER captures enum value "FOLLOWER"
	HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusFOLLOWER HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatus = "FOLLOWER"

	// HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusACTIVE captures enum value "ACTIVE"
	HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusACTIVE HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatus = "ACTIVE"

	// HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusSTANDBY captures enum value "STANDBY"
	HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusSTANDBY HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatus = "STANDBY"

	// HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusPERFSTANDBY captures enum value "PERF_STANDBY"
	HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusPERFSTANDBY HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatus = "PERF_STANDBY"
)

// for schema
var hashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusEnum []interface{}

func init() {
	var res []HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatus
	if err := json.Unmarshal([]byte(`["LEADER_STATUS_CLUSTER_STATE_INVALID","LEADER","FOLLOWER","ACTIVE","STANDBY","PERF_STANDBY"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusEnum = append(hashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusEnum, v)
	}
}

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

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

	// value enum
	if err := m.validateHashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatusEnum("", "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 node leader status based on context it is used
func (m HashicorpCloudVaultLink20221107LinkedClusterNodeLeaderStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
