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

// HashicorpCloudVagrant20220930ChecksumType ChecksumType describe supported checksum types.
//
// swagger:model hashicorp.cloud.vagrant_20220930.ChecksumType
type HashicorpCloudVagrant20220930ChecksumType string

func NewHashicorpCloudVagrant20220930ChecksumType(value HashicorpCloudVagrant20220930ChecksumType) *HashicorpCloudVagrant20220930ChecksumType {
	return &value
}

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

const (

	// HashicorpCloudVagrant20220930ChecksumTypeUNSET captures enum value "UNSET"
	HashicorpCloudVagrant20220930ChecksumTypeUNSET HashicorpCloudVagrant20220930ChecksumType = "UNSET"

	// HashicorpCloudVagrant20220930ChecksumTypeNONE captures enum value "NONE"
	HashicorpCloudVagrant20220930ChecksumTypeNONE HashicorpCloudVagrant20220930ChecksumType = "NONE"

	// HashicorpCloudVagrant20220930ChecksumTypeMD5 captures enum value "MD5"
	HashicorpCloudVagrant20220930ChecksumTypeMD5 HashicorpCloudVagrant20220930ChecksumType = "MD5"

	// HashicorpCloudVagrant20220930ChecksumTypeSHA1 captures enum value "SHA1"
	HashicorpCloudVagrant20220930ChecksumTypeSHA1 HashicorpCloudVagrant20220930ChecksumType = "SHA1"

	// HashicorpCloudVagrant20220930ChecksumTypeSHA256 captures enum value "SHA256"
	HashicorpCloudVagrant20220930ChecksumTypeSHA256 HashicorpCloudVagrant20220930ChecksumType = "SHA256"

	// HashicorpCloudVagrant20220930ChecksumTypeSHA384 captures enum value "SHA384"
	HashicorpCloudVagrant20220930ChecksumTypeSHA384 HashicorpCloudVagrant20220930ChecksumType = "SHA384"

	// HashicorpCloudVagrant20220930ChecksumTypeSHA512 captures enum value "SHA512"
	HashicorpCloudVagrant20220930ChecksumTypeSHA512 HashicorpCloudVagrant20220930ChecksumType = "SHA512"
)

// for schema
var hashicorpCloudVagrant20220930ChecksumTypeEnum []interface{}

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

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

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

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

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

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