Class DbSystemSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • displayName

        public DbSystemSummary.Builder displayName​(String displayName)
        The user-friendly name for the DB System.

        It does not have to be unique.

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

        public DbSystemSummary.Builder description​(String description)
        User-provided data about the DB System.
        Parameters:
        description - the value to set
        Returns:
        this builder
      • compartmentId

        public DbSystemSummary.Builder compartmentId​(String compartmentId)
        The OCID of the compartment the DB System belongs in.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • isHighlyAvailable

        public DbSystemSummary.Builder isHighlyAvailable​(Boolean isHighlyAvailable)
        Specifies if the DB System is highly available.
        Parameters:
        isHighlyAvailable - the value to set
        Returns:
        this builder
      • isHeatWaveClusterAttached

        public DbSystemSummary.Builder isHeatWaveClusterAttached​(Boolean isHeatWaveClusterAttached)
        If the DB System has a HeatWave Cluster attached.
        Parameters:
        isHeatWaveClusterAttached - the value to set
        Returns:
        this builder
      • availabilityDomain

        public DbSystemSummary.Builder availabilityDomain​(String availabilityDomain)
        The availability domain on which to deploy the Read/Write endpoint.

        This defines the preferred primary instance.

        In a failover scenario, the Read/Write endpoint is redirected to one of the other availability domains and the MySQL instance in that domain is promoted to the primary instance. This redirection does not affect the IP address of the DB System in any way.

        For a standalone DB System, this defines the availability domain in which the DB System is placed.

        Parameters:
        availabilityDomain - the value to set
        Returns:
        this builder
      • faultDomain

        public DbSystemSummary.Builder faultDomain​(String faultDomain)
        The fault domain on which to deploy the Read/Write endpoint.

        This defines the preferred primary instance.

        In a failover scenario, the Read/Write endpoint is redirected to one of the other fault domains and the MySQL instance in that domain is promoted to the primary instance. This redirection does not affect the IP address of the DB System in any way.

        For a standalone DB System, this defines the fault domain in which the DB System is placed.

        Parameters:
        faultDomain - the value to set
        Returns:
        this builder
      • mysqlVersion

        public DbSystemSummary.Builder mysqlVersion​(String mysqlVersion)
        Name of the MySQL Version in use for the DB System.
        Parameters:
        mysqlVersion - the value to set
        Returns:
        this builder
      • timeCreated

        public DbSystemSummary.Builder timeCreated​(Date timeCreated)
        The date and time the DB System was created.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public DbSystemSummary.Builder timeUpdated​(Date timeUpdated)
        The time the DB System was last updated.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • freeformTags

        public DbSystemSummary.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 DbSystemSummary.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 DbSystemSummary.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
      • shapeName

        public DbSystemSummary.Builder shapeName​(String shapeName)
        The shape of the primary instances of the DB System.

        The shape determines resources allocated to a DB System - CPU cores and memory for VM shapes; CPU cores, memory and storage for non-VM (or bare metal) shapes. To get a list of shapes, use (the listShapes operation.

        Parameters:
        shapeName - the value to set
        Returns:
        this builder
      • crashRecovery

        public DbSystemSummary.Builder crashRecovery​(CrashRecoveryStatus crashRecovery)
        Whether to run the DB System with InnoDB Redo Logs and the Double Write Buffer enabled or disabled, and whether to enable or disable syncing of the Binary Logs.
        Parameters:
        crashRecovery - the value to set
        Returns:
        this builder
      • databaseManagement

        public DbSystemSummary.Builder databaseManagement​(DatabaseManagementStatus databaseManagement)
        Whether to enable monitoring via the Database Management service.
        Parameters:
        databaseManagement - the value to set
        Returns:
        this builder
      • databaseMode

        public DbSystemSummary.Builder databaseMode​(DbSystem.DatabaseMode databaseMode)
        The database mode indicating the types of statements that are allowed to run in the DB system.

        This mode applies only to statements run by user connections. Replicated write statements continue to be allowed regardless of the DatabaseMode. - READ_WRITE: allow running read and write statements on the DB system; - READ_ONLY: only allow running read statements on the DB system.

        Parameters:
        databaseMode - the value to set
        Returns:
        this builder
      • accessMode

        public DbSystemSummary.Builder accessMode​(DbSystem.AccessMode accessMode)
        The access mode indicating if the database access is unrestricted (to all MySQL user accounts), or restricted (to only certain users with specific privileges): - UNRESTRICTED: the access to the database is not restricted; - RESTRICTED: the access is allowed only to users with specific privileges; RESTRICTED will correspond to setting the MySQL system variable offline_mode to ON.
        Parameters:
        accessMode - the value to set
        Returns:
        this builder