Class TimeInWeek
java.lang.Object
com.azure.resourcemanager.containerservice.models.TimeInWeek
Time in a week.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionday()Get the day property: The day of the week.Get the hourSlots property: A list of hours in the day used to identify a time range.voidvalidate()Validates the instance.Set the day property: The day of the week.withHourSlots(List<Integer> hourSlots) Set the hourSlots property: A list of hours in the day used to identify a time range.
-
Constructor Details
-
TimeInWeek
public TimeInWeek()Creates an instance of TimeInWeek class.
-
-
Method Details
-
day
Get the day property: The day of the week.- Returns:
- the day value.
-
withDay
Set the day property: The day of the week.- Parameters:
day- the day value to set.- Returns:
- the TimeInWeek object itself.
-
hourSlots
Get the hourSlots property: A list of hours in the day used to identify a time range. Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.- Returns:
- the hourSlots value.
-
withHourSlots
Set the hourSlots property: A list of hours in the day used to identify a time range. Each integer hour represents a time range beginning at 0m after the hour ending at the next hour (non-inclusive). 0 corresponds to 00:00 UTC, 23 corresponds to 23:00 UTC. Specifying [0, 1] means the 00:00 - 02:00 UTC time range.- Parameters:
hourSlots- the hourSlots value to set.- Returns:
- the TimeInWeek object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-