TimeInWeek Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. TimeInWeek
- com.
Implements
public final class TimeInWeek
implements JsonSerializable<TimeInWeek>
Time in a week.
Constructor Summary
Constructor | Description |
---|---|
TimeInWeek() |
Creates an instance of Time |
Method Summary
Modifier and Type | Method and Description |
---|---|
Week |
day()
Get the day property: The day of the week. |
static
Time |
fromJson(JsonReader jsonReader)
Reads an instance of Time |
List<Integer> |
hourSlots()
Get the hour |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Time |
withDay(WeekDay day)
Set the day property: The day of the week. |
Time |
withHourSlots(List<Integer> hourSlots)
Set the hour |
Methods inherited from java.lang.Object
Constructor Details
TimeInWeek
public TimeInWeek()
Creates an instance of TimeInWeek class.
Method Details
day
public WeekDay day()
Get the day property: The day of the week.
Returns:
fromJson
public static TimeInWeek fromJson(JsonReader jsonReader)
Reads an instance of TimeInWeek from the JsonReader.
Parameters:
Returns:
Throws:
hourSlots
public List
Get the hourSlots property: 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:
toJson
validate
public void validate()
Validates the instance.
withDay
public TimeInWeek withDay(WeekDay day)
Set the day property: The day of the week.
Parameters:
Returns:
withHourSlots
public TimeInWeek withHourSlots(List
Set the hourSlots property: 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:
Returns:
Applies to
Azure SDK for Java