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

// HashicorpCloudVagrantExternalProviderChecksumType ChecksumTypes describe supported checksum types.
//
// swagger:model hashicorp.cloud.vagrant.ExternalProvider.ChecksumType
type HashicorpCloudVagrantExternalProviderChecksumType string

func NewHashicorpCloudVagrantExternalProviderChecksumType(value HashicorpCloudVagrantExternalProviderChecksumType) *HashicorpCloudVagrantExternalProviderChecksumType {
	return &value
}

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

const (

	// HashicorpCloudVagrantExternalProviderChecksumTypeNONE captures enum value "NONE"
	HashicorpCloudVagrantExternalProviderChecksumTypeNONE HashicorpCloudVagrantExternalProviderChecksumType = "NONE"

	// HashicorpCloudVagrantExternalProviderChecksumTypeMD5 captures enum value "MD5"
	HashicorpCloudVagrantExternalProviderChecksumTypeMD5 HashicorpCloudVagrantExternalProviderChecksumType = "MD5"

	// HashicorpCloudVagrantExternalProviderChecksumTypeSHA1 captures enum value "SHA1"
	HashicorpCloudVagrantExternalProviderChecksumTypeSHA1 HashicorpCloudVagrantExternalProviderChecksumType = "SHA1"

	// HashicorpCloudVagrantExternalProviderChecksumTypeSHA256 captures enum value "SHA256"
	HashicorpCloudVagrantExternalProviderChecksumTypeSHA256 HashicorpCloudVagrantExternalProviderChecksumType = "SHA256"

	// HashicorpCloudVagrantExternalProviderChecksumTypeSHA384 captures enum value "SHA384"
	HashicorpCloudVagrantExternalProviderChecksumTypeSHA384 HashicorpCloudVagrantExternalProviderChecksumType = "SHA384"

	// HashicorpCloudVagrantExternalProviderChecksumTypeSHA512 captures enum value "SHA512"
	HashicorpCloudVagrantExternalProviderChecksumTypeSHA512 HashicorpCloudVagrantExternalProviderChecksumType = "SHA512"
)

// for schema
var hashicorpCloudVagrantExternalProviderChecksumTypeEnum []interface{}

func init() {
	var res []HashicorpCloudVagrantExternalProviderChecksumType
	if err := json.Unmarshal([]byte(`["NONE","MD5","SHA1","SHA256","SHA384","SHA512"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVagrantExternalProviderChecksumTypeEnum = append(hashicorpCloudVagrantExternalProviderChecksumTypeEnum, v)
	}
}

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

// Validate validates this hashicorp cloud vagrant external provider checksum type
func (m HashicorpCloudVagrantExternalProviderChecksumType) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud vagrant external provider checksum type based on context it is used
func (m HashicorpCloudVagrantExternalProviderChecksumType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
