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

// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek hashicorp cloud vault 20201125 minor version upgrade config maintenance window day of week
//
// swagger:model hashicorp.cloud.vault_20201125.MinorVersionUpgradeConfig.MaintenanceWindow.DayOfWeek
type HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek string

func NewHashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek(value HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek) *HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek {
	return &value
}

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

const (

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekDAYOFWEEKINVALID captures enum value "DAY_OF_WEEK_INVALID"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekDAYOFWEEKINVALID HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "DAY_OF_WEEK_INVALID"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekMONDAY captures enum value "MONDAY"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekMONDAY HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "MONDAY"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekTUESDAY captures enum value "TUESDAY"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekTUESDAY HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "TUESDAY"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekWEDNESDAY captures enum value "WEDNESDAY"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekWEDNESDAY HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "WEDNESDAY"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekTHURSDAY captures enum value "THURSDAY"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekTHURSDAY HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "THURSDAY"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekFRIDAY captures enum value "FRIDAY"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekFRIDAY HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "FRIDAY"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekSATURDAY captures enum value "SATURDAY"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekSATURDAY HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "SATURDAY"

	// HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekSUNDAY captures enum value "SUNDAY"
	HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekSUNDAY HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "SUNDAY"
)

// for schema
var hashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekEnum []interface{}

func init() {
	var res []HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek
	if err := json.Unmarshal([]byte(`["DAY_OF_WEEK_INVALID","MONDAY","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekEnum = append(hashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekEnum, v)
	}
}

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

// Validate validates this hashicorp cloud vault 20201125 minor version upgrade config maintenance window day of week
func (m HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek) Validate(formats strfmt.Registry) error {
	var res []error

	// value enum
	if err := m.validateHashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeekEnum("", "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 day of week based on context it is used
func (m HashicorpCloudVault20201125MinorVersionUpgradeConfigMaintenanceWindowDayOfWeek) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
