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 Details

    • LogAnalyticsConfiguration

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

    • customerId

      public String customerId()
      Get the customerId property: The customerId property.
      Returns:
      the customerId value.
    • withCustomerId

      public LogAnalyticsConfiguration withCustomerId(String customerId)
      Set the customerId property: The customerId property.
      Parameters:
      customerId - the customerId value to set.
      Returns:
      the LogAnalyticsConfiguration object itself.
    • sharedKey

      public String sharedKey()
      Get the sharedKey property: The sharedKey property.
      Returns:
      the sharedKey value.
    • withSharedKey

      public LogAnalyticsConfiguration withSharedKey(String sharedKey)
      Set the sharedKey property: The sharedKey property.
      Parameters:
      sharedKey - the sharedKey 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

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