Class LogSpecification

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

public final class LogSpecification extends Object implements com.azure.json.JsonSerializable<LogSpecification>
Description of logging specification.
  • Constructor Details

    • LogSpecification

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

    • name

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

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

      public String displayName()
      Get the displayName property: The display name of the specification.
      Returns:
      the displayName value.
    • withDisplayName

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

      public String blobDuration()
      Get the blobDuration property: Duration of the blob.
      Returns:
      the blobDuration value.
    • withBlobDuration

      public LogSpecification withBlobDuration(String blobDuration)
      Set the blobDuration property: Duration of the blob.
      Parameters:
      blobDuration - the blobDuration 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.