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

// HashicorpCloudWaypointActionRunResponseStatus This is the status of the request that the action ran.
//
//   - NONE: default/zero value; we have no status yet
//   - UNKNOWN: a status we didn't understand
//   - SUCCESS: action submitted successfully
//   - ERROR: it did not work
//
// swagger:model hashicorp.cloud.waypoint.ActionRun.ResponseStatus
type HashicorpCloudWaypointActionRunResponseStatus string

func NewHashicorpCloudWaypointActionRunResponseStatus(value HashicorpCloudWaypointActionRunResponseStatus) *HashicorpCloudWaypointActionRunResponseStatus {
	return &value
}

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

const (

	// HashicorpCloudWaypointActionRunResponseStatusNONE captures enum value "NONE"
	HashicorpCloudWaypointActionRunResponseStatusNONE HashicorpCloudWaypointActionRunResponseStatus = "NONE"

	// HashicorpCloudWaypointActionRunResponseStatusUNKNOWN captures enum value "UNKNOWN"
	HashicorpCloudWaypointActionRunResponseStatusUNKNOWN HashicorpCloudWaypointActionRunResponseStatus = "UNKNOWN"

	// HashicorpCloudWaypointActionRunResponseStatusSUCCESS captures enum value "SUCCESS"
	HashicorpCloudWaypointActionRunResponseStatusSUCCESS HashicorpCloudWaypointActionRunResponseStatus = "SUCCESS"

	// HashicorpCloudWaypointActionRunResponseStatusERROR captures enum value "ERROR"
	HashicorpCloudWaypointActionRunResponseStatusERROR HashicorpCloudWaypointActionRunResponseStatus = "ERROR"
)

// for schema
var hashicorpCloudWaypointActionRunResponseStatusEnum []interface{}

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

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

// Validate validates this hashicorp cloud waypoint action run response status
func (m HashicorpCloudWaypointActionRunResponseStatus) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud waypoint action run response status based on context it is used
func (m HashicorpCloudWaypointActionRunResponseStatus) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
