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

// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTC hashicorp cloud vault 20201125 minor version upgrade config maintenance window time window u t c
//
// swagger:model hashicorp.cloud.vault_20201125.MinorVersionUpgradeConfig.MaintenanceWindow.TimeWindowUTC
type HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTC string

func NewHashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTC(value HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTC) *HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTC {
	return &value
}

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

const (

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTCTIMEWINDOWUTCINVALID captures enum value "TIME_WINDOW_UTC_INVALID"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTCTIMEWINDOWUTCINVALID HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTC = "TIME_WINDOW_UTC_INVALID"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTCWINDOW12AM4AM captures enum value "WINDOW_12AM_4AM"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTCWINDOW12AM4AM HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTC = "WINDOW_12AM_4AM"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTCWINDOW6AM10AM captures enum value "WINDOW_6AM_10AM"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTCWINDOW6AM10AM HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTC = "WINDOW_6AM_10AM"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTCWINDOW12PM4PM captures enum value "WINDOW_12PM_4PM"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTCWINDOW12PM4PM HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTC = "WINDOW_12PM_4PM"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTCWINDOW6PM10PM captures enum value "WINDOW_6PM_10PM"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTCWINDOW6PM10PM HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTC = "WINDOW_6PM_10PM"
)

// for schema
var hashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTCEnum []interface{}

func init() {
	var res []HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTC
	if err := json.Unmarshal([]byte(`["TIME_WINDOW_UTC_INVALID","WINDOW_12AM_4AM","WINDOW_6AM_10AM","WINDOW_12PM_4PM","WINDOW_6PM_10PM"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTCEnum = append(hashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTCEnum, v)
	}
}

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

// Validate validates this hashicorp cloud vault 20201125 minor version upgrade config maintenance window time window u t c
func (m HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTC) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud vault 20201125 minor version upgrade config maintenance window time window u t c based on context it is used
func (m HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowTimeWindowUTC) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
