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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the createdTime property: Creation timestamp of the log file.static CapturedLogPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of CapturedLogProperties from the JsonReader.Get the lastModifiedTime property: Last modified timestamp of the log file.sizeInKb()Get the sizeInKb property: Size (in KB) of the log file.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Type of log file.url()Get the url property: URL to download the log file from.voidvalidate()Validates the instance.withCreatedTime(OffsetDateTime createdTime) Set the createdTime property: Creation timestamp of the log file.withLastModifiedTime(OffsetDateTime lastModifiedTime) Set the lastModifiedTime property: Last modified timestamp of the log file.withSizeInKb(Long sizeInKb) Set the sizeInKb property: Size (in KB) of the log file.Set the type property: Type of log file.Set the url property: URL to download the log file from.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
CapturedLogProperties
public CapturedLogProperties()Creates an instance of CapturedLogProperties class.
-
-
Method Details
-
createdTime
Get the createdTime property: Creation timestamp of the log file.- Returns:
- the createdTime value.
-
withCreatedTime
Set the createdTime property: Creation timestamp of the log file.- Parameters:
createdTime- the createdTime value to set.- Returns:
- the CapturedLogProperties object itself.
-
lastModifiedTime
Get the lastModifiedTime property: Last modified timestamp of the log file.- Returns:
- the lastModifiedTime value.
-
withLastModifiedTime
Set the lastModifiedTime property: Last modified timestamp of the log file.- Parameters:
lastModifiedTime- the lastModifiedTime value to set.- Returns:
- the CapturedLogProperties object itself.
-
sizeInKb
Get the sizeInKb property: Size (in KB) of the log file.- Returns:
- the sizeInKb value.
-
withSizeInKb
Set the sizeInKb property: Size (in KB) of the log file.- Parameters:
sizeInKb- the sizeInKb value to set.- Returns:
- the CapturedLogProperties object itself.
-
type
Get the type property: Type of log file. Can be 'ServerLogs' or 'UpgradeLogs'.- Returns:
- the type value.
-
withType
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
Get the url property: URL to download the log file from.- Returns:
- the url value.
-
withUrl
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
- Specified by:
toJsonin interfacecom.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.
-