Class AppLogsConfiguration
java.lang.Object
com.azure.resourcemanager.appservice.models.AppLogsConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AppLogsConfiguration>
public final class AppLogsConfiguration
extends Object
implements com.azure.json.JsonSerializable<AppLogsConfiguration>
The AppLogsConfiguration model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the destination property: The destination property.static AppLogsConfiguration
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of AppLogsConfiguration from the JsonReader.Get the logAnalyticsConfiguration property: The logAnalyticsConfiguration property.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDestination
(String destination) Set the destination property: The destination property.withLogAnalyticsConfiguration
(LogAnalyticsConfiguration logAnalyticsConfiguration) Set the logAnalyticsConfiguration property: The logAnalyticsConfiguration 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
-
AppLogsConfiguration
public AppLogsConfiguration()Creates an instance of AppLogsConfiguration class.
-
-
Method Details
-
destination
Get the destination property: The destination property.- Returns:
- the destination value.
-
withDestination
Set the destination property: The destination property.- Parameters:
destination
- the destination value to set.- Returns:
- the AppLogsConfiguration object itself.
-
logAnalyticsConfiguration
Get the logAnalyticsConfiguration property: The logAnalyticsConfiguration property.- Returns:
- the logAnalyticsConfiguration value.
-
withLogAnalyticsConfiguration
public AppLogsConfiguration withLogAnalyticsConfiguration(LogAnalyticsConfiguration logAnalyticsConfiguration) Set the logAnalyticsConfiguration property: The logAnalyticsConfiguration property.- Parameters:
logAnalyticsConfiguration
- the logAnalyticsConfiguration value to set.- Returns:
- the AppLogsConfiguration 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<AppLogsConfiguration>
- Throws:
IOException
-
fromJson
public static AppLogsConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of AppLogsConfiguration from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of AppLogsConfiguration 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 AppLogsConfiguration.
-