Class TimeInWeek
java.lang.Object
com.azure.resourcemanager.containerservice.models.TimeInWeek
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TimeInWeek>
Time in a week.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionday()Get the day property: The day of the week.static TimeInWeekfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TimeInWeek from the JsonReader.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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the day property: The day of the week.withHourSlots(List<Integer> hourSlots) 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
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: 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: 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.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TimeInWeek>- Throws:
IOException
-
fromJson
Reads an instance of TimeInWeek from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TimeInWeek if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the TimeInWeek.
-