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

// LogService20210330DestinationFilterType log service 20210330 destination filter type
//
// swagger:model log_service_20210330DestinationFilterType
type LogService20210330DestinationFilterType string

func NewLogService20210330DestinationFilterType(value LogService20210330DestinationFilterType) *LogService20210330DestinationFilterType {
	return &value
}

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

const (

	// LogService20210330DestinationFilterTypeDESTINATIONFILTERTYPEUNKNOWN captures enum value "DESTINATION_FILTER_TYPE_UNKNOWN"
	LogService20210330DestinationFilterTypeDESTINATIONFILTERTYPEUNKNOWN LogService20210330DestinationFilterType = "DESTINATION_FILTER_TYPE_UNKNOWN"

	// LogService20210330DestinationFilterTypeDESTINATIONFILTERTYPEORGFILTER captures enum value "DESTINATION_FILTER_TYPE_ORG_FILTER"
	LogService20210330DestinationFilterTypeDESTINATIONFILTERTYPEORGFILTER LogService20210330DestinationFilterType = "DESTINATION_FILTER_TYPE_ORG_FILTER"
)

// for schema
var logService20210330DestinationFilterTypeEnum []interface{}

func init() {
	var res []LogService20210330DestinationFilterType
	if err := json.Unmarshal([]byte(`["DESTINATION_FILTER_TYPE_UNKNOWN","DESTINATION_FILTER_TYPE_ORG_FILTER"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		logService20210330DestinationFilterTypeEnum = append(logService20210330DestinationFilterTypeEnum, v)
	}
}

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

// Validate validates this log service 20210330 destination filter type
func (m LogService20210330DestinationFilterType) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this log service 20210330 destination filter type based on context it is used
func (m LogService20210330DestinationFilterType) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
