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

// Billing20201105ConsumptionPoolUpdateInfoUpdateCause update_cause defines possible reasons for the update to the consumption pool
//
// swagger:model billing_20201105ConsumptionPoolUpdateInfoUpdateCause
type Billing20201105ConsumptionPoolUpdateInfoUpdateCause string

func NewBilling20201105ConsumptionPoolUpdateInfoUpdateCause(value Billing20201105ConsumptionPoolUpdateInfoUpdateCause) *Billing20201105ConsumptionPoolUpdateInfoUpdateCause {
	return &value
}

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

const (

	// Billing20201105ConsumptionPoolUpdateInfoUpdateCauseADDON captures enum value "ADDON"
	Billing20201105ConsumptionPoolUpdateInfoUpdateCauseADDON Billing20201105ConsumptionPoolUpdateInfoUpdateCause = "ADDON"

	// Billing20201105ConsumptionPoolUpdateInfoUpdateCauseEARLYRENEWAL captures enum value "EARLY_RENEWAL"
	Billing20201105ConsumptionPoolUpdateInfoUpdateCauseEARLYRENEWAL Billing20201105ConsumptionPoolUpdateInfoUpdateCause = "EARLY_RENEWAL"
)

// for schema
var billing20201105ConsumptionPoolUpdateInfoUpdateCauseEnum []interface{}

func init() {
	var res []Billing20201105ConsumptionPoolUpdateInfoUpdateCause
	if err := json.Unmarshal([]byte(`["ADDON","EARLY_RENEWAL"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		billing20201105ConsumptionPoolUpdateInfoUpdateCauseEnum = append(billing20201105ConsumptionPoolUpdateInfoUpdateCauseEnum, v)
	}
}

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

// Validate validates this billing 20201105 consumption pool update info update cause
func (m Billing20201105ConsumptionPoolUpdateInfoUpdateCause) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this billing 20201105 consumption pool update info update cause based on context it is used
func (m Billing20201105ConsumptionPoolUpdateInfoUpdateCause) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
