Class BackupAutomaticAndOnDemandProperties
java.lang.Object
com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.BackupAutomaticAndOnDemandProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<BackupAutomaticAndOnDemandProperties>
public final class BackupAutomaticAndOnDemandProperties
extends Object
implements com.azure.json.JsonSerializable<BackupAutomaticAndOnDemandProperties>
Properties of a backup.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of BackupAutomaticAndOnDemandProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the backupType property: Type of backup.Get the completedTime property: Time(ISO8601 format) at which the backup was completed.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of BackupAutomaticAndOnDemandProperties from the JsonReader.source()Get the source property: Source of the backup.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withBackupType(BackupType backupType) Set the backupType property: Type of backup.withCompletedTime(OffsetDateTime completedTime) Set the completedTime property: Time(ISO8601 format) at which the backup was completed.withSource(String source) Set the source property: Source of the backup.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
-
BackupAutomaticAndOnDemandProperties
public BackupAutomaticAndOnDemandProperties()Creates an instance of BackupAutomaticAndOnDemandProperties class.
-
-
Method Details
-
backupType
Get the backupType property: Type of backup.- Returns:
- the backupType value.
-
withBackupType
Set the backupType property: Type of backup.- Parameters:
backupType- the backupType value to set.- Returns:
- the BackupAutomaticAndOnDemandProperties object itself.
-
completedTime
Get the completedTime property: Time(ISO8601 format) at which the backup was completed.- Returns:
- the completedTime value.
-
withCompletedTime
Set the completedTime property: Time(ISO8601 format) at which the backup was completed.- Parameters:
completedTime- the completedTime value to set.- Returns:
- the BackupAutomaticAndOnDemandProperties object itself.
-
source
-
withSource
Set the source property: Source of the backup.- Parameters:
source- the source value to set.- Returns:
- the BackupAutomaticAndOnDemandProperties 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<BackupAutomaticAndOnDemandProperties>- Throws:
IOException
-
fromJson
public static BackupAutomaticAndOnDemandProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of BackupAutomaticAndOnDemandProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of BackupAutomaticAndOnDemandProperties 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 BackupAutomaticAndOnDemandProperties.
-