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

// HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthType hashicorp cloud vault link 20221107 authenticate user request auth type
//
// swagger:model hashicorp.cloud.vault_link_20221107.AuthenticateUserRequest.AuthType
type HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthType string

func NewHashicorpCloudVaultLink20221107AuthenticateUserRequestAuthType(value HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthType) *HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthType {
	return &value
}

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

const (

	// HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthTypeTOKEN captures enum value "TOKEN"
	HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthTypeTOKEN HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthType = "TOKEN"

	// HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthTypeUSERPASS captures enum value "USERPASS"
	HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthTypeUSERPASS HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthType = "USERPASS"

	// HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthTypeLDAP captures enum value "LDAP"
	HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthTypeLDAP HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthType = "LDAP"
)

// for schema
var hashicorpCloudVaultLink20221107AuthenticateUserRequestAuthTypeEnum []interface{}

func init() {
	var res []HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthType
	if err := json.Unmarshal([]byte(`["TOKEN","USERPASS","LDAP"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVaultLink20221107AuthenticateUserRequestAuthTypeEnum = append(hashicorpCloudVaultLink20221107AuthenticateUserRequestAuthTypeEnum, v)
	}
}

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

// Validate validates this hashicorp cloud vault link 20221107 authenticate user request auth type
func (m HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthType) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud vault link 20221107 authenticate user request auth type based on context it is used
func (m HashicorpCloudVaultLink20221107AuthenticateUserRequestAuthType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
