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

// LinkedClusterNodeLogLevel linked cluster node log level
//
// swagger:model LinkedClusterNodeLogLevel
type LinkedClusterNodeLogLevel string

func NewLinkedClusterNodeLogLevel(value LinkedClusterNodeLogLevel) *LinkedClusterNodeLogLevel {
	return &value
}

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

const (

	// LinkedClusterNodeLogLevelLOGLEVELCLUSTERSTATEINVALID captures enum value "LOG_LEVEL_CLUSTER_STATE_INVALID"
	LinkedClusterNodeLogLevelLOGLEVELCLUSTERSTATEINVALID LinkedClusterNodeLogLevel = "LOG_LEVEL_CLUSTER_STATE_INVALID"

	// LinkedClusterNodeLogLevelTRACE captures enum value "TRACE"
	LinkedClusterNodeLogLevelTRACE LinkedClusterNodeLogLevel = "TRACE"

	// LinkedClusterNodeLogLevelDEBUG captures enum value "DEBUG"
	LinkedClusterNodeLogLevelDEBUG LinkedClusterNodeLogLevel = "DEBUG"

	// LinkedClusterNodeLogLevelINFO captures enum value "INFO"
	LinkedClusterNodeLogLevelINFO LinkedClusterNodeLogLevel = "INFO"

	// LinkedClusterNodeLogLevelWARN captures enum value "WARN"
	LinkedClusterNodeLogLevelWARN LinkedClusterNodeLogLevel = "WARN"

	// LinkedClusterNodeLogLevelERROR captures enum value "ERROR"
	LinkedClusterNodeLogLevelERROR LinkedClusterNodeLogLevel = "ERROR"
)

// for schema
var linkedClusterNodeLogLevelEnum []interface{}

func init() {
	var res []LinkedClusterNodeLogLevel
	if err := json.Unmarshal([]byte(`["LOG_LEVEL_CLUSTER_STATE_INVALID","TRACE","DEBUG","INFO","WARN","ERROR"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		linkedClusterNodeLogLevelEnum = append(linkedClusterNodeLogLevelEnum, v)
	}
}

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

// Validate validates this linked cluster node log level
func (m LinkedClusterNodeLogLevel) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this linked cluster node log level based on context it is used
func (m LinkedClusterNodeLogLevel) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
