Class LongTermBackup.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public LongTermBackup.Builder id​(String id)
        The OCID of the long-term backup.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • displayName

        public LongTermBackup.Builder displayName​(String displayName)
        The user-provided name for the long-term backup.

        You can change the displayName. Avoid entering confidential information.

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

        public LongTermBackup.Builder compartmentId​(String compartmentId)
        The OCID of the compartment containing the long-term backup.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • protectedDatabaseId

        public LongTermBackup.Builder protectedDatabaseId​(String protectedDatabaseId)
        The OCID of the protected database associated with the long-term backup.
        Parameters:
        protectedDatabaseId - the value to set
        Returns:
        this builder
      • retentionScn

        public LongTermBackup.Builder retentionScn​(Integer retentionScn)
        The unique system change number (SCN) or the target point in the database until which the long-term backup is consistent.
        Parameters:
        retentionScn - the value to set
        Returns:
        this builder
      • retentionPointInTime

        public LongTermBackup.Builder retentionPointInTime​(Date retentionPointInTime)
        An RFC3339 formatted datetime string that indicates the target point in time until which the long-term backup is consistent.

        For example, ‘2020-05-22T21:10:29.600Z’.

        Parameters:
        retentionPointInTime - the value to set
        Returns:
        this builder
      • timeBackupInitiated

        public LongTermBackup.Builder timeBackupInitiated​(Date timeBackupInitiated)
        An RFC3339 formatted datetime string that indicates the time when the long-term backup was created.

        For example, ‘2020-05-22T21:10:29.600Z’.

        Parameters:
        timeBackupInitiated - the value to set
        Returns:
        this builder
      • timeBackupCompleted

        public LongTermBackup.Builder timeBackupCompleted​(Date timeBackupCompleted)
        An RFC3339 formatted datetime string that indicates the time when the long-term backup completed.

        For example, ‘2020-05-22T21:10:29.600Z’.

        Parameters:
        timeBackupCompleted - the value to set
        Returns:
        this builder
      • retentionPeriod

        public LongTermBackup.Builder retentionPeriod​(List<RetentionPeriodValue> retentionPeriod)
        The maximum number of DAYS or YEARS to store the long-term backup.

        You can retain a long-term backup for a period ranging from 90-3650 days or 1-10 years.

        Parameters:
        retentionPeriod - the value to set
        Returns:
        this builder
      • retentionUntilDateTime

        public LongTermBackup.Builder retentionUntilDateTime​(Date retentionUntilDateTime)
        Indicates that Recovery Service must retain the backup for the specified long-term retention period.
        Parameters:
        retentionUntilDateTime - the value to set
        Returns:
        this builder
      • databaseIdentifier

        public LongTermBackup.Builder databaseIdentifier​(String databaseIdentifier)
        The Oracle Database ID, which identifies an Oracle Database located outside of Oracle Cloud.
        Parameters:
        databaseIdentifier - the value to set
        Returns:
        this builder
      • databaseSizeInGBs

        public LongTermBackup.Builder databaseSizeInGBs​(Integer databaseSizeInGBs)
        The size of the database, in gigabytes.
        Parameters:
        databaseSizeInGBs - the value to set
        Returns:
        this builder
      • timeCreated

        public LongTermBackup.Builder timeCreated​(Date timeCreated)
        An RFC3339 formatted datetime string that indicates the time when the long-term backup was created.

        For example: ‘2020-05-22T21:10:29.600Z’.

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public LongTermBackup.Builder timeUpdated​(Date timeUpdated)
        An RFC3339 formatted datetime string that indicates the time when the long term backup was last updated.

        For example: ‘2020-05-22T21:10:29.600Z’.

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • lifecycleSubstate

        public LongTermBackup.Builder lifecycleSubstate​(LongTermBackup.LifecycleSubstate lifecycleSubstate)
        More details on the state of the backup when it is in Creating lifecycleState.
        Parameters:
        lifecycleSubstate - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public LongTermBackup.Builder lifecycleDetails​(String lifecycleDetails)
        A detailed message about the current lifecycle state of the long-term backup.

        For example, it can be used to provide actionable information for a resource in a Failed state.

        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • rmanTag

        public LongTermBackup.Builder rmanTag​(String rmanTag)
        Recovery Manager (RMAN) assigned unique identifier for the long-term backup.
        Parameters:
        rmanTag - the value to set
        Returns:
        this builder
      • freeformTags

        public LongTermBackup.Builder freeformTags​(Map<String,​String> freeformTags)
        Simple key-value pair that is applied without any predefined name, type or scope.

        Exists for cross-compatibility only. Example: {“bar-key”: “value”}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • definedTags

        public LongTermBackup.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}. For more information, see Resource Tags

        Parameters:
        definedTags - the value to set
        Returns:
        this builder
      • systemTags

        public LongTermBackup.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        Usage of system tag keys.

        These predefined keys are scoped to namespaces. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}. For more information, see Resource Tags

        Parameters:
        systemTags - the value to set
        Returns:
        this builder