Class TargetProperties

java.lang.Object
com.azure.resourcemanager.automation.models.TargetProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<TargetProperties>

public final class TargetProperties extends Object implements com.azure.json.JsonSerializable<TargetProperties>
Group specific to the update configuration.
  • Constructor Details

    • TargetProperties

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

    • azureQueries

      public List<AzureQueryProperties> azureQueries()
      Get the azureQueries property: List of Azure queries in the software update configuration.
      Returns:
      the azureQueries value.
    • withAzureQueries

      public TargetProperties withAzureQueries(List<AzureQueryProperties> azureQueries)
      Set the azureQueries property: List of Azure queries in the software update configuration.
      Parameters:
      azureQueries - the azureQueries value to set.
      Returns:
      the TargetProperties object itself.
    • nonAzureQueries

      public List<NonAzureQueryProperties> nonAzureQueries()
      Get the nonAzureQueries property: List of non Azure queries in the software update configuration.
      Returns:
      the nonAzureQueries value.
    • withNonAzureQueries

      public TargetProperties withNonAzureQueries(List<NonAzureQueryProperties> nonAzureQueries)
      Set the nonAzureQueries property: List of non Azure queries in the software update configuration.
      Parameters:
      nonAzureQueries - the nonAzureQueries value to set.
      Returns:
      the TargetProperties 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<TargetProperties>
      Throws:
      IOException
    • fromJson

      public static TargetProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TargetProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TargetProperties 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 TargetProperties.