java.lang.Object
com.azure.resourcemanager.storagemover.models.Recurrence
All Implemented Interfaces:
com.azure.json.JsonSerializable<Recurrence>
Direct Known Subclasses:
WeeklyRecurrence

public class Recurrence extends Object implements com.azure.json.JsonSerializable<Recurrence>
The schedule recurrence.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get the endTime property: The end time of the schedule recurrence.
    static Recurrence
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Recurrence from the JsonReader.
    Get the startTime property: The start time of the schedule recurrence.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    withEndTime(Time endTime)
    Set the endTime property: The end time of the schedule recurrence.
    withStartTime(Time startTime)
    Set the startTime property: The start time of the schedule recurrence.

    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

    • Recurrence

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

    • startTime

      public Time startTime()
      Get the startTime property: The start time of the schedule recurrence. Full hour and 30-minute intervals are supported.
      Returns:
      the startTime value.
    • withStartTime

      public Recurrence withStartTime(Time startTime)
      Set the startTime property: The start time of the schedule recurrence. Full hour and 30-minute intervals are supported.
      Parameters:
      startTime - the startTime value to set.
      Returns:
      the Recurrence object itself.
    • endTime

      public Time endTime()
      Get the endTime property: The end time of the schedule recurrence. Full hour and 30-minute intervals are supported.
      Returns:
      the endTime value.
    • withEndTime

      public Recurrence withEndTime(Time endTime)
      Set the endTime property: The end time of the schedule recurrence. Full hour and 30-minute intervals are supported.
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the Recurrence 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<Recurrence>
      Throws:
      IOException
    • fromJson

      public static Recurrence fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of Recurrence from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of Recurrence 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 Recurrence.