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

// HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverified ReasonDomainOwnershipUnverified is the reason a request to verify an
// organizations's ownership/control of a domain failed.
//
//   - UNSET: NOT_PROVIDED is the default value.
//
// It should never be used when a verification failed.
//   - NO_TXT_RECORD: NO_TXT_RECORD is the reason a verification failed
//
// when a domain does not contain proof of ownership.
//   - NO_SUCH_HOST: NO_SUCH_HOST is the reason a verification failed when the
//
// given domain does not exist.
//   - ALREADY_IN_USE: ALREADY_IN_USE is the reason a verfication failed when the
//
// given domain is already in use by another organization.
//
// swagger:model hashicorp.cloud.iam.VerifyDomainOwnershipResponse.ReasonDomainOwnershipUnverified
type HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverified string

func NewHashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverified(value HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverified) *HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverified {
	return &value
}

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

const (

	// HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverifiedUNSET captures enum value "UNSET"
	HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverifiedUNSET HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverified = "UNSET"

	// HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverifiedNOTXTRECORD captures enum value "NO_TXT_RECORD"
	HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverifiedNOTXTRECORD HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverified = "NO_TXT_RECORD"

	// HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverifiedNOSUCHHOST captures enum value "NO_SUCH_HOST"
	HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverifiedNOSUCHHOST HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverified = "NO_SUCH_HOST"

	// HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverifiedALREADYINUSE captures enum value "ALREADY_IN_USE"
	HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverifiedALREADYINUSE HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverified = "ALREADY_IN_USE"
)

// for schema
var hashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverifiedEnum []interface{}

func init() {
	var res []HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverified
	if err := json.Unmarshal([]byte(`["UNSET","NO_TXT_RECORD","NO_SUCH_HOST","ALREADY_IN_USE"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverifiedEnum = append(hashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverifiedEnum, v)
	}
}

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

// Validate validates this hashicorp cloud iam verify domain ownership response reason domain ownership unverified
func (m HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverified) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud iam verify domain ownership response reason domain ownership unverified based on context it is used
func (m HashicorpCloudIamVerifyDomainOwnershipResponseReasonDomainOwnershipUnverified) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
