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)
        The unique identifier of the backup.

        *Note:** Not an [OCID](https://docs.oracle.com/iaas/Content/General/Concepts/identifiers.htm).

        Parameters:
        id - the value to set
        Returns:
        this builder
      • type

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

        public Backup.Builder managedInstanceId​(String managedInstanceId)
        The managed instance ID of the server for which the backup was created.
        Parameters:
        managedInstanceId - the value to set
        Returns:
        this builder
      • backupLocation

        public Backup.Builder backupLocation​(String backupLocation)
        The location of the backup.

        For backups of type LOCAL_FILE this is the absolute path of the backup file.

        Parameters:
        backupLocation - the value to set
        Returns:
        this builder
      • contentType

        public Backup.Builder contentType​(BackupContentType contentType)
        The type of content of the backup.
        Parameters:
        contentType - the value to set
        Returns:
        this builder
      • timeCreated

        public Backup.Builder timeCreated​(Date timeCreated)
        The date and time when the backup was created (in RFC 3339 format).

        Example: 2016-08-25T21:10:29.600Z

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

        public Backup build()