Class UploadLimitWeeklyRecurrence

All Implemented Interfaces:
com.azure.json.JsonSerializable<Recurrence>

public final class UploadLimitWeeklyRecurrence extends WeeklyRecurrence
The weekly recurrence of the WAN-link upload limit schedule. The start time must be earlier in the day than the end time. The recurrence must not span across multiple days.
  • Constructor Details

    • UploadLimitWeeklyRecurrence

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

    • limitInMbps

      public int limitInMbps()
      Get the limitInMbps property: The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second. Value of 0 indicates no throughput is allowed and any running migration job is effectively paused for the duration of this recurrence. Only data plane operations are governed by this limit. Control plane operations ensure seamless functionality. The agent may exceed this limit with control messages, if necessary.
      Returns:
      the limitInMbps value.
    • withLimitInMbps

      public UploadLimitWeeklyRecurrence withLimitInMbps(int limitInMbps)
      Set the limitInMbps property: The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second. Value of 0 indicates no throughput is allowed and any running migration job is effectively paused for the duration of this recurrence. Only data plane operations are governed by this limit. Control plane operations ensure seamless functionality. The agent may exceed this limit with control messages, if necessary.
      Parameters:
      limitInMbps - the limitInMbps value to set.
      Returns:
      the UploadLimitWeeklyRecurrence object itself.
    • withDays

      public UploadLimitWeeklyRecurrence withDays(List<DayOfWeek> days)
      Set the days property: The set of days of week for the schedule recurrence. A day must not be specified more than once in a recurrence.
      Overrides:
      withDays in class WeeklyRecurrence
      Parameters:
      days - the days value to set.
      Returns:
      the WeeklyRecurrence object itself.
    • withStartTime

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

      public UploadLimitWeeklyRecurrence withEndTime(Time endTime)
      Set the endTime property: The end time of the schedule recurrence. Full hour and 30-minute intervals are supported.
      Overrides:
      withEndTime in class WeeklyRecurrence
      Parameters:
      endTime - the endTime value to set.
      Returns:
      the Recurrence object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class WeeklyRecurrence
      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>
      Overrides:
      toJson in class WeeklyRecurrence
      Throws:
      IOException
    • fromJson

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