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

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

func NewHashicorpCloudWaypointActionConfigFlavorCustomMethod(value HashicorpCloudWaypointActionConfigFlavorCustomMethod) *HashicorpCloudWaypointActionConfigFlavorCustomMethod {
	return &value
}

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

const (

	// HashicorpCloudWaypointActionConfigFlavorCustomMethodGET captures enum value "GET"
	HashicorpCloudWaypointActionConfigFlavorCustomMethodGET HashicorpCloudWaypointActionConfigFlavorCustomMethod = "GET"

	// HashicorpCloudWaypointActionConfigFlavorCustomMethodPOST captures enum value "POST"
	HashicorpCloudWaypointActionConfigFlavorCustomMethodPOST HashicorpCloudWaypointActionConfigFlavorCustomMethod = "POST"

	// HashicorpCloudWaypointActionConfigFlavorCustomMethodPUT captures enum value "PUT"
	HashicorpCloudWaypointActionConfigFlavorCustomMethodPUT HashicorpCloudWaypointActionConfigFlavorCustomMethod = "PUT"

	// HashicorpCloudWaypointActionConfigFlavorCustomMethodDELETE captures enum value "DELETE"
	HashicorpCloudWaypointActionConfigFlavorCustomMethodDELETE HashicorpCloudWaypointActionConfigFlavorCustomMethod = "DELETE"

	// HashicorpCloudWaypointActionConfigFlavorCustomMethodPATCH captures enum value "PATCH"
	HashicorpCloudWaypointActionConfigFlavorCustomMethodPATCH HashicorpCloudWaypointActionConfigFlavorCustomMethod = "PATCH"
)

// for schema
var hashicorpCloudWaypointActionConfigFlavorCustomMethodEnum []interface{}

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

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

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

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

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

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