Class LogSpecification

java.lang.Object
com.azure.resourcemanager.appservice.models.LogSpecification
All Implemented Interfaces:
com.azure.json.JsonSerializable<LogSpecification>

public final class LogSpecification extends Object implements com.azure.json.JsonSerializable<LogSpecification>
Log Definition of a single resource metric.
  • Constructor Details

    • LogSpecification

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

    • name

      public String name()
      Get the name property: The name property.
      Returns:
      the name value.
    • withName

      public LogSpecification withName(String name)
      Set the name property: The name property.
      Parameters:
      name - the name value to set.
      Returns:
      the LogSpecification object itself.
    • displayName

      public String displayName()
      Get the displayName property: The displayName property.
      Returns:
      the displayName value.
    • withDisplayName

      public LogSpecification withDisplayName(String displayName)
      Set the displayName property: The displayName property.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the LogSpecification object itself.
    • blobDuration

      public String blobDuration()
      Get the blobDuration property: The blobDuration property.
      Returns:
      the blobDuration value.
    • withBlobDuration

      public LogSpecification withBlobDuration(String blobDuration)
      Set the blobDuration property: The blobDuration property.
      Parameters:
      blobDuration - the blobDuration value to set.
      Returns:
      the LogSpecification object itself.
    • logFilterPattern

      public String logFilterPattern()
      Get the logFilterPattern property: The logFilterPattern property.
      Returns:
      the logFilterPattern value.
    • withLogFilterPattern

      public LogSpecification withLogFilterPattern(String logFilterPattern)
      Set the logFilterPattern property: The logFilterPattern property.
      Parameters:
      logFilterPattern - the logFilterPattern value to set.
      Returns:
      the LogSpecification 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<LogSpecification>
      Throws:
      IOException
    • fromJson

      public static LogSpecification fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of LogSpecification from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of LogSpecification 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 LogSpecification.