Class LogAnalyticsConfiguration
java.lang.Object
com.azure.resourcemanager.appservice.models.LogAnalyticsConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<LogAnalyticsConfiguration>
public final class LogAnalyticsConfiguration
extends Object
implements com.azure.json.JsonSerializable<LogAnalyticsConfiguration>
The LogAnalyticsConfiguration model.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of LogAnalyticsConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionGet the customerId property: The customerId property.static LogAnalyticsConfiguration
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of LogAnalyticsConfiguration from the JsonReader.Get the sharedKey property: The sharedKey property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCustomerId
(String customerId) Set the customerId property: The customerId property.withSharedKey
(String sharedKey) Set the sharedKey property: The sharedKey property.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
-
LogAnalyticsConfiguration
public LogAnalyticsConfiguration()Creates an instance of LogAnalyticsConfiguration class.
-
-
Method Details
-
customerId
Get the customerId property: The customerId property.- Returns:
- the customerId value.
-
withCustomerId
Set the customerId property: The customerId property.- 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:
toJson
in 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.
-