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 Details

    • SoftwareUpdateConfigurationRunTaskProperties

      public SoftwareUpdateConfigurationRunTaskProperties()
      Creates an instance of SoftwareUpdateConfigurationRunTaskProperties class.
  • Method Details

    • status

      public String 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

      public String 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

      public String 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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.