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 Details

    • BackupAutomaticAndOnDemandProperties

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

    • backupType

      public BackupType backupType()
      Get the backupType property: Type of backup.
      Returns:
      the backupType value.
    • withBackupType

      public BackupAutomaticAndOnDemandProperties withBackupType(BackupType backupType)
      Set the backupType property: Type of backup.
      Parameters:
      backupType - the backupType value to set.
      Returns:
      the BackupAutomaticAndOnDemandProperties object itself.
    • completedTime

      public OffsetDateTime completedTime()
      Get the completedTime property: Time(ISO8601 format) at which the backup was completed.
      Returns:
      the completedTime value.
    • withCompletedTime

      public BackupAutomaticAndOnDemandProperties withCompletedTime(OffsetDateTime completedTime)
      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

      public String source()
      Get the source property: Source of the backup.
      Returns:
      the source value.
    • withSource

      public BackupAutomaticAndOnDemandProperties withSource(String source)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.