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

// HashicorpCloudResourcemanagerCheckStatus Status of an individual check.
//
// swagger:model hashicorp.cloud.resourcemanager.CheckStatus
type HashicorpCloudResourcemanagerCheckStatus string

func NewHashicorpCloudResourcemanagerCheckStatus(value HashicorpCloudResourcemanagerCheckStatus) *HashicorpCloudResourcemanagerCheckStatus {
	return &value
}

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

const (

	// HashicorpCloudResourcemanagerCheckStatusCHECKSTATUSUNSPECIFIED captures enum value "CHECK_STATUS_UNSPECIFIED"
	HashicorpCloudResourcemanagerCheckStatusCHECKSTATUSUNSPECIFIED HashicorpCloudResourcemanagerCheckStatus = "CHECK_STATUS_UNSPECIFIED"

	// HashicorpCloudResourcemanagerCheckStatusCHECKSTATUSPASS captures enum value "CHECK_STATUS_PASS"
	HashicorpCloudResourcemanagerCheckStatusCHECKSTATUSPASS HashicorpCloudResourcemanagerCheckStatus = "CHECK_STATUS_PASS"

	// HashicorpCloudResourcemanagerCheckStatusCHECKSTATUSFAIL captures enum value "CHECK_STATUS_FAIL"
	HashicorpCloudResourcemanagerCheckStatusCHECKSTATUSFAIL HashicorpCloudResourcemanagerCheckStatus = "CHECK_STATUS_FAIL"

	// HashicorpCloudResourcemanagerCheckStatusCHECKSTATUSUNKNOWN captures enum value "CHECK_STATUS_UNKNOWN"
	HashicorpCloudResourcemanagerCheckStatusCHECKSTATUSUNKNOWN HashicorpCloudResourcemanagerCheckStatus = "CHECK_STATUS_UNKNOWN"
)

// for schema
var hashicorpCloudResourcemanagerCheckStatusEnum []interface{}

func init() {
	var res []HashicorpCloudResourcemanagerCheckStatus
	if err := json.Unmarshal([]byte(`["CHECK_STATUS_UNSPECIFIED","CHECK_STATUS_PASS","CHECK_STATUS_FAIL","CHECK_STATUS_UNKNOWN"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudResourcemanagerCheckStatusEnum = append(hashicorpCloudResourcemanagerCheckStatusEnum, v)
	}
}

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

// Validate validates this hashicorp cloud resourcemanager check status
func (m HashicorpCloudResourcemanagerCheckStatus) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud resourcemanager check status based on context it is used
func (m HashicorpCloudResourcemanagerCheckStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
