Class DataStorage.Builder
- java.lang.Object
-
- com.oracle.bmc.mysql.model.DataStorage.Builder
-
- Enclosing class:
- DataStorage
public static class DataStorage.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataStorage.Builder
allocatedStorageSizeInGBs(Integer allocatedStorageSizeInGBs)
The actual allocated storage size for the DB System.DataStorage
build()
DataStorage.Builder
copy(DataStorage model)
DataStorage.Builder
dataStorageSizeInGBs(Integer dataStorageSizeInGBs)
User specified size of the data volume.DataStorage.Builder
dataStorageSizeLimitInGBs(Integer dataStorageSizeLimitInGBs)
The absolute limit the DB System’s storage size may ever expand to, either manually or automatically.DataStorage.Builder
isAutoExpandStorageEnabled(Boolean isAutoExpandStorageEnabled)
Enable/disable automatic storage expansion.DataStorage.Builder
maxStorageSizeInGBs(Integer maxStorageSizeInGBs)
Maximum storage size this DB System can expand to.
-
-
-
Method Detail
-
allocatedStorageSizeInGBs
public DataStorage.Builder allocatedStorageSizeInGBs(Integer allocatedStorageSizeInGBs)
The actual allocated storage size for the DB System.This may be higher than dataStorageSizeInGBs if an automatic storage expansion has occurred.
- Parameters:
allocatedStorageSizeInGBs
- the value to set- Returns:
- this builder
-
dataStorageSizeInGBs
public DataStorage.Builder dataStorageSizeInGBs(Integer dataStorageSizeInGBs)
User specified size of the data volume.May be less than current allocatedStorageSizeInGBs.
- Parameters:
dataStorageSizeInGBs
- the value to set- Returns:
- this builder
-
dataStorageSizeLimitInGBs
public DataStorage.Builder dataStorageSizeLimitInGBs(Integer dataStorageSizeLimitInGBs)
The absolute limit the DB System’s storage size may ever expand to, either manually or automatically.This limit is based based on the initial dataStorageSizeInGBs when the DB System was first created. Both dataStorageSizeInGBs and maxDataStorageSizeInGBs can not exceed this value.
DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. DB Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. DB Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. DB Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB.
- Parameters:
dataStorageSizeLimitInGBs
- the value to set- Returns:
- this builder
-
isAutoExpandStorageEnabled
public DataStorage.Builder isAutoExpandStorageEnabled(Boolean isAutoExpandStorageEnabled)
Enable/disable automatic storage expansion.When set to true, the DB System will automatically add storage incrementally up to the value specified in maxStorageSizeInGBs.
- Parameters:
isAutoExpandStorageEnabled
- the value to set- Returns:
- this builder
-
maxStorageSizeInGBs
public DataStorage.Builder maxStorageSizeInGBs(Integer maxStorageSizeInGBs)
Maximum storage size this DB System can expand to.When isAutoExpandStorageEnabled is set to true, the DB System will add storage incrementally up to this value.
DB Systems with an initial storage size of 400 GB or less can be expanded up to 32 TB. DB Systems with an initial storage size between 401-800 GB can be expanded up to 64 TB. DB Systems with an initial storage size between 801-1200 GB can be expanded up to 96 TB. DB Systems with an initial storage size of 1201 GB or more can be expanded up to 128 TB.
It is not possible to decrease data storage size. You cannot set the maximum data storage size to less than either current DB System dataStorageSizeInGBs or allocatedStorageSizeInGBs.
- Parameters:
maxStorageSizeInGBs
- the value to set- Returns:
- this builder
-
build
public DataStorage build()
-
copy
public DataStorage.Builder copy(DataStorage model)
-
-