Class DbServer.Builder

  • Enclosing class:
    DbServer

    public static class DbServer.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public DbServer.Builder id​(String id)
        The OCID of the Db server.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • displayName

        public DbServer.Builder displayName​(String displayName)
        The user-friendly name for the Db server.

        The name does not need to be unique.

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

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

        public DbServer.Builder exadataInfrastructureId​(String exadataInfrastructureId)
        The OCID of the Exadata infrastructure.
        Parameters:
        exadataInfrastructureId - the value to set
        Returns:
        this builder
      • cpuCoreCount

        public DbServer.Builder cpuCoreCount​(Integer cpuCoreCount)
        The number of CPU cores enabled on the Db server.
        Parameters:
        cpuCoreCount - the value to set
        Returns:
        this builder
      • memorySizeInGBs

        public DbServer.Builder memorySizeInGBs​(Integer memorySizeInGBs)
        The allocated memory in GBs on the Db server.
        Parameters:
        memorySizeInGBs - the value to set
        Returns:
        this builder
      • dbNodeStorageSizeInGBs

        public DbServer.Builder dbNodeStorageSizeInGBs​(Integer dbNodeStorageSizeInGBs)
        The allocated local node storage in GBs on the Db server.
        Parameters:
        dbNodeStorageSizeInGBs - the value to set
        Returns:
        this builder
      • vmClusterIds

        public DbServer.Builder vmClusterIds​(List<String> vmClusterIds)
        The OCID of the VM Clusters associated with the Db server.
        Parameters:
        vmClusterIds - the value to set
        Returns:
        this builder
      • autonomousVmClusterIds

        public DbServer.Builder autonomousVmClusterIds​(List<String> autonomousVmClusterIds)
        The list of OCIDs of the Autonomous VM Clusters associated with the Db server.
        Parameters:
        autonomousVmClusterIds - the value to set
        Returns:
        this builder
      • autonomousVirtualMachineIds

        public DbServer.Builder autonomousVirtualMachineIds​(List<String> autonomousVirtualMachineIds)
        The list of OCIDs of the Autonomous Virtual Machines associated with the Db server.
        Parameters:
        autonomousVirtualMachineIds - the value to set
        Returns:
        this builder
      • dbNodeIds

        public DbServer.Builder dbNodeIds​(List<String> dbNodeIds)
        The OCID of the Db nodes associated with the Db server.
        Parameters:
        dbNodeIds - the value to set
        Returns:
        this builder
      • shape

        public DbServer.Builder shape​(String shape)
        The shape of the Db server.

        The shape determines the amount of CPU, storage, and memory resources available.

        Parameters:
        shape - the value to set
        Returns:
        this builder
      • lifecycleState

        public DbServer.Builder lifecycleState​(DbServer.LifecycleState lifecycleState)
        The current state of the Db server.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public DbServer.Builder lifecycleDetails​(String lifecycleDetails)
        Additional information about the current lifecycle state.
        Parameters:
        lifecycleDetails - the value to set
        Returns:
        this builder
      • maxCpuCount

        public DbServer.Builder maxCpuCount​(Integer maxCpuCount)
        The total number of CPU cores available.
        Parameters:
        maxCpuCount - the value to set
        Returns:
        this builder
      • maxMemoryInGBs

        public DbServer.Builder maxMemoryInGBs​(Integer maxMemoryInGBs)
        The total memory available in GBs.
        Parameters:
        maxMemoryInGBs - the value to set
        Returns:
        this builder
      • maxDbNodeStorageInGBs

        public DbServer.Builder maxDbNodeStorageInGBs​(Integer maxDbNodeStorageInGBs)
        The total local node storage available in GBs.
        Parameters:
        maxDbNodeStorageInGBs - the value to set
        Returns:
        this builder
      • timeCreated

        public DbServer.Builder timeCreated​(Date timeCreated)
        The date and time that the Db Server was created.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • freeformTags

        public DbServer.Builder freeformTags​(Map<String,​String> freeformTags)
        Free-form tags for this resource.

        Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

        Example: {"Department": "Finance"}

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

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

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

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

        public DbServer.Builder computeModel​(DbServer.ComputeModel computeModel)
        The compute model of the Autonomous Database.

        This is required if using the computeCount parameter. If using cpuCoreCount then it is an error to specify computeModel to a non-null value. ECPU compute model is the recommended model and OCPU compute model is legacy.

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