Class CapturedLogProperties

java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.CapturedLogProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<CapturedLogProperties>

public final class CapturedLogProperties extends Object implements com.azure.json.JsonSerializable<CapturedLogProperties>
Properties of a log file.
  • Constructor Details

    • CapturedLogProperties

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

    • createdTime

      public OffsetDateTime createdTime()
      Get the createdTime property: Creation timestamp of the log file.
      Returns:
      the createdTime value.
    • withCreatedTime

      public CapturedLogProperties withCreatedTime(OffsetDateTime createdTime)
      Set the createdTime property: Creation timestamp of the log file.
      Parameters:
      createdTime - the createdTime value to set.
      Returns:
      the CapturedLogProperties object itself.
    • lastModifiedTime

      public OffsetDateTime lastModifiedTime()
      Get the lastModifiedTime property: Last modified timestamp of the log file.
      Returns:
      the lastModifiedTime value.
    • withLastModifiedTime

      public CapturedLogProperties withLastModifiedTime(OffsetDateTime lastModifiedTime)
      Set the lastModifiedTime property: Last modified timestamp of the log file.
      Parameters:
      lastModifiedTime - the lastModifiedTime value to set.
      Returns:
      the CapturedLogProperties object itself.
    • sizeInKb

      public Long sizeInKb()
      Get the sizeInKb property: Size (in KB) of the log file.
      Returns:
      the sizeInKb value.
    • withSizeInKb

      public CapturedLogProperties withSizeInKb(Long sizeInKb)
      Set the sizeInKb property: Size (in KB) of the log file.
      Parameters:
      sizeInKb - the sizeInKb value to set.
      Returns:
      the CapturedLogProperties object itself.
    • type

      public String type()
      Get the type property: Type of log file. Can be 'ServerLogs' or 'UpgradeLogs'.
      Returns:
      the type value.
    • withType

      public CapturedLogProperties withType(String type)
      Set the type property: Type of log file. Can be 'ServerLogs' or 'UpgradeLogs'.
      Parameters:
      type - the type value to set.
      Returns:
      the CapturedLogProperties object itself.
    • url

      public String url()
      Get the url property: URL to download the log file from.
      Returns:
      the url value.
    • withUrl

      public CapturedLogProperties withUrl(String url)
      Set the url property: URL to download the log file from.
      Parameters:
      url - the url value to set.
      Returns:
      the CapturedLogProperties 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<CapturedLogProperties>
      Throws:
      IOException
    • fromJson

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