Class SoftwareUpdateConfigurationTasks
java.lang.Object
com.azure.resourcemanager.automation.models.SoftwareUpdateConfigurationTasks
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SoftwareUpdateConfigurationTasks>
public final class SoftwareUpdateConfigurationTasks
extends Object
implements com.azure.json.JsonSerializable<SoftwareUpdateConfigurationTasks>
Task properties of the software update configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SoftwareUpdateConfigurationTasks class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SoftwareUpdateConfigurationTasks from the JsonReader.postTask()
Get the postTask property: Post task properties.preTask()
Get the preTask property: Pre task properties.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withPostTask
(TaskProperties postTask) Set the postTask property: Post task properties.withPreTask
(TaskProperties preTask) Set the preTask property: Pre task properties.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
-
SoftwareUpdateConfigurationTasks
public SoftwareUpdateConfigurationTasks()Creates an instance of SoftwareUpdateConfigurationTasks class.
-
-
Method Details
-
preTask
Get the preTask property: Pre task properties.- Returns:
- the preTask value.
-
withPreTask
Set the preTask property: Pre task properties.- Parameters:
preTask
- the preTask value to set.- Returns:
- the SoftwareUpdateConfigurationTasks object itself.
-
postTask
Get the postTask property: Post task properties.- Returns:
- the postTask value.
-
withPostTask
Set the postTask property: Post task properties.- Parameters:
postTask
- the postTask value to set.- Returns:
- the SoftwareUpdateConfigurationTasks 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<SoftwareUpdateConfigurationTasks>
- Throws:
IOException
-
fromJson
public static SoftwareUpdateConfigurationTasks fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SoftwareUpdateConfigurationTasks from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SoftwareUpdateConfigurationTasks 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 SoftwareUpdateConfigurationTasks.
-