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 Details

    • NonAzureQueryProperties

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

    • functionAlias

      public String functionAlias()
      Get the functionAlias property: Log Analytics Saved Search name.
      Returns:
      the functionAlias value.
    • withFunctionAlias

      public NonAzureQueryProperties withFunctionAlias(String functionAlias)
      Set the functionAlias property: Log Analytics Saved Search name.
      Parameters:
      functionAlias - the functionAlias value to set.
      Returns:
      the NonAzureQueryProperties object itself.
    • workspaceId

      public String workspaceId()
      Get the workspaceId property: Workspace Id for Log Analytics in which the saved Search is resided.
      Returns:
      the workspaceId value.
    • withWorkspaceId

      public NonAzureQueryProperties withWorkspaceId(String workspaceId)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.