java.lang.Object
com.azure.resourcemanager.containerservice.models.TimeInWeek
All Implemented Interfaces:
com.azure.json.JsonSerializable<TimeInWeek>

public final class TimeInWeek extends Object implements com.azure.json.JsonSerializable<TimeInWeek>
Time in a week.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of TimeInWeek class.
  • Method Summary

    Modifier and Type
    Method
    Description
    day()
    Get the day property: The day of the week.
    static TimeInWeek
    fromJson(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.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the day property: The day of the week.
    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, wait

    Methods 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

      public WeekDay day()
      Get the day property: The day of the week.
      Returns:
      the day value.
    • withDay

      public TimeInWeek withDay(WeekDay day)
      Set the day property: The day of the week.
      Parameters:
      day - the day value to set.
      Returns:
      the TimeInWeek object itself.
    • hourSlots

      public List<Integer> 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

      public TimeInWeek 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. 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TimeInWeek>
      Throws:
      IOException
    • fromJson

      public static TimeInWeek fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.