Class Tablespace.Builder
- java.lang.Object
-
- com.oracle.bmc.databasemanagement.model.Tablespace.Builder
-
- Enclosing class:
- Tablespace
public static class Tablespace.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tablespace.Builder
allocatedSizeKB(BigDecimal allocatedSizeKB)
The allocated tablespace size in KB.Tablespace.Builder
allocationType(Tablespace.AllocationType allocationType)
The type of extent allocation in effect for the tablespace.Tablespace.Builder
blockSizeBytes(BigDecimal blockSizeBytes)
The tablespace block size.Tablespace
build()
Tablespace.Builder
compressFor(Tablespace.CompressFor compressFor)
The operation type for which default compression is enabled.Tablespace.Builder
copy(Tablespace model)
Tablespace.Builder
datafiles(List<Datafile> datafiles)
A list of the data files associated with the tablespace.Tablespace.Builder
defaultCellMemory(String defaultCellMemory)
This specifies the default value for the CELLMEMORY attribute that tables created in the tablespace will inherit unless the behavior is overridden explicitly.Tablespace.Builder
defaultIndexCompression(Tablespace.DefaultIndexCompression defaultIndexCompression)
Indicates whether default index compression is enabled or disabled.Tablespace.Builder
defaultInMemory(Tablespace.DefaultInMemory defaultInMemory)
Indicates whether the In-Memory Column Store (IM column store) is by default enabled or disabled for tables in the tablespace.Tablespace.Builder
defaultInMemoryCompression(Tablespace.DefaultInMemoryCompression defaultInMemoryCompression)
Indicates the default compression level for the IM column store for the tablespace.Tablespace.Builder
defaultInMemoryDistribute(Tablespace.DefaultInMemoryDistribute defaultInMemoryDistribute)
Indicates how the IM column store is distributed by default for the tablespace in an Oracle Real Application Clusters (Oracle RAC) environment.Tablespace.Builder
defaultInMemoryDuplicate(Tablespace.DefaultInMemoryDuplicate defaultInMemoryDuplicate)
Indicates the duplicate setting for the IM column store in an Oracle RAC environment.Tablespace.Builder
defaultInMemoryPriority(Tablespace.DefaultInMemoryPriority defaultInMemoryPriority)
Indicates the default priority for In-Memory Column Store (IM column store) population for the tablespace.Tablespace.Builder
defaultInMemoryService(Tablespace.DefaultInMemoryService defaultInMemoryService)
Indicates how the IM column store is populated on various instances by default for the tablespace.Tablespace.Builder
defaultInMemoryServiceName(String defaultInMemoryServiceName)
Indicates the service name for the service on which the IM column store should be populated by default for the tablespace.Tablespace.Builder
defaultTableCompression(Tablespace.DefaultTableCompression defaultTableCompression)
Indicates whether default table compression is enabled or disabled.Tablespace.Builder
extentManagement(Tablespace.ExtentManagement extentManagement)
Indicates whether the extents in the tablespace are Locally managed or Dictionary managed.Tablespace.Builder
freeSpaceKB(BigDecimal freeSpaceKB)
The free space available in the tablespace in KB.Tablespace.Builder
indexCompressFor(Tablespace.IndexCompressFor indexCompressFor)
The operation type for which default index compression is enabled.Tablespace.Builder
isBigfile(Boolean isBigfile)
Indicates whether the tablespace is a Bigfile tablespace or a Smallfile tablespace.Tablespace.Builder
isChunkTablespace(Boolean isChunkTablespace)
Indicates whether this is a chunk tablespace.Tablespace.Builder
isDefault(Boolean isDefault)
Indicates whether this is the default tablespace.Tablespace.Builder
isEncrypted(Boolean isEncrypted)
Indicates whether the tablespace is encrypted.Tablespace.Builder
isForceLogging(Boolean isForceLogging)
Indicates whether the tablespace is under Force Logging mode.Tablespace.Builder
isPluggedIn(Boolean isPluggedIn)
Indicates whether the tablespace is plugged in.Tablespace.Builder
logging(Tablespace.Logging logging)
The default logging attribute.Tablespace.Builder
lostWriteProtect(Tablespace.LostWriteProtect lostWriteProtect)
The lost write protection setting for the tablespace.Tablespace.Builder
maxSizeKB(BigDecimal maxSizeKB)
The maximum tablespace size in KB.Tablespace.Builder
name(String name)
The name of the tablespace.Tablespace.Builder
predicateEvaluation(Tablespace.PredicateEvaluation predicateEvaluation)
Indicates whether predicates are evaluated by Host or by Storage.Tablespace.Builder
retention(Tablespace.Retention retention)
Indicates whether undo retention guarantee is enabled for the tablespace.Tablespace.Builder
segmentSpaceManagement(Tablespace.SegmentSpaceManagement segmentSpaceManagement)
Indicates whether the free and used segment space in the tablespace is managed using free lists (MANUAL) or bitmaps (AUTO).Tablespace.Builder
shared(Tablespace.Shared shared)
Indicates whether the tablespace is for shared tablespace, or for local temporary tablespace for leaf (read-only) instances, or for local temporary tablespace for all instance types.Tablespace.Builder
status(Tablespace.Status status)
The status of the tablespace.Tablespace.Builder
tempGroup(String tempGroup)
The temporary tablespace group.Tablespace.Builder
type(Tablespace.Type type)
The type of tablespace.Tablespace.Builder
usedPercentAllocated(Double usedPercentAllocated)
The percentage of used space out of the total allocated space in the tablespace.Tablespace.Builder
usedPercentAvailable(Double usedPercentAvailable)
The percentage of used space out of the maximum available space in the tablespace.Tablespace.Builder
usedSpaceKB(BigDecimal usedSpaceKB)
The total space used by the tablespace in KB.Tablespace.Builder
userSizeKB(BigDecimal userSizeKB)
The size of the tablespace available for user data in KB.
-
-
-
Method Detail
-
name
public Tablespace.Builder name(String name)
The name of the tablespace.- Parameters:
name
- the value to set- Returns:
- this builder
-
type
public Tablespace.Builder type(Tablespace.Type type)
The type of tablespace.- Parameters:
type
- the value to set- Returns:
- this builder
-
status
public Tablespace.Builder status(Tablespace.Status status)
The status of the tablespace.- Parameters:
status
- the value to set- Returns:
- this builder
-
blockSizeBytes
public Tablespace.Builder blockSizeBytes(BigDecimal blockSizeBytes)
The tablespace block size.- Parameters:
blockSizeBytes
- the value to set- Returns:
- this builder
-
logging
public Tablespace.Builder logging(Tablespace.Logging logging)
The default logging attribute.- Parameters:
logging
- the value to set- Returns:
- this builder
-
isForceLogging
public Tablespace.Builder isForceLogging(Boolean isForceLogging)
Indicates whether the tablespace is under Force Logging mode.- Parameters:
isForceLogging
- the value to set- Returns:
- this builder
-
extentManagement
public Tablespace.Builder extentManagement(Tablespace.ExtentManagement extentManagement)
Indicates whether the extents in the tablespace are Locally managed or Dictionary managed.- Parameters:
extentManagement
- the value to set- Returns:
- this builder
-
allocationType
public Tablespace.Builder allocationType(Tablespace.AllocationType allocationType)
The type of extent allocation in effect for the tablespace.- Parameters:
allocationType
- the value to set- Returns:
- this builder
-
isPluggedIn
public Tablespace.Builder isPluggedIn(Boolean isPluggedIn)
Indicates whether the tablespace is plugged in.- Parameters:
isPluggedIn
- the value to set- Returns:
- this builder
-
segmentSpaceManagement
public Tablespace.Builder segmentSpaceManagement(Tablespace.SegmentSpaceManagement segmentSpaceManagement)
Indicates whether the free and used segment space in the tablespace is managed using free lists (MANUAL) or bitmaps (AUTO).- Parameters:
segmentSpaceManagement
- the value to set- Returns:
- this builder
-
defaultTableCompression
public Tablespace.Builder defaultTableCompression(Tablespace.DefaultTableCompression defaultTableCompression)
Indicates whether default table compression is enabled or disabled.- Parameters:
defaultTableCompression
- the value to set- Returns:
- this builder
-
retention
public Tablespace.Builder retention(Tablespace.Retention retention)
Indicates whether undo retention guarantee is enabled for the tablespace.- Parameters:
retention
- the value to set- Returns:
- this builder
-
isBigfile
public Tablespace.Builder isBigfile(Boolean isBigfile)
Indicates whether the tablespace is a Bigfile tablespace or a Smallfile tablespace.- Parameters:
isBigfile
- the value to set- Returns:
- this builder
-
predicateEvaluation
public Tablespace.Builder predicateEvaluation(Tablespace.PredicateEvaluation predicateEvaluation)
Indicates whether predicates are evaluated by Host or by Storage.- Parameters:
predicateEvaluation
- the value to set- Returns:
- this builder
-
isEncrypted
public Tablespace.Builder isEncrypted(Boolean isEncrypted)
Indicates whether the tablespace is encrypted.- Parameters:
isEncrypted
- the value to set- Returns:
- this builder
-
compressFor
public Tablespace.Builder compressFor(Tablespace.CompressFor compressFor)
The operation type for which default compression is enabled.- Parameters:
compressFor
- the value to set- Returns:
- this builder
-
defaultInMemory
public Tablespace.Builder defaultInMemory(Tablespace.DefaultInMemory defaultInMemory)
Indicates whether the In-Memory Column Store (IM column store) is by default enabled or disabled for tables in the tablespace.- Parameters:
defaultInMemory
- the value to set- Returns:
- this builder
-
defaultInMemoryPriority
public Tablespace.Builder defaultInMemoryPriority(Tablespace.DefaultInMemoryPriority defaultInMemoryPriority)
Indicates the default priority for In-Memory Column Store (IM column store) population for the tablespace.- Parameters:
defaultInMemoryPriority
- the value to set- Returns:
- this builder
-
defaultInMemoryDistribute
public Tablespace.Builder defaultInMemoryDistribute(Tablespace.DefaultInMemoryDistribute defaultInMemoryDistribute)
Indicates how the IM column store is distributed by default for the tablespace in an Oracle Real Application Clusters (Oracle RAC) environment.- Parameters:
defaultInMemoryDistribute
- the value to set- Returns:
- this builder
-
defaultInMemoryCompression
public Tablespace.Builder defaultInMemoryCompression(Tablespace.DefaultInMemoryCompression defaultInMemoryCompression)
Indicates the default compression level for the IM column store for the tablespace.- Parameters:
defaultInMemoryCompression
- the value to set- Returns:
- this builder
-
defaultInMemoryDuplicate
public Tablespace.Builder defaultInMemoryDuplicate(Tablespace.DefaultInMemoryDuplicate defaultInMemoryDuplicate)
Indicates the duplicate setting for the IM column store in an Oracle RAC environment.- Parameters:
defaultInMemoryDuplicate
- the value to set- Returns:
- this builder
-
shared
public Tablespace.Builder shared(Tablespace.Shared shared)
Indicates whether the tablespace is for shared tablespace, or for local temporary tablespace for leaf (read-only) instances, or for local temporary tablespace for all instance types.- Parameters:
shared
- the value to set- Returns:
- this builder
-
defaultIndexCompression
public Tablespace.Builder defaultIndexCompression(Tablespace.DefaultIndexCompression defaultIndexCompression)
Indicates whether default index compression is enabled or disabled.- Parameters:
defaultIndexCompression
- the value to set- Returns:
- this builder
-
indexCompressFor
public Tablespace.Builder indexCompressFor(Tablespace.IndexCompressFor indexCompressFor)
The operation type for which default index compression is enabled.- Parameters:
indexCompressFor
- the value to set- Returns:
- this builder
-
defaultCellMemory
public Tablespace.Builder defaultCellMemory(String defaultCellMemory)
This specifies the default value for the CELLMEMORY attribute that tables created in the tablespace will inherit unless the behavior is overridden explicitly.This column is intended for use with Oracle Exadata.
- Parameters:
defaultCellMemory
- the value to set- Returns:
- this builder
-
defaultInMemoryService
public Tablespace.Builder defaultInMemoryService(Tablespace.DefaultInMemoryService defaultInMemoryService)
Indicates how the IM column store is populated on various instances by default for the tablespace.- Parameters:
defaultInMemoryService
- the value to set- Returns:
- this builder
-
defaultInMemoryServiceName
public Tablespace.Builder defaultInMemoryServiceName(String defaultInMemoryServiceName)
Indicates the service name for the service on which the IM column store should be populated by default for the tablespace.This column has a value only when the corresponding DEF_INMEMORY_SERVICE is USER_DEFINED. In all other cases, this column is null.
- Parameters:
defaultInMemoryServiceName
- the value to set- Returns:
- this builder
-
lostWriteProtect
public Tablespace.Builder lostWriteProtect(Tablespace.LostWriteProtect lostWriteProtect)
The lost write protection setting for the tablespace.- Parameters:
lostWriteProtect
- the value to set- Returns:
- this builder
-
isChunkTablespace
public Tablespace.Builder isChunkTablespace(Boolean isChunkTablespace)
Indicates whether this is a chunk tablespace.- Parameters:
isChunkTablespace
- the value to set- Returns:
- this builder
-
tempGroup
public Tablespace.Builder tempGroup(String tempGroup)
The temporary tablespace group.- Parameters:
tempGroup
- the value to set- Returns:
- this builder
-
maxSizeKB
public Tablespace.Builder maxSizeKB(BigDecimal maxSizeKB)
The maximum tablespace size in KB.If the tablespace contains any data files with Autoextend enabled, then this column displays the amount of underlying free storage space for the tablespace. For example, if the current tablespace size is 1 GB, the combined maximum size of all its data files is 32 GB, and its underlying storage (for example, ASM or file system storage) has 20 GB of free space, then this column will have a value of approximately 20 GB. If the tablespace contains only data files with autoextend disabled, then this column displays the allocated space for the entire tablespace, that is, the combined size of all data files in the tablespace.
- Parameters:
maxSizeKB
- the value to set- Returns:
- this builder
-
allocatedSizeKB
public Tablespace.Builder allocatedSizeKB(BigDecimal allocatedSizeKB)
The allocated tablespace size in KB.- Parameters:
allocatedSizeKB
- the value to set- Returns:
- this builder
-
userSizeKB
public Tablespace.Builder userSizeKB(BigDecimal userSizeKB)
The size of the tablespace available for user data in KB.The difference between tablespace size and user data size is used for storing metadata.
- Parameters:
userSizeKB
- the value to set- Returns:
- this builder
-
freeSpaceKB
public Tablespace.Builder freeSpaceKB(BigDecimal freeSpaceKB)
The free space available in the tablespace in KB.- Parameters:
freeSpaceKB
- the value to set- Returns:
- this builder
-
usedSpaceKB
public Tablespace.Builder usedSpaceKB(BigDecimal usedSpaceKB)
The total space used by the tablespace in KB.- Parameters:
usedSpaceKB
- the value to set- Returns:
- this builder
-
usedPercentAvailable
public Tablespace.Builder usedPercentAvailable(Double usedPercentAvailable)
The percentage of used space out of the maximum available space in the tablespace.- Parameters:
usedPercentAvailable
- the value to set- Returns:
- this builder
-
usedPercentAllocated
public Tablespace.Builder usedPercentAllocated(Double usedPercentAllocated)
The percentage of used space out of the total allocated space in the tablespace.- Parameters:
usedPercentAllocated
- the value to set- Returns:
- this builder
-
isDefault
public Tablespace.Builder isDefault(Boolean isDefault)
Indicates whether this is the default tablespace.- Parameters:
isDefault
- the value to set- Returns:
- this builder
-
datafiles
public Tablespace.Builder datafiles(List<Datafile> datafiles)
A list of the data files associated with the tablespace.- Parameters:
datafiles
- the value to set- Returns:
- this builder
-
build
public Tablespace build()
-
copy
public Tablespace.Builder copy(Tablespace model)
-
-