Class DatabaseBackupMetrics.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • retentionPeriodInDays

        public DatabaseBackupMetrics.Builder retentionPeriodInDays​(String retentionPeriodInDays)
        The retention period of the database.
        Parameters:
        retentionPeriodInDays - the value to set
        Returns:
        this builder
      • isAutomaticBackupEnabled

        public DatabaseBackupMetrics.Builder isAutomaticBackupEnabled​(Boolean isAutomaticBackupEnabled)
        Indicates whether automatic backup is enabled or not.

        This is only applicable for cloud databases.

        Parameters:
        isAutomaticBackupEnabled - the value to set
        Returns:
        this builder
      • isDataguardEnabled

        public DatabaseBackupMetrics.Builder isDataguardEnabled​(Boolean isDataguardEnabled)
        Indicates whether Data Guard is enabled for the database.
        Parameters:
        isDataguardEnabled - the value to set
        Returns:
        this builder
      • compartmentId

        public DatabaseBackupMetrics.Builder compartmentId​(String compartmentId)
        The OCID of the compartment where the Managed Database resides.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • databaseType

        public DatabaseBackupMetrics.Builder databaseType​(DatabaseType databaseType)
        The type of Oracle Database installation.
        Parameters:
        databaseType - the value to set
        Returns:
        this builder
      • databaseSubType

        public DatabaseBackupMetrics.Builder databaseSubType​(DatabaseSubType databaseSubType)
        The subtype of the Oracle Database.

        Indicates whether the database is a Container Database, Pluggable Database, Non-container Database, Autonomous Database, or Autonomous Container Database.

        Parameters:
        databaseSubType - the value to set
        Returns:
        this builder
      • deploymentType

        public DatabaseBackupMetrics.Builder deploymentType​(DeploymentType deploymentType)
        The infrastructure used to deploy the Oracle Database.
        Parameters:
        deploymentType - the value to set
        Returns:
        this builder
      • databaseVersion

        public DatabaseBackupMetrics.Builder databaseVersion​(String databaseVersion)
        The Oracle Database version.
        Parameters:
        databaseVersion - the value to set
        Returns:
        this builder
      • workloadType

        public DatabaseBackupMetrics.Builder workloadType​(WorkloadType workloadType)
        The workload type of the Autonomous Database.
        Parameters:
        workloadType - the value to set
        Returns:
        this builder
      • databaseName

        public DatabaseBackupMetrics.Builder databaseName​(String databaseName)
        The display name of the Managed Database.
        Parameters:
        databaseName - the value to set
        Returns:
        this builder
      • databaseId

        public DatabaseBackupMetrics.Builder databaseId​(String databaseId)
        The database ID of the Managed Database.

        Every database had its own ID and that value is captured here.

        Parameters:
        databaseId - the value to set
        Returns:
        this builder
      • dbUniqueName

        public DatabaseBackupMetrics.Builder dbUniqueName​(String dbUniqueName)
        The database unique name of the Managed Database.
        Parameters:
        dbUniqueName - the value to set
        Returns:
        this builder
      • dbRole

        public DatabaseBackupMetrics.Builder dbRole​(DbRole dbRole)
        The database role of the Managed Database.
        Parameters:
        dbRole - the value to set
        Returns:
        this builder