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

// BulkCreateAppKVSecretsRequestNameConflictPolicy bulk create app k v secrets request name conflict policy
//
// swagger:model BulkCreateAppKVSecretsRequestNameConflictPolicy
type BulkCreateAppKVSecretsRequestNameConflictPolicy string

func NewBulkCreateAppKVSecretsRequestNameConflictPolicy(value BulkCreateAppKVSecretsRequestNameConflictPolicy) *BulkCreateAppKVSecretsRequestNameConflictPolicy {
	return &value
}

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

const (

	// BulkCreateAppKVSecretsRequestNameConflictPolicyFAIL captures enum value "FAIL"
	BulkCreateAppKVSecretsRequestNameConflictPolicyFAIL BulkCreateAppKVSecretsRequestNameConflictPolicy = "FAIL"

	// BulkCreateAppKVSecretsRequestNameConflictPolicyUPDATE captures enum value "UPDATE"
	BulkCreateAppKVSecretsRequestNameConflictPolicyUPDATE BulkCreateAppKVSecretsRequestNameConflictPolicy = "UPDATE"
)

// for schema
var bulkCreateAppKVSecretsRequestNameConflictPolicyEnum []interface{}

func init() {
	var res []BulkCreateAppKVSecretsRequestNameConflictPolicy
	if err := json.Unmarshal([]byte(`["FAIL","UPDATE"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		bulkCreateAppKVSecretsRequestNameConflictPolicyEnum = append(bulkCreateAppKVSecretsRequestNameConflictPolicyEnum, v)
	}
}

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

// Validate validates this bulk create app k v secrets request name conflict policy
func (m BulkCreateAppKVSecretsRequestNameConflictPolicy) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this bulk create app k v secrets request name conflict policy based on context it is used
func (m BulkCreateAppKVSecretsRequestNameConflictPolicy) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
