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 Details

    • TaskProperties

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

    • parameters

      public Map<String,String> parameters()
      Get the parameters property: Gets or sets the parameters of the task.
      Returns:
      the parameters value.
    • withParameters

      public TaskProperties withParameters(Map<String,String> parameters)
      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

      public String source()
      Get the source property: Gets or sets the name of the runbook.
      Returns:
      the source value.
    • withSource

      public TaskProperties withSource(String source)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TaskProperties>
      Throws:
      IOException
    • fromJson

      public static TaskProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.