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 Details

    • AppLogsConfiguration

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

    • destination

      public String destination()
      Get the destination property: The destination property.
      Returns:
      the destination value.
    • withDestination

      public AppLogsConfiguration withDestination(String destination)
      Set the destination property: The destination property.
      Parameters:
      destination - the destination value to set.
      Returns:
      the AppLogsConfiguration object itself.
    • logAnalyticsConfiguration

      public LogAnalyticsConfiguration 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

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