Class JobDefinitionUpdateParameters

java.lang.Object
com.azure.resourcemanager.storagemover.models.JobDefinitionUpdateParameters
All Implemented Interfaces:
com.azure.json.JsonSerializable<JobDefinitionUpdateParameters>

public final class JobDefinitionUpdateParameters extends Object implements com.azure.json.JsonSerializable<JobDefinitionUpdateParameters>
The Job Definition resource.
  • Constructor Details

    • JobDefinitionUpdateParameters

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

    • description

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

      public JobDefinitionUpdateParameters withDescription(String description)
      Set the description property: A description for the Job Definition.
      Parameters:
      description - the description value to set.
      Returns:
      the JobDefinitionUpdateParameters object itself.
    • copyMode

      public CopyMode copyMode()
      Get the copyMode property: Strategy to use for copy.
      Returns:
      the copyMode value.
    • withCopyMode

      public JobDefinitionUpdateParameters withCopyMode(CopyMode copyMode)
      Set the copyMode property: Strategy to use for copy.
      Parameters:
      copyMode - the copyMode value to set.
      Returns:
      the JobDefinitionUpdateParameters object itself.
    • agentName

      public String agentName()
      Get the agentName property: Name of the Agent to assign for new Job Runs of this Job Definition.
      Returns:
      the agentName value.
    • withAgentName

      public JobDefinitionUpdateParameters withAgentName(String agentName)
      Set the agentName property: Name of the Agent to assign for new Job Runs of this Job Definition.
      Parameters:
      agentName - the agentName value to set.
      Returns:
      the JobDefinitionUpdateParameters 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<JobDefinitionUpdateParameters>
      Throws:
      IOException
    • fromJson

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