Class JobCreateProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.JobCreateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JobCreateProperties>
public final class JobCreateProperties
extends Object
implements com.azure.json.JsonSerializable<JobCreateProperties>
The JobCreateProperties model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic JobCreateProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of JobCreateProperties from the JsonReader.Get the parameters property: Gets or sets the parameters of the job.runbook()
Get the runbook property: Gets or sets the runbook.runOn()
Get the runOn property: Gets or sets the runOn which specifies the group name where the job is to be executed.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withParameters
(Map<String, String> parameters) Set the parameters property: Gets or sets the parameters of the job.withRunbook
(RunbookAssociationProperty runbook) Set the runbook property: Gets or sets the runbook.Set the runOn property: Gets or sets the runOn which specifies the group name where the job is to be executed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
JobCreateProperties
public JobCreateProperties()Creates an instance of JobCreateProperties class.
-
-
Method Details
-
runbook
Get the runbook property: Gets or sets the runbook.- Returns:
- the runbook value.
-
withRunbook
Set the runbook property: Gets or sets the runbook.- Parameters:
runbook
- the runbook value to set.- Returns:
- the JobCreateProperties object itself.
-
parameters
Get the parameters property: Gets or sets the parameters of the job.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Gets or sets the parameters of the job.- Parameters:
parameters
- the parameters value to set.- Returns:
- the JobCreateProperties object itself.
-
runOn
Get the runOn property: Gets or sets the runOn which specifies the group name where the job is to be executed.- Returns:
- the runOn value.
-
withRunOn
Set the runOn property: Gets or sets the runOn which specifies the group name where the job is to be executed.- Parameters:
runOn
- the runOn value to set.- Returns:
- the JobCreateProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<JobCreateProperties>
- Throws:
IOException
-
fromJson
Reads an instance of JobCreateProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of JobCreateProperties 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 JobCreateProperties.
-