Class Backup.Builder

  • Enclosing class:
    Backup

    public static class Backup.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public Backup.Builder id​(String id)
        OCID of the backup itself
        Parameters:
        id - the value to set
        Returns:
        this builder
      • displayName

        public Backup.Builder displayName​(String displayName)
        A user-supplied display name for the backup.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • description

        public Backup.Builder description​(String description)
        A user-supplied description for the backup.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • compartmentId

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

        public Backup.Builder timeCreated​(Date timeCreated)
        The time the backup record was created.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public Backup.Builder timeUpdated​(Date timeUpdated)
        The time at which the backup was updated.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • lifecycleState

        public Backup.Builder lifecycleState​(Backup.LifecycleState lifecycleState)
        The state of the backup.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public Backup.Builder lifecycleDetails​(String lifecycleDetails)
        Additional information about the current lifecycleState.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • backupType

        public Backup.Builder backupType​(Backup.BackupType backupType)
        The type of backup.
        Parameters:
        backupType - the value to set
        Returns:
        this builder
      • creationType

        public Backup.Builder creationType​(Backup.CreationType creationType)
        Indicates how the backup was created: manually, automatic, or by an Operator.
        Parameters:
        creationType - the value to set
        Returns:
        this builder
      • dbSystemId

        public Backup.Builder dbSystemId​(String dbSystemId)
        The OCID of the DB System the backup is associated with.
        Parameters:
        dbSystemId - the value to set
        Returns:
        this builder
      • backupSizeInGBs

        public Backup.Builder backupSizeInGBs​(Integer backupSizeInGBs)
        The size of the backup in base-2 (IEC) gibibytes.

        (GiB).

        Parameters:
        backupSizeInGBs - the value to set
        Returns:
        this builder
      • retentionInDays

        public Backup.Builder retentionInDays​(Integer retentionInDays)
        Number of days to retain this backup.
        Parameters:
        retentionInDays - the value to set
        Returns:
        this builder
      • dataStorageSizeInGBs

        public Backup.Builder dataStorageSizeInGBs​(Integer dataStorageSizeInGBs)
        Initial size of the data volume in GiBs.
        Parameters:
        dataStorageSizeInGBs - the value to set
        Returns:
        this builder
      • mysqlVersion

        public Backup.Builder mysqlVersion​(String mysqlVersion)
        The MySQL server version of the DB System used for backup.
        Parameters:
        mysqlVersion - the value to set
        Returns:
        this builder
      • shapeName

        public Backup.Builder shapeName​(String shapeName)
        The shape of the DB System used for backup.
        Parameters:
        shapeName - the value to set
        Returns:
        this builder
      • freeformTags

        public Backup.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 Backup.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”}}

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

        public Backup.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”}}

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

        public Backup.Builder immediateSourceBackupId​(String immediateSourceBackupId)
        The OCID of the immediate source DB system backup from which this DB system backup was copied.
        Parameters:
        immediateSourceBackupId - the value to set
        Returns:
        this builder
      • originalSourceBackupId

        public Backup.Builder originalSourceBackupId​(String originalSourceBackupId)
        The OCID of the original source DB system backup from which this DB system backup was copied.
        Parameters:
        originalSourceBackupId - the value to set
        Returns:
        this builder
      • timeCopyCreated

        public Backup.Builder timeCopyCreated​(Date timeCopyCreated)
        The date and time the DB system backup copy was created, as described by RFC 3339.
        Parameters:
        timeCopyCreated - the value to set
        Returns:
        this builder
      • build

        public Backup build()