Class UploadLimit
java.lang.Object
com.azure.resourcemanager.storagemover.models.UploadLimit
- All Implemented Interfaces:
com.azure.json.JsonSerializable<UploadLimit>
The WAN-link upload limit.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UploadLimitfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of UploadLimit 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.withLimitInMbps(int limitInMbps) Set the limitInMbps property: The WAN-link upload bandwidth (maximum data transfer rate) in megabits per second.Methods 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
-
UploadLimit
public UploadLimit()Creates an instance of UploadLimit 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 UploadLimit object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<UploadLimit>- Throws:
IOException
-
fromJson
Reads an instance of UploadLimit from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of UploadLimit 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 UploadLimit.
-