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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AzureQueryProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AzureQueryProperties from the JsonReader.Get the locations property: List of locations to scope the query to.scope()
Get the scope property: List of Subscription or Resource Group ARM Ids.Get the tagSettings property: Tag settings for the VM.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withLocations
(List<String> locations) Set the locations property: List of locations to scope the query to.Set the scope property: List of Subscription or Resource Group ARM Ids.withTagSettings
(TagSettingsProperties tagSettings) Set the tagSettings property: Tag settings for the VM.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
-
AzureQueryProperties
public AzureQueryProperties()Creates an instance of AzureQueryProperties class.
-
-
Method Details
-
scope
Get the scope property: List of Subscription or Resource Group ARM Ids.- Returns:
- the scope value.
-
withScope
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
Get the locations property: List of locations to scope the query to.- Returns:
- the locations value.
-
withLocations
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
Get the tagSettings property: Tag settings for the VM.- Returns:
- the tagSettings value.
-
withTagSettings
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
- Specified by:
toJson
in interfacecom.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.
-