Class LogAnalyticsConfiguration
java.lang.Object
com.azure.resourcemanager.appcontainers.models.LogAnalyticsConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LogAnalyticsConfiguration>
public final class LogAnalyticsConfiguration
extends Object
implements com.azure.json.JsonSerializable<LogAnalyticsConfiguration>
Log Analytics configuration, must only be provided when destination is configured as 'log-analytics'.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LogAnalyticsConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the customerId property: Log analytics customer id.static LogAnalyticsConfigurationfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of LogAnalyticsConfiguration from the JsonReader.Get the sharedKey property: Log analytics customer key.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withCustomerId(String customerId) Set the customerId property: Log analytics customer id.withSharedKey(String sharedKey) Set the sharedKey property: Log analytics customer key.Methods inherited from class java.lang.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
-
LogAnalyticsConfiguration
public LogAnalyticsConfiguration()Creates an instance of LogAnalyticsConfiguration class.
-
-
Method Details
-
customerId
Get the customerId property: Log analytics customer id.- Returns:
- the customerId value.
-
withCustomerId
Set the customerId property: Log analytics customer id.- Parameters:
customerId- the customerId value to set.- Returns:
- the LogAnalyticsConfiguration object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<LogAnalyticsConfiguration>- Throws:
IOException
-
fromJson
public static LogAnalyticsConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of LogAnalyticsConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of LogAnalyticsConfiguration 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 LogAnalyticsConfiguration.
-