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

// HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeType hashicorp cloud vault 20201125 minor version upgrade config upgrade type
//
// swagger:model hashicorp.cloud.vault_20201125.MinorVersionUpgradeConfig.UpgradeType
type HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeType string

func NewHashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeType(value HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeType) *HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeType {
	return &value
}

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

const (

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeTypeMINORVERSIONUPGRADECONFIGUPGRADETYPEINVALID captures enum value "MINOR_VERSION_UPGRADE_CONFIG_UPGRADE_TYPE_INVALID"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeTypeMINORVERSIONUPGRADECONFIGUPGRADETYPEINVALID HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeType = "MINOR_VERSION_UPGRADE_CONFIG_UPGRADE_TYPE_INVALID"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeTypeAUTOMATIC captures enum value "AUTOMATIC"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeTypeAUTOMATIC HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeType = "AUTOMATIC"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeTypeSCHEDULED captures enum value "SCHEDULED"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeTypeSCHEDULED HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeType = "SCHEDULED"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeTypeMANUAL captures enum value "MANUAL"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeTypeMANUAL HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeType = "MANUAL"
)

// for schema
var hashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeTypeEnum []interface{}

func init() {
	var res []HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeType
	if err := json.Unmarshal([]byte(`["MINOR_VERSION_UPGRADE_CONFIG_UPGRADE_TYPE_INVALID","AUTOMATIC","SCHEDULED","MANUAL"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeTypeEnum = append(hashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeTypeEnum, v)
	}
}

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

// Validate validates this hashicorp cloud vault 20201125 minor version upgrade config upgrade type
func (m HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeType) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud vault 20201125 minor version upgrade config upgrade type based on context it is used
func (m HashicorpCloudVault20201125MinorVersionUpgradeConfigUpgradeType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
