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 Details

    • AgentUpdateParameters

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

    • description

      public String description()
      Get the description property: A description for the Agent.
      Returns:
      the description value.
    • withDescription

      public AgentUpdateParameters withDescription(String description)
      Set the description property: A description for the Agent.
      Parameters:
      description - the description value to set.
      Returns:
      the AgentUpdateParameters object itself.
    • uploadLimitSchedule

      public UploadLimitSchedule 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

      public AgentUpdateParameters withUploadLimitSchedule(UploadLimitSchedule uploadLimitSchedule)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.