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 Summary
ConstructorsConstructorDescriptionCreates an instance of JobDefinitionUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the agentName property: Name of the Agent to assign for new Job Runs of this Job Definition.copyMode()Get the copyMode property: Strategy to use for copy.Get the description property: A description for the Job Definition.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of JobDefinitionUpdateParameters from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAgentName(String agentName) Set the agentName property: Name of the Agent to assign for new Job Runs of this Job Definition.withCopyMode(CopyMode copyMode) Set the copyMode property: Strategy to use for copy.withDescription(String description) Set the description property: A description for the Job Definition.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
-
JobDefinitionUpdateParameters
public JobDefinitionUpdateParameters()Creates an instance of JobDefinitionUpdateParameters class.
-
-
Method Details
-
description
Get the description property: A description for the Job Definition.- Returns:
- the description value.
-
withDescription
Set the description property: A description for the Job Definition.- Parameters:
description- the description value to set.- Returns:
- the JobDefinitionUpdateParameters object itself.
-
copyMode
Get the copyMode property: Strategy to use for copy.- Returns:
- the copyMode value.
-
withCopyMode
Set the copyMode property: Strategy to use for copy.- Parameters:
copyMode- the copyMode value to set.- Returns:
- the JobDefinitionUpdateParameters object itself.
-
agentName
Get the agentName property: Name of the Agent to assign for new Job Runs of this Job Definition.- Returns:
- the agentName value.
-
withAgentName
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
- Specified by:
toJsonin interfacecom.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.
-