Class BackupSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • compartmentId

        public BackupSummary.Builder compartmentId​(String compartmentId)
        The OCID of the compartment.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • databaseId

        public BackupSummary.Builder databaseId​(String databaseId)
        The OCID of the database.
        Parameters:
        databaseId - the value to set
        Returns:
        this builder
      • displayName

        public BackupSummary.Builder displayName​(String displayName)
        The user-friendly name for the backup.

        The name does not have to be unique.

        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • timeStarted

        public BackupSummary.Builder timeStarted​(Date timeStarted)
        The date and time the backup started.
        Parameters:
        timeStarted - the value to set
        Returns:
        this builder
      • timeEnded

        public BackupSummary.Builder timeEnded​(Date timeEnded)
        The date and time the backup was completed.
        Parameters:
        timeEnded - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public BackupSummary.Builder lifecycleDetails​(String lifecycleDetails)
        Additional information about the current lifecycle state.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • availabilityDomain

        public BackupSummary.Builder availabilityDomain​(String availabilityDomain)
        The name of the availability domain where the database backup is stored.
        Parameters:
        availabilityDomain - the value to set
        Returns:
        this builder
      • databaseEdition

        public BackupSummary.Builder databaseEdition​(BackupSummary.DatabaseEdition databaseEdition)
        The Oracle Database edition of the DB system from which the database backup was taken.
        Parameters:
        databaseEdition - the value to set
        Returns:
        this builder
      • databaseSizeInGBs

        public BackupSummary.Builder databaseSizeInGBs​(Double databaseSizeInGBs)
        The size of the database in gigabytes at the time the backup was taken.
        Parameters:
        databaseSizeInGBs - the value to set
        Returns:
        this builder
      • shape

        public BackupSummary.Builder shape​(String shape)
        Shape of the backup’s source database.
        Parameters:
        shape - the value to set
        Returns:
        this builder
      • version

        public BackupSummary.Builder version​(String version)
        Version of the backup’s source database
        Parameters:
        version - the value to set
        Returns:
        this builder
      • kmsKeyId

        public BackupSummary.Builder kmsKeyId​(String kmsKeyId)
        The OCID of the key container that is used as the master encryption key in database transparent data encryption (TDE) operations.
        Parameters:
        kmsKeyId - the value to set
        Returns:
        this builder
      • kmsKeyVersionId

        public BackupSummary.Builder kmsKeyVersionId​(String kmsKeyVersionId)
        The OCID of the key container version that is used in database transparent data encryption (TDE) operations KMS Key can have multiple key versions.

        If none is specified, the current key version (latest) of the Key Id is used for the operation. Autonomous Database Serverless does not use key versions, hence is not applicable for Autonomous Database Serverless instances.

        Parameters:
        kmsKeyVersionId - the value to set
        Returns:
        this builder
      • vaultId

        public BackupSummary.Builder vaultId​(String vaultId)
        The OCID of the Oracle Cloud Infrastructure vault.

        This parameter and secretId are required for Customer Managed Keys.

        Parameters:
        vaultId - the value to set
        Returns:
        this builder
      • keyStoreId

        public BackupSummary.Builder keyStoreId​(String keyStoreId)
        The OCID of the key store of Oracle Vault.
        Parameters:
        keyStoreId - the value to set
        Returns:
        this builder
      • keyStoreWalletName

        public BackupSummary.Builder keyStoreWalletName​(String keyStoreWalletName)
        The wallet name for Oracle Key Vault.
        Parameters:
        keyStoreWalletName - the value to set
        Returns:
        this builder
      • secondaryKmsKeyIds

        public BackupSummary.Builder secondaryKmsKeyIds​(List<String> secondaryKmsKeyIds)
        List of OCIDs of the key containers used as the secondary encryption key in database transparent data encryption (TDE) operations.
        Parameters:
        secondaryKmsKeyIds - the value to set
        Returns:
        this builder
      • retentionPeriodInDays

        public BackupSummary.Builder retentionPeriodInDays​(Integer retentionPeriodInDays)
        The retention period of the long term backup in days.
        Parameters:
        retentionPeriodInDays - the value to set
        Returns:
        this builder
      • retentionPeriodInYears

        public BackupSummary.Builder retentionPeriodInYears​(Integer retentionPeriodInYears)
        The retention period of the long term backup in years.
        Parameters:
        retentionPeriodInYears - the value to set
        Returns:
        this builder
      • timeExpiryScheduled

        public BackupSummary.Builder timeExpiryScheduled​(Date timeExpiryScheduled)
        Expiration time of the long term database backup.
        Parameters:
        timeExpiryScheduled - the value to set
        Returns:
        this builder
      • isUsingOracleManagedKeys

        public BackupSummary.Builder isUsingOracleManagedKeys​(Boolean isUsingOracleManagedKeys)
        True if Oracle Managed Keys is required for restore of the backup.
        Parameters:
        isUsingOracleManagedKeys - the value to set
        Returns:
        this builder