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

// HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestone CurrentMilestone is the enum that represents available milestones
//
// - ClusterCreationGenerate: ** CREATE MILESTONES **
// ClusterCreationGenerate represents the first milestone in cluster creation
//   - ClusterCreationCreate: ClusterCreationCreate represents the second milestone in cluster creation
//   - ClusterCreationBootstrap: ClusterCreationBootstrap represents the third milestone in cluster creation
//   - ClusterCreationValidate: ClusterCreationValidate represents the fourth milestone in cluster creation
//
// swagger:model hashicorp.cloud.vault_20201125.GetCurrentMilestoneResponse.CurrentMilestone
type HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestone string

func NewHashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestone(value HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestone) *HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestone {
	return &value
}

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

const (

	// HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestoneINVALID captures enum value "INVALID"
	HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestoneINVALID HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestone = "INVALID"

	// HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestoneClusterCreationGenerate captures enum value "ClusterCreationGenerate"
	HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestoneClusterCreationGenerate HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestone = "ClusterCreationGenerate"

	// HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestoneClusterCreationCreate captures enum value "ClusterCreationCreate"
	HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestoneClusterCreationCreate HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestone = "ClusterCreationCreate"

	// HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestoneClusterCreationBootstrap captures enum value "ClusterCreationBootstrap"
	HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestoneClusterCreationBootstrap HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestone = "ClusterCreationBootstrap"

	// HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestoneClusterCreationValidate captures enum value "ClusterCreationValidate"
	HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestoneClusterCreationValidate HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestone = "ClusterCreationValidate"
)

// for schema
var hashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestoneEnum []interface{}

func init() {
	var res []HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestone
	if err := json.Unmarshal([]byte(`["INVALID","ClusterCreationGenerate","ClusterCreationCreate","ClusterCreationBootstrap","ClusterCreationValidate"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestoneEnum = append(hashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestoneEnum, v)
	}
}

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

// Validate validates this hashicorp cloud vault 20201125 get current milestone response current milestone
func (m HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestone) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud vault 20201125 get current milestone response current milestone based on context it is used
func (m HashicorpCloudVault20201125GetCurrentMilestoneResponseCurrentMilestone) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
