Class NonAzureQueryProperties
java.lang.Object
com.azure.resourcemanager.automation.models.NonAzureQueryProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NonAzureQueryProperties>
public final class NonAzureQueryProperties
extends Object
implements com.azure.json.JsonSerializable<NonAzureQueryProperties>
Non Azure query for the update configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of NonAzureQueryProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic NonAzureQueryProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of NonAzureQueryProperties from the JsonReader.Get the functionAlias property: Log Analytics Saved Search name.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withFunctionAlias
(String functionAlias) Set the functionAlias property: Log Analytics Saved Search name.withWorkspaceId
(String workspaceId) Set the workspaceId property: Workspace Id for Log Analytics in which the saved Search is resided.Get the workspaceId property: Workspace Id for Log Analytics in which the saved Search is resided.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
-
NonAzureQueryProperties
public NonAzureQueryProperties()Creates an instance of NonAzureQueryProperties class.
-
-
Method Details
-
functionAlias
Get the functionAlias property: Log Analytics Saved Search name.- Returns:
- the functionAlias value.
-
withFunctionAlias
Set the functionAlias property: Log Analytics Saved Search name.- Parameters:
functionAlias
- the functionAlias value to set.- Returns:
- the NonAzureQueryProperties object itself.
-
workspaceId
Get the workspaceId property: Workspace Id for Log Analytics in which the saved Search is resided.- Returns:
- the workspaceId value.
-
withWorkspaceId
Set the workspaceId property: Workspace Id for Log Analytics in which the saved Search is resided.- Parameters:
workspaceId
- the workspaceId value to set.- Returns:
- the NonAzureQueryProperties 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<NonAzureQueryProperties>
- Throws:
IOException
-
fromJson
public static NonAzureQueryProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of NonAzureQueryProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of NonAzureQueryProperties 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 NonAzureQueryProperties.
-