Class TaskProperties
java.lang.Object
com.azure.resourcemanager.automation.models.TaskProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TaskProperties>
public final class TaskProperties
extends Object
implements com.azure.json.JsonSerializable<TaskProperties>
Task properties of the software update configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TaskProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of TaskProperties from the JsonReader.Get the parameters property: Gets or sets the parameters of the task.source()
Get the source property: Gets or sets the name of the runbook.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 task.withSource
(String source) Set the source property: Gets or sets the name of the runbook.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
-
TaskProperties
public TaskProperties()Creates an instance of TaskProperties class.
-
-
Method Details
-
parameters
Get the parameters property: Gets or sets the parameters of the task.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Gets or sets the parameters of the task.- Parameters:
parameters
- the parameters value to set.- Returns:
- the TaskProperties object itself.
-
source
Get the source property: Gets or sets the name of the runbook.- Returns:
- the source value.
-
withSource
Set the source property: Gets or sets the name of the runbook.- Parameters:
source
- the source value to set.- Returns:
- the TaskProperties 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<TaskProperties>
- Throws:
IOException
-
fromJson
Reads an instance of TaskProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of TaskProperties 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 TaskProperties.
-