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