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

// HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek hashicorp cloud vault 20201125 major version upgrade config maintenance window day of week
//
// swagger:model hashicorp.cloud.vault_20201125.MajorVersionUpgradeConfig.MaintenanceWindow.DayOfWeek
type HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek string

func NewHashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek(value HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek) *HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek {
	return &value
}

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

const (

	// HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekDAYOFWEEKINVALID captures enum value "DAY_OF_WEEK_INVALID"
	HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekDAYOFWEEKINVALID HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "DAY_OF_WEEK_INVALID"

	// HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekMONDAY captures enum value "MONDAY"
	HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekMONDAY HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "MONDAY"

	// HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekTUESDAY captures enum value "TUESDAY"
	HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekTUESDAY HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "TUESDAY"

	// HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekWEDNESDAY captures enum value "WEDNESDAY"
	HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekWEDNESDAY HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "WEDNESDAY"

	// HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekTHURSDAY captures enum value "THURSDAY"
	HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekTHURSDAY HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "THURSDAY"

	// HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekFRIDAY captures enum value "FRIDAY"
	HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekFRIDAY HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "FRIDAY"

	// HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekSATURDAY captures enum value "SATURDAY"
	HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekSATURDAY HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "SATURDAY"

	// HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekSUNDAY captures enum value "SUNDAY"
	HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekSUNDAY HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek = "SUNDAY"
)

// for schema
var hashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekEnum []interface{}

func init() {
	var res []HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek
	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 {
		hashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekEnum = append(hashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeekEnum, v)
	}
}

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

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

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

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

// ContextValidate validates this hashicorp cloud vault 20201125 major version upgrade config maintenance window day of week based on context it is used
func (m HashicorpCloudVault20201125MajorVersionUpgradeConfigMaintenanceWindowDayOfWeek) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
