Class AgentUpdateParameters
java.lang.Object
com.azure.resourcemanager.storagemover.models.AgentUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AgentUpdateParameters>
public final class AgentUpdateParameters
extends Object
implements com.azure.json.JsonSerializable<AgentUpdateParameters>
The Agent resource.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the description property: A description for the Agent.static AgentUpdateParametersfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of AgentUpdateParameters from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the uploadLimitSchedule property: The WAN-link upload limit schedule that applies to any Job Run the agent executes.voidvalidate()Validates the instance.withDescription(String description) Set the description property: A description for the Agent.withUploadLimitSchedule(UploadLimitSchedule uploadLimitSchedule) Set the uploadLimitSchedule property: The WAN-link upload limit schedule that applies to any Job Run the agent executes.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
-
AgentUpdateParameters
public AgentUpdateParameters()Creates an instance of AgentUpdateParameters class.
-
-
Method Details
-
description
Get the description property: A description for the Agent.- Returns:
- the description value.
-
withDescription
Set the description property: A description for the Agent.- Parameters:
description- the description value to set.- Returns:
- the AgentUpdateParameters object itself.
-
uploadLimitSchedule
Get the uploadLimitSchedule property: The WAN-link upload limit schedule that applies to any Job Run the agent executes. Data plane operations (migrating files) are affected. Control plane operations ensure seamless migration functionality and are not limited by this schedule. The schedule is interpreted with the agent's local time.- Returns:
- the uploadLimitSchedule value.
-
withUploadLimitSchedule
Set the uploadLimitSchedule property: The WAN-link upload limit schedule that applies to any Job Run the agent executes. Data plane operations (migrating files) are affected. Control plane operations ensure seamless migration functionality and are not limited by this schedule. The schedule is interpreted with the agent's local time.- Parameters:
uploadLimitSchedule- the uploadLimitSchedule value to set.- Returns:
- the AgentUpdateParameters 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<AgentUpdateParameters>- Throws:
IOException
-
fromJson
public static AgentUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AgentUpdateParameters from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of AgentUpdateParameters if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the AgentUpdateParameters.
-