Class LogAnalyticsQueryPackQueryInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.loganalytics.fluent.models.LogAnalyticsQueryPackQueryInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class LogAnalyticsQueryPackQueryInner
extends com.azure.core.management.ProxyResource
A Log Analytics QueryPack-Query definition.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LogAnalyticsQueryPackQueryInner class. -
Method Summary
Modifier and TypeMethodDescriptionauthor()Get the author property: Object Id of user creating the query.body()Get the body property: Body of the query.Get the description property: Description of the query.Get the displayName property: Unique display name for your query within the Query Pack.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LogAnalyticsQueryPackQueryInner from the JsonReader.id()Get the id property: Fully qualified resource Id for the resource.Get the id property: The unique ID of your application.name()Get the name property: The name of the resource.Get the properties property: Additional properties that can be set for the query.related()Get the related property: The related metadata items for the function.com.azure.core.management.SystemDataGet the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.tags()Get the tags property: Tags associated with the query.Get the timeCreated property: Creation Date for the Log Analytics Query, in ISO 8601 format.Get the timeModified property: Last modified date of the Log Analytics Query, in ISO 8601 format.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.Set the body property: Body of the query.withDescription(String description) Set the description property: Description of the query.withDisplayName(String displayName) Set the displayName property: Unique display name for your query within the Query Pack.withProperties(Object properties) Set the properties property: Additional properties that can be set for the query.Set the related property: The related metadata items for the function.Set the tags property: Tags associated with the query.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
LogAnalyticsQueryPackQueryInner
public LogAnalyticsQueryPackQueryInner()Creates an instance of LogAnalyticsQueryPackQueryInner class.
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
idPropertiesId
Get the id property: The unique ID of your application. This field cannot be changed.- Returns:
- the id value.
-
displayName
Get the displayName property: Unique display name for your query within the Query Pack.- Returns:
- the displayName value.
-
withDisplayName
Set the displayName property: Unique display name for your query within the Query Pack.- Parameters:
displayName- the displayName value to set.- Returns:
- the LogAnalyticsQueryPackQueryInner object itself.
-
timeCreated
Get the timeCreated property: Creation Date for the Log Analytics Query, in ISO 8601 format.- Returns:
- the timeCreated value.
-
timeModified
Get the timeModified property: Last modified date of the Log Analytics Query, in ISO 8601 format.- Returns:
- the timeModified value.
-
author
Get the author property: Object Id of user creating the query.- Returns:
- the author value.
-
description
Get the description property: Description of the query.- Returns:
- the description value.
-
withDescription
Set the description property: Description of the query.- Parameters:
description- the description value to set.- Returns:
- the LogAnalyticsQueryPackQueryInner object itself.
-
body
-
withBody
Set the body property: Body of the query.- Parameters:
body- the body value to set.- Returns:
- the LogAnalyticsQueryPackQueryInner object itself.
-
withRelated
public LogAnalyticsQueryPackQueryInner withRelated(LogAnalyticsQueryPackQueryPropertiesRelated related) Set the related property: The related metadata items for the function.- Parameters:
related- the related value to set.- Returns:
- the LogAnalyticsQueryPackQueryInner object itself.
-
tags
-
withTags
Set the tags property: Tags associated with the query.- Parameters:
tags- the tags value to set.- Returns:
- the LogAnalyticsQueryPackQueryInner object itself.
-
properties
Get the properties property: Additional properties that can be set for the query.- Returns:
- the properties value.
-
withProperties
Set the properties property: Additional properties that can be set for the query.- Parameters:
properties- the properties value to set.- Returns:
- the LogAnalyticsQueryPackQueryInner object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.ProxyResource- Throws:
IOException
-
fromJson
public static LogAnalyticsQueryPackQueryInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LogAnalyticsQueryPackQueryInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LogAnalyticsQueryPackQueryInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the LogAnalyticsQueryPackQueryInner.
-