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

// HashicorpCloudWaypointV20241122TerraformTFRunState hashicorp cloud waypoint v20241122 terraform t f run state
//
// swagger:model hashicorp.cloud.waypoint.v20241122.Terraform.TFRunState
type HashicorpCloudWaypointV20241122TerraformTFRunState string

func NewHashicorpCloudWaypointV20241122TerraformTFRunState(value HashicorpCloudWaypointV20241122TerraformTFRunState) *HashicorpCloudWaypointV20241122TerraformTFRunState {
	return &value
}

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

const (

	// HashicorpCloudWaypointV20241122TerraformTFRunStateUNKNOWN captures enum value "UNKNOWN"
	HashicorpCloudWaypointV20241122TerraformTFRunStateUNKNOWN HashicorpCloudWaypointV20241122TerraformTFRunState = "UNKNOWN"

	// HashicorpCloudWaypointV20241122TerraformTFRunStateRUNNING captures enum value "RUNNING"
	HashicorpCloudWaypointV20241122TerraformTFRunStateRUNNING HashicorpCloudWaypointV20241122TerraformTFRunState = "RUNNING"

	// HashicorpCloudWaypointV20241122TerraformTFRunStateSUCCESS captures enum value "SUCCESS"
	HashicorpCloudWaypointV20241122TerraformTFRunStateSUCCESS HashicorpCloudWaypointV20241122TerraformTFRunState = "SUCCESS"

	// HashicorpCloudWaypointV20241122TerraformTFRunStateERROR captures enum value "ERROR"
	HashicorpCloudWaypointV20241122TerraformTFRunStateERROR HashicorpCloudWaypointV20241122TerraformTFRunState = "ERROR"
)

// for schema
var hashicorpCloudWaypointV20241122TerraformTFRunStateEnum []interface{}

func init() {
	var res []HashicorpCloudWaypointV20241122TerraformTFRunState
	if err := json.Unmarshal([]byte(`["UNKNOWN","RUNNING","SUCCESS","ERROR"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudWaypointV20241122TerraformTFRunStateEnum = append(hashicorpCloudWaypointV20241122TerraformTFRunStateEnum, v)
	}
}

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

// Validate validates this hashicorp cloud waypoint v20241122 terraform t f run state
func (m HashicorpCloudWaypointV20241122TerraformTFRunState) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud waypoint v20241122 terraform t f run state based on context it is used
func (m HashicorpCloudWaypointV20241122TerraformTFRunState) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
