@Generated(value="OracleSDKGenerator", comments="API Version: 20190415") public final class DataStorage extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Data Storage information.
Note: Objects should always be created or deserialized using the DataStorage.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the DataStorage.Builder
, which maintain a
set of all explicitly set fields called DataStorage.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
DataStorage.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
DataStorage(Integer allocatedStorageSizeInGBs,
Integer dataStorageSizeInGBs,
Integer dataStorageSizeLimitInGBs,
Boolean isAutoExpandStorageEnabled,
Integer maxStorageSizeInGBs)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static DataStorage.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Integer |
getAllocatedStorageSizeInGBs()
The actual allocated storage size for the DB System.
|
Integer |
getDataStorageSizeInGBs()
User specified size of the data volume.
|
Integer |
getDataStorageSizeLimitInGBs()
The absolute limit the DB System’s storage size may ever expand to, either manually or
automatically.
|
Boolean |
getIsAutoExpandStorageEnabled()
Enable/disable automatic storage expansion.
|
Integer |
getMaxStorageSizeInGBs()
Maximum storage size this DB System can expand to.
|
int |
hashCode() |
DataStorage.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"allocatedStorageSizeInGBs","dataStorageSizeInGBs","dataStorageSizeLimitInGBs","isAutoExpandStorageEnabled","maxStorageSizeInGBs"}) public DataStorage(Integer allocatedStorageSizeInGBs, Integer dataStorageSizeInGBs, Integer dataStorageSizeLimitInGBs, Boolean isAutoExpandStorageEnabled, Integer maxStorageSizeInGBs)
public static DataStorage.Builder builder()
Create a new builder.
public DataStorage.Builder toBuilder()
public Integer getAllocatedStorageSizeInGBs()
The actual allocated storage size for the DB System. This may be higher than dataStorageSizeInGBs if an automatic storage expansion has occurred.
public Integer getDataStorageSizeInGBs()
User specified size of the data volume. May be less than current allocatedStorageSizeInGBs.
public Integer getDataStorageSizeLimitInGBs()
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.
public Boolean getIsAutoExpandStorageEnabled()
Enable/disable automatic storage expansion. When set to true, the DB System will automatically add storage incrementally up to the value specified in maxStorageSizeInGBs.
public Integer getMaxStorageSizeInGBs()
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.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.