Class AzureQueryProperties

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

public final class AzureQueryProperties extends Object implements com.azure.json.JsonSerializable<AzureQueryProperties>
Azure query for the update configuration.
  • Constructor Details

    • AzureQueryProperties

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

    • scope

      public List<String> scope()
      Get the scope property: List of Subscription or Resource Group ARM Ids.
      Returns:
      the scope value.
    • withScope

      public AzureQueryProperties withScope(List<String> scope)
      Set the scope property: List of Subscription or Resource Group ARM Ids.
      Parameters:
      scope - the scope value to set.
      Returns:
      the AzureQueryProperties object itself.
    • locations

      public List<String> locations()
      Get the locations property: List of locations to scope the query to.
      Returns:
      the locations value.
    • withLocations

      public AzureQueryProperties withLocations(List<String> locations)
      Set the locations property: List of locations to scope the query to.
      Parameters:
      locations - the locations value to set.
      Returns:
      the AzureQueryProperties object itself.
    • tagSettings

      public TagSettingsProperties tagSettings()
      Get the tagSettings property: Tag settings for the VM.
      Returns:
      the tagSettings value.
    • withTagSettings

      public AzureQueryProperties withTagSettings(TagSettingsProperties tagSettings)
      Set the tagSettings property: Tag settings for the VM.
      Parameters:
      tagSettings - the tagSettings value to set.
      Returns:
      the AzureQueryProperties 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<AzureQueryProperties>
      Throws:
      IOException
    • fromJson

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