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

// HashicorpCloudResourcemanagerOrganizationOrganizationState OrganizationState is the states the organization can be in.
//
// swagger:model hashicorp.cloud.resourcemanager.Organization.OrganizationState
type HashicorpCloudResourcemanagerOrganizationOrganizationState string

func NewHashicorpCloudResourcemanagerOrganizationOrganizationState(value HashicorpCloudResourcemanagerOrganizationOrganizationState) *HashicorpCloudResourcemanagerOrganizationOrganizationState {
	return &value
}

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

const (

	// HashicorpCloudResourcemanagerOrganizationOrganizationStateUNKNOWN captures enum value "UNKNOWN"
	HashicorpCloudResourcemanagerOrganizationOrganizationStateUNKNOWN HashicorpCloudResourcemanagerOrganizationOrganizationState = "UNKNOWN"

	// HashicorpCloudResourcemanagerOrganizationOrganizationStateACTIVE captures enum value "ACTIVE"
	HashicorpCloudResourcemanagerOrganizationOrganizationStateACTIVE HashicorpCloudResourcemanagerOrganizationOrganizationState = "ACTIVE"

	// HashicorpCloudResourcemanagerOrganizationOrganizationStatePENDINGDELETE captures enum value "PENDING_DELETE"
	HashicorpCloudResourcemanagerOrganizationOrganizationStatePENDINGDELETE HashicorpCloudResourcemanagerOrganizationOrganizationState = "PENDING_DELETE"
)

// for schema
var hashicorpCloudResourcemanagerOrganizationOrganizationStateEnum []interface{}

func init() {
	var res []HashicorpCloudResourcemanagerOrganizationOrganizationState
	if err := json.Unmarshal([]byte(`["UNKNOWN","ACTIVE","PENDING_DELETE"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudResourcemanagerOrganizationOrganizationStateEnum = append(hashicorpCloudResourcemanagerOrganizationOrganizationStateEnum, v)
	}
}

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

// Validate validates this hashicorp cloud resourcemanager organization organization state
func (m HashicorpCloudResourcemanagerOrganizationOrganizationState) Validate(formats strfmt.Registry) error {
	var res []error

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

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

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