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

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

func NewHashicorpCloudVagrantDownloadProviderResponseChecksumType(value HashicorpCloudVagrantDownloadProviderResponseChecksumType) *HashicorpCloudVagrantDownloadProviderResponseChecksumType {
	return &value
}

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

const (

	// HashicorpCloudVagrantDownloadProviderResponseChecksumTypeNONE captures enum value "NONE"
	HashicorpCloudVagrantDownloadProviderResponseChecksumTypeNONE HashicorpCloudVagrantDownloadProviderResponseChecksumType = "NONE"

	// HashicorpCloudVagrantDownloadProviderResponseChecksumTypeMD5 captures enum value "MD5"
	HashicorpCloudVagrantDownloadProviderResponseChecksumTypeMD5 HashicorpCloudVagrantDownloadProviderResponseChecksumType = "MD5"

	// HashicorpCloudVagrantDownloadProviderResponseChecksumTypeSHA1 captures enum value "SHA1"
	HashicorpCloudVagrantDownloadProviderResponseChecksumTypeSHA1 HashicorpCloudVagrantDownloadProviderResponseChecksumType = "SHA1"

	// HashicorpCloudVagrantDownloadProviderResponseChecksumTypeSHA256 captures enum value "SHA256"
	HashicorpCloudVagrantDownloadProviderResponseChecksumTypeSHA256 HashicorpCloudVagrantDownloadProviderResponseChecksumType = "SHA256"

	// HashicorpCloudVagrantDownloadProviderResponseChecksumTypeSHA384 captures enum value "SHA384"
	HashicorpCloudVagrantDownloadProviderResponseChecksumTypeSHA384 HashicorpCloudVagrantDownloadProviderResponseChecksumType = "SHA384"

	// HashicorpCloudVagrantDownloadProviderResponseChecksumTypeSHA512 captures enum value "SHA512"
	HashicorpCloudVagrantDownloadProviderResponseChecksumTypeSHA512 HashicorpCloudVagrantDownloadProviderResponseChecksumType = "SHA512"
)

// for schema
var hashicorpCloudVagrantDownloadProviderResponseChecksumTypeEnum []interface{}

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

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

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

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

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

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