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

// HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethod hashicorp cloud waypoint v20241122 action config flavor custom method
//
// swagger:model hashicorp.cloud.waypoint.v20241122.ActionConfig.Flavor.Custom.Method
type HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethod string

func NewHashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethod(value HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethod) *HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethod {
	return &value
}

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

const (

	// HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethodGET captures enum value "GET"
	HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethodGET HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethod = "GET"

	// HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethodPOST captures enum value "POST"
	HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethodPOST HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethod = "POST"

	// HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethodPUT captures enum value "PUT"
	HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethodPUT HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethod = "PUT"

	// HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethodDELETE captures enum value "DELETE"
	HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethodDELETE HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethod = "DELETE"

	// HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethodPATCH captures enum value "PATCH"
	HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethodPATCH HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethod = "PATCH"
)

// for schema
var hashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethodEnum []interface{}

func init() {
	var res []HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethod
	if err := json.Unmarshal([]byte(`["GET","POST","PUT","DELETE","PATCH"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethodEnum = append(hashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethodEnum, v)
	}
}

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

// Validate validates this hashicorp cloud waypoint v20241122 action config flavor custom method
func (m HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethod) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud waypoint v20241122 action config flavor custom method based on context it is used
func (m HashicorpCloudWaypointV20241122ActionConfigFlavorCustomMethod) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
