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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the azureQueries property: List of Azure queries in the software update configuration.static TargetProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of TargetProperties from the JsonReader.Get the nonAzureQueries property: List of non Azure queries in the software update configuration.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAzureQueries
(List<AzureQueryProperties> azureQueries) Set the azureQueries property: List of Azure queries in the software update configuration.withNonAzureQueries
(List<NonAzureQueryProperties> nonAzureQueries) Set the nonAzureQueries property: List of non Azure queries in the software update configuration.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
-
TargetProperties
public TargetProperties()Creates an instance of TargetProperties class.
-
-
Method Details
-
azureQueries
Get the azureQueries property: List of Azure queries in the software update configuration.- Returns:
- the azureQueries value.
-
withAzureQueries
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
Get the nonAzureQueries property: List of non Azure queries in the software update configuration.- Returns:
- the nonAzureQueries value.
-
withNonAzureQueries
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<TargetProperties>
- Throws:
IOException
-
fromJson
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.
-