// Code generated by protoc-gen-goext. DO NOT EDIT.

package k8s

import (
	dayofweek "google.golang.org/genproto/googleapis/type/dayofweek"
	timeofday "google.golang.org/genproto/googleapis/type/timeofday"
	durationpb "google.golang.org/protobuf/types/known/durationpb"
	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)

type MaintenanceWindow_Policy = isMaintenanceWindow_Policy

func (m *MaintenanceWindow) SetPolicy(v MaintenanceWindow_Policy) {
	m.Policy = v
}

func (m *MaintenanceWindow) SetAnytime(v *AnytimeMaintenanceWindow) {
	m.Policy = &MaintenanceWindow_Anytime{
		Anytime: v,
	}
}

func (m *MaintenanceWindow) SetDailyMaintenanceWindow(v *DailyMaintenanceWindow) {
	m.Policy = &MaintenanceWindow_DailyMaintenanceWindow{
		DailyMaintenanceWindow: v,
	}
}

func (m *MaintenanceWindow) SetWeeklyMaintenanceWindow(v *WeeklyMaintenanceWindow) {
	m.Policy = &MaintenanceWindow_WeeklyMaintenanceWindow{
		WeeklyMaintenanceWindow: v,
	}
}

func (m *DailyMaintenanceWindow) SetStartTime(v *timeofday.TimeOfDay) {
	m.StartTime = v
}

func (m *DailyMaintenanceWindow) SetDuration(v *durationpb.Duration) {
	m.Duration = v
}

func (m *DaysOfWeekMaintenanceWindow) SetDays(v []dayofweek.DayOfWeek) {
	m.Days = v
}

func (m *DaysOfWeekMaintenanceWindow) SetStartTime(v *timeofday.TimeOfDay) {
	m.StartTime = v
}

func (m *DaysOfWeekMaintenanceWindow) SetDuration(v *durationpb.Duration) {
	m.Duration = v
}

func (m *WeeklyMaintenanceWindow) SetDaysOfWeek(v []*DaysOfWeekMaintenanceWindow) {
	m.DaysOfWeek = v
}

func (m *ScheduledMaintenance) SetDelayedUntil(v *timestamppb.Timestamp) {
	m.DelayedUntil = v
}

func (m *ScheduledMaintenance) SetAvailableFrom(v *timestamppb.Timestamp) {
	m.AvailableFrom = v
}

func (m *ScheduledMaintenance) SetNoLaterThan(v *timestamppb.Timestamp) {
	m.NoLaterThan = v
}

func (m *ScheduledMaintenance) SetDescription(v string) {
	m.Description = v
}
