/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace BackupGateway { namespace Model { /** *

This is your gateway's weekly maintenance start time including the day and * time of the week. Note that values are in terms of the gateway's time zone. Can * be weekly or monthly.

See Also:

AWS * API Reference

*/ class MaintenanceStartTime { public: AWS_BACKUPGATEWAY_API MaintenanceStartTime(); AWS_BACKUPGATEWAY_API MaintenanceStartTime(Aws::Utils::Json::JsonView jsonValue); AWS_BACKUPGATEWAY_API MaintenanceStartTime& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_BACKUPGATEWAY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The day of the month component of the maintenance start time represented as * an ordinal number from 1 to 28, where 1 represents the first day of the month * and 28 represents the last day of the month.

*/ inline int GetDayOfMonth() const{ return m_dayOfMonth; } /** *

The day of the month component of the maintenance start time represented as * an ordinal number from 1 to 28, where 1 represents the first day of the month * and 28 represents the last day of the month.

*/ inline bool DayOfMonthHasBeenSet() const { return m_dayOfMonthHasBeenSet; } /** *

The day of the month component of the maintenance start time represented as * an ordinal number from 1 to 28, where 1 represents the first day of the month * and 28 represents the last day of the month.

*/ inline void SetDayOfMonth(int value) { m_dayOfMonthHasBeenSet = true; m_dayOfMonth = value; } /** *

The day of the month component of the maintenance start time represented as * an ordinal number from 1 to 28, where 1 represents the first day of the month * and 28 represents the last day of the month.

*/ inline MaintenanceStartTime& WithDayOfMonth(int value) { SetDayOfMonth(value); return *this;} /** *

An ordinal number between 0 and 6 that represents the day of the week, where * 0 represents Sunday and 6 represents Saturday. The day of week is in the time * zone of the gateway.

*/ inline int GetDayOfWeek() const{ return m_dayOfWeek; } /** *

An ordinal number between 0 and 6 that represents the day of the week, where * 0 represents Sunday and 6 represents Saturday. The day of week is in the time * zone of the gateway.

*/ inline bool DayOfWeekHasBeenSet() const { return m_dayOfWeekHasBeenSet; } /** *

An ordinal number between 0 and 6 that represents the day of the week, where * 0 represents Sunday and 6 represents Saturday. The day of week is in the time * zone of the gateway.

*/ inline void SetDayOfWeek(int value) { m_dayOfWeekHasBeenSet = true; m_dayOfWeek = value; } /** *

An ordinal number between 0 and 6 that represents the day of the week, where * 0 represents Sunday and 6 represents Saturday. The day of week is in the time * zone of the gateway.

*/ inline MaintenanceStartTime& WithDayOfWeek(int value) { SetDayOfWeek(value); return *this;} /** *

The hour component of the maintenance start time represented as hh, * where hh is the hour (0 to 23). The hour of the day is in the time zone * of the gateway.

*/ inline int GetHourOfDay() const{ return m_hourOfDay; } /** *

The hour component of the maintenance start time represented as hh, * where hh is the hour (0 to 23). The hour of the day is in the time zone * of the gateway.

*/ inline bool HourOfDayHasBeenSet() const { return m_hourOfDayHasBeenSet; } /** *

The hour component of the maintenance start time represented as hh, * where hh is the hour (0 to 23). The hour of the day is in the time zone * of the gateway.

*/ inline void SetHourOfDay(int value) { m_hourOfDayHasBeenSet = true; m_hourOfDay = value; } /** *

The hour component of the maintenance start time represented as hh, * where hh is the hour (0 to 23). The hour of the day is in the time zone * of the gateway.

*/ inline MaintenanceStartTime& WithHourOfDay(int value) { SetHourOfDay(value); return *this;} /** *

The minute component of the maintenance start time represented as mm, * where mm is the minute (0 to 59). The minute of the hour is in the time * zone of the gateway.

*/ inline int GetMinuteOfHour() const{ return m_minuteOfHour; } /** *

The minute component of the maintenance start time represented as mm, * where mm is the minute (0 to 59). The minute of the hour is in the time * zone of the gateway.

*/ inline bool MinuteOfHourHasBeenSet() const { return m_minuteOfHourHasBeenSet; } /** *

The minute component of the maintenance start time represented as mm, * where mm is the minute (0 to 59). The minute of the hour is in the time * zone of the gateway.

*/ inline void SetMinuteOfHour(int value) { m_minuteOfHourHasBeenSet = true; m_minuteOfHour = value; } /** *

The minute component of the maintenance start time represented as mm, * where mm is the minute (0 to 59). The minute of the hour is in the time * zone of the gateway.

*/ inline MaintenanceStartTime& WithMinuteOfHour(int value) { SetMinuteOfHour(value); return *this;} private: int m_dayOfMonth; bool m_dayOfMonthHasBeenSet = false; int m_dayOfWeek; bool m_dayOfWeekHasBeenSet = false; int m_hourOfDay; bool m_hourOfDayHasBeenSet = false; int m_minuteOfHour; bool m_minuteOfHourHasBeenSet = false; }; } // namespace Model } // namespace BackupGateway } // namespace Aws