Class Schedule

java.lang.Object
com.azure.resourcemanager.hdinsight.containers.models.Schedule
All Implemented Interfaces:
com.azure.json.JsonSerializable<Schedule>

public final class Schedule extends Object implements com.azure.json.JsonSerializable<Schedule>
Schedule definition.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    int
    Get the count property: User has to set the node count anticipated at end of the scaling operation of the set current schedule configuration, format is integer.
    Get the days property: User has to set the days where schedule has to be set for autoscale operation.
    Get the endTime property: User has to set the end time of current schedule configuration, format like 10:30 (HH:MM).
    static Schedule
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Schedule from the JsonReader.
    Get the startTime property: User has to set the start time of current schedule configuration, format like 10:30 (HH:MM).
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withCount(int count)
    Set the count property: User has to set the node count anticipated at end of the scaling operation of the set current schedule configuration, format is integer.
    Set the days property: User has to set the days where schedule has to be set for autoscale operation.
    Set the endTime property: User has to set the end time of current schedule configuration, format like 10:30 (HH:MM).
    withStartTime(String startTime)
    Set the startTime property: User has to set the start time of current schedule configuration, format like 10:30 (HH:MM).

    Methods inherited from class 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

    • Schedule

      public Schedule()
      Creates an instance of Schedule class.
  • Method Details

    • startTime

      public String startTime()
      Get the startTime property: User has to set the start time of current schedule configuration, format like 10:30 (HH:MM).
      Returns:
      the startTime value.
    • withStartTime

      public Schedule withStartTime(String startTime)
      Set the startTime property: User has to set the start time of current schedule configuration, format like 10:30 (HH:MM).
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the Schedule object itself.
    • endTime

      public String endTime()
      Get the endTime property: User has to set the end time of current schedule configuration, format like 10:30 (HH:MM).
      Returns:
      the endTime value.
    • withEndTime

      public Schedule withEndTime(String endTime)
      Set the endTime property: User has to set the end time of current schedule configuration, format like 10:30 (HH:MM).
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the Schedule object itself.
    • count

      public int count()
      Get the count property: User has to set the node count anticipated at end of the scaling operation of the set current schedule configuration, format is integer.
      Returns:
      the count value.
    • withCount

      public Schedule withCount(int count)
      Set the count property: User has to set the node count anticipated at end of the scaling operation of the set current schedule configuration, format is integer.
      Parameters:
      count - the count value to set.
      Returns:
      the Schedule object itself.
    • days

      public List<ScheduleDay> days()
      Get the days property: User has to set the days where schedule has to be set for autoscale operation.
      Returns:
      the days value.
    • withDays

      public Schedule withDays(List<ScheduleDay> days)
      Set the days property: User has to set the days where schedule has to be set for autoscale operation.
      Parameters:
      days - the days value to set.
      Returns:
      the Schedule 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<Schedule>
      Throws:
      IOException
    • fromJson

      public static Schedule fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Schedule from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Schedule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the Schedule.