Class LogSpecification

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

public final class LogSpecification extends Object implements com.azure.json.JsonSerializable<LogSpecification>
Log specification of operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the blobDuration property: Blob duration of specification.
    Get the displayName property: Display name of log specification.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of LogSpecification from the JsonReader.
    Get the name property: Name of log specification.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • name

      public String name()
      Get the name property: Name of log specification.
      Returns:
      the name value.
    • displayName

      public String displayName()
      Get the displayName property: Display name of log specification.
      Returns:
      the displayName value.
    • blobDuration

      public String blobDuration()
      Get the blobDuration property: Blob duration of specification.
      Returns:
      the blobDuration value.
    • 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.