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

// HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek DayOfWeek is the days of the week enumerated
//
// - DAY_OF_WEEK_UNSPECIFIED: DAY_OF_WEEK_UNSPECIFIED is an unspecified DayOfWeek
//   - DAY_OF_WEEK_MONDAY: DAY_OF_WEEK_MONDAY is Monday
//   - DAY_OF_WEEK_TUESDAY: DAY_OF_WEEK_TUESDAY is Tuesday
//   - DAY_OF_WEEK_WEDNESDAY: DAY_OF_WEEK_WEDNESDAY is Wednesday
//   - DAY_OF_WEEK_THURSDAY: DAY_OF_WEEK_THURSDAY is Thursday
//   - DAY_OF_WEEK_FRIDAY: DAY_OF_WEEK_FRIDAY is Friday
//   - DAY_OF_WEEK_SATURDAY: DAY_OF_WEEK_SATURDAY is Saturday
//   - DAY_OF_WEEK_SUNDAY: DAY_OF_WEEK_SUNDAY is Sunday
//
// swagger:model hashicorp.cloud.boundary_20211221.MaintenanceWindow.DayOfWeek
type HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek string

func NewHashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek(value HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek) *HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek {
	return &value
}

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

const (

	// HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKUNSPECIFIED captures enum value "DAY_OF_WEEK_UNSPECIFIED"
	HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKUNSPECIFIED HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek = "DAY_OF_WEEK_UNSPECIFIED"

	// HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKMONDAY captures enum value "DAY_OF_WEEK_MONDAY"
	HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKMONDAY HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek = "DAY_OF_WEEK_MONDAY"

	// HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKTUESDAY captures enum value "DAY_OF_WEEK_TUESDAY"
	HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKTUESDAY HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek = "DAY_OF_WEEK_TUESDAY"

	// HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKWEDNESDAY captures enum value "DAY_OF_WEEK_WEDNESDAY"
	HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKWEDNESDAY HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek = "DAY_OF_WEEK_WEDNESDAY"

	// HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKTHURSDAY captures enum value "DAY_OF_WEEK_THURSDAY"
	HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKTHURSDAY HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek = "DAY_OF_WEEK_THURSDAY"

	// HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKFRIDAY captures enum value "DAY_OF_WEEK_FRIDAY"
	HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKFRIDAY HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek = "DAY_OF_WEEK_FRIDAY"

	// HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKSATURDAY captures enum value "DAY_OF_WEEK_SATURDAY"
	HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKSATURDAY HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek = "DAY_OF_WEEK_SATURDAY"

	// HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKSUNDAY captures enum value "DAY_OF_WEEK_SUNDAY"
	HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekDAYOFWEEKSUNDAY HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek = "DAY_OF_WEEK_SUNDAY"
)

// for schema
var hashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekEnum []interface{}

func init() {
	var res []HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek
	if err := json.Unmarshal([]byte(`["DAY_OF_WEEK_UNSPECIFIED","DAY_OF_WEEK_MONDAY","DAY_OF_WEEK_TUESDAY","DAY_OF_WEEK_WEDNESDAY","DAY_OF_WEEK_THURSDAY","DAY_OF_WEEK_FRIDAY","DAY_OF_WEEK_SATURDAY","DAY_OF_WEEK_SUNDAY"]`), &res); err != nil {
		panic(err)
	}
	for _, v := range res {
		hashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekEnum = append(hashicorpCloudBoundary20211221MaintenanceWindowDayOfWeekEnum, v)
	}
}

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

// Validate validates this hashicorp cloud boundary 20211221 maintenance window day of week
func (m HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek) Validate(formats strfmt.Registry) error {
	var res []error

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

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

// ContextValidate validates this hashicorp cloud boundary 20211221 maintenance window day of week based on context it is used
func (m HashicorpCloudBoundary20211221MaintenanceWindowDayOfWeek) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
	return nil
}
