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

// Billing20201105ConsumptionPoolStatus Status represents the status of a given consumption pool.
//
//   - ACTIVE: UPCOMING = 2;
//     ROLLOVER = 3;
//     NEGATIVE = 4;
//     EXPIRED = 5;
//
// swagger:model billing_20201105ConsumptionPoolStatus
type Billing20201105ConsumptionPoolStatus string

func NewBilling20201105ConsumptionPoolStatus(value Billing20201105ConsumptionPoolStatus) *Billing20201105ConsumptionPoolStatus {
	return &value
}

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

const (

	// Billing20201105ConsumptionPoolStatusUNSET captures enum value "UNSET"
	Billing20201105ConsumptionPoolStatusUNSET Billing20201105ConsumptionPoolStatus = "UNSET"

	// Billing20201105ConsumptionPoolStatusACTIVE captures enum value "ACTIVE"
	Billing20201105ConsumptionPoolStatusACTIVE Billing20201105ConsumptionPoolStatus = "ACTIVE"
)

// for schema
var billing20201105ConsumptionPoolStatusEnum []interface{}

func init() {
	var res []Billing20201105ConsumptionPoolStatus
	if err := json.Unmarshal([]byte(`["UNSET","ACTIVE"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		billing20201105ConsumptionPoolStatusEnum = append(billing20201105ConsumptionPoolStatusEnum, v)
	}
}

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

// Validate validates this billing 20201105 consumption pool status
func (m Billing20201105ConsumptionPoolStatus) Validate(formats strfmt.Registry) error {
	var res []error

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

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

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