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

// HashicorpCloudGlobalNetworkManager20220215TrialStatus TrialStatus is status of an organization's trial
//
// - TRIAL_STATUS_UNSPECIFIED: trial status is not specified
//   - TRIAL_STATUS_UNSTARTED: trial has not started
//   - TRIAL_STATUS_IN_PROGRESS: trial is in progress
//   - TRIAL_STATUS_EXPIRED: trial is expired
//   - TRIAL_STATUS_INELIGIBLE: organization is ineligible for a trial
//
// swagger:model hashicorp.cloud.global_network_manager_20220215.TrialStatus
type HashicorpCloudGlobalNetworkManager20220215TrialStatus string

func NewHashicorpCloudGlobalNetworkManager20220215TrialStatus(value HashicorpCloudGlobalNetworkManager20220215TrialStatus) *HashicorpCloudGlobalNetworkManager20220215TrialStatus {
	return &value
}

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

const (

	// HashicorpCloudGlobalNetworkManager20220215TrialStatusTRIALSTATUSUNSPECIFIED captures enum value "TRIAL_STATUS_UNSPECIFIED"
	HashicorpCloudGlobalNetworkManager20220215TrialStatusTRIALSTATUSUNSPECIFIED HashicorpCloudGlobalNetworkManager20220215TrialStatus = "TRIAL_STATUS_UNSPECIFIED"

	// HashicorpCloudGlobalNetworkManager20220215TrialStatusTRIALSTATUSUNSTARTED captures enum value "TRIAL_STATUS_UNSTARTED"
	HashicorpCloudGlobalNetworkManager20220215TrialStatusTRIALSTATUSUNSTARTED HashicorpCloudGlobalNetworkManager20220215TrialStatus = "TRIAL_STATUS_UNSTARTED"

	// HashicorpCloudGlobalNetworkManager20220215TrialStatusTRIALSTATUSINPROGRESS captures enum value "TRIAL_STATUS_IN_PROGRESS"
	HashicorpCloudGlobalNetworkManager20220215TrialStatusTRIALSTATUSINPROGRESS HashicorpCloudGlobalNetworkManager20220215TrialStatus = "TRIAL_STATUS_IN_PROGRESS"

	// HashicorpCloudGlobalNetworkManager20220215TrialStatusTRIALSTATUSEXPIRED captures enum value "TRIAL_STATUS_EXPIRED"
	HashicorpCloudGlobalNetworkManager20220215TrialStatusTRIALSTATUSEXPIRED HashicorpCloudGlobalNetworkManager20220215TrialStatus = "TRIAL_STATUS_EXPIRED"

	// HashicorpCloudGlobalNetworkManager20220215TrialStatusTRIALSTATUSINELIGIBLE captures enum value "TRIAL_STATUS_INELIGIBLE"
	HashicorpCloudGlobalNetworkManager20220215TrialStatusTRIALSTATUSINELIGIBLE HashicorpCloudGlobalNetworkManager20220215TrialStatus = "TRIAL_STATUS_INELIGIBLE"
)

// for schema
var hashicorpCloudGlobalNetworkManager20220215TrialStatusEnum []interface{}

func init() {
	var res []HashicorpCloudGlobalNetworkManager20220215TrialStatus
	if err := json.Unmarshal([]byte(`["TRIAL_STATUS_UNSPECIFIED","TRIAL_STATUS_UNSTARTED","TRIAL_STATUS_IN_PROGRESS","TRIAL_STATUS_EXPIRED","TRIAL_STATUS_INELIGIBLE"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudGlobalNetworkManager20220215TrialStatusEnum = append(hashicorpCloudGlobalNetworkManager20220215TrialStatusEnum, v)
	}
}

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

// Validate validates this hashicorp cloud global network manager 20220215 trial status
func (m HashicorpCloudGlobalNetworkManager20220215TrialStatus) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud global network manager 20220215 trial status based on context it is used
func (m HashicorpCloudGlobalNetworkManager20220215TrialStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
