Class UploadLimitWeeklyRecurrence
java.lang.Object
com.azure.resourcemanager.storagemover.models.Recurrence
com.azure.resourcemanager.storagemover.models.WeeklyRecurrence
com.azure.resourcemanager.storagemover.models.UploadLimitWeeklyRecurrence
- All Implemented Interfaces:
com.azure.json.JsonSerializable<Recurrence>
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 Summary
ConstructorsConstructorDescriptionCreates an instance of UploadLimitWeeklyRecurrence class. -
Method Summary
Modifier and TypeMethodDescriptionstatic UploadLimitWeeklyRecurrencefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UploadLimitWeeklyRecurrence from the JsonReader.intGet the limitInMbps property: The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Set the days property: The set of days of week for the schedule recurrence.withEndTime(Time endTime) Set the endTime property: The end time of the schedule recurrence.withLimitInMbps(int limitInMbps) Set the limitInMbps property: The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second.withStartTime(Time startTime) Set the startTime property: The start time of the schedule recurrence.Methods inherited from class com.azure.resourcemanager.storagemover.models.WeeklyRecurrence
daysMethods inherited from class com.azure.resourcemanager.storagemover.models.Recurrence
endTime, startTimeMethods 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
-
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
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
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:
withDaysin classWeeklyRecurrence- Parameters:
days- the days value to set.- Returns:
- the WeeklyRecurrence object itself.
-
withStartTime
Set the startTime property: The start time of the schedule recurrence. Full hour and 30-minute intervals are supported.- Overrides:
withStartTimein classWeeklyRecurrence- Parameters:
startTime- the startTime value to set.- Returns:
- the Recurrence object itself.
-
withEndTime
Set the endTime property: The end time of the schedule recurrence. Full hour and 30-minute intervals are supported.- Overrides:
withEndTimein classWeeklyRecurrence- Parameters:
endTime- the endTime value to set.- Returns:
- the Recurrence object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classWeeklyRecurrence- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<Recurrence>- Overrides:
toJsonin classWeeklyRecurrence- 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.
-