Package com.oracle.bmc.nosql.model
Class Table.Builder
- java.lang.Object
-
- com.oracle.bmc.nosql.model.Table.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Table
build()
Table.Builder
compartmentId(String compartmentId)
Compartment Identifier.Table.Builder
copy(Table model)
Table.Builder
ddlStatement(String ddlStatement)
A DDL statement representing the schema.Table.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Table.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Table.Builder
id(String id)
Unique identifier that is immutable.Table.Builder
isAutoReclaimable(Boolean isAutoReclaimable)
True if this table can be reclaimed after an idle period.Table.Builder
isMultiRegion(Boolean isMultiRegion)
True if this table is currently a member of a replication set.Table.Builder
lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.Table.Builder
lifecycleState(Table.LifecycleState lifecycleState)
The state of a table.Table.Builder
localReplicaInitializationInPercent(Integer localReplicaInitializationInPercent)
If this table is in a replication set, this value represents the progress of the initialization of the replica’s data.Table.Builder
name(String name)
Human-friendly table name, immutable.Table.Builder
replicas(List<Replica> replicas)
An array of Replica listing this table’s replicas, if anyTable.Builder
schema(Schema schema)
Table.Builder
schemaState(Table.SchemaState schemaState)
The current state of this table’s schema.Table.Builder
systemTags(Map<String,Map<String,Object>> systemTags)
Read-only system tag.Table.Builder
tableLimits(TableLimits tableLimits)
Table.Builder
timeCreated(Date timeCreated)
The time the the table was created.Table.Builder
timeOfExpiration(Date timeOfExpiration)
If lifecycleState is INACTIVE, indicates when this table will be automatically removed.Table.Builder
timeUpdated(Date timeUpdated)
The time the the table’s metadata was last updated.
-
-
-
Method Detail
-
id
public Table.Builder id(String id)
Unique identifier that is immutable.- Parameters:
id
- the value to set- Returns:
- this builder
-
name
public Table.Builder name(String name)
Human-friendly table name, immutable.- Parameters:
name
- the value to set- Returns:
- this builder
-
compartmentId
public Table.Builder compartmentId(String compartmentId)
Compartment Identifier.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
timeCreated
public Table.Builder timeCreated(Date timeCreated)
The time the the table was created.An RFC3339 formatted datetime string.
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
timeUpdated
public Table.Builder timeUpdated(Date timeUpdated)
The time the the table’s metadata was last updated.An RFC3339 formatted datetime string.
- Parameters:
timeUpdated
- the value to set- Returns:
- this builder
-
tableLimits
public Table.Builder tableLimits(TableLimits tableLimits)
-
lifecycleState
public Table.Builder lifecycleState(Table.LifecycleState lifecycleState)
The state of a table.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
isAutoReclaimable
public Table.Builder isAutoReclaimable(Boolean isAutoReclaimable)
True if this table can be reclaimed after an idle period.- Parameters:
isAutoReclaimable
- the value to set- Returns:
- this builder
-
timeOfExpiration
public Table.Builder timeOfExpiration(Date timeOfExpiration)
If lifecycleState is INACTIVE, indicates when this table will be automatically removed.An RFC3339 formatted datetime string.
- Parameters:
timeOfExpiration
- the value to set- Returns:
- this builder
-
lifecycleDetails
public Table.Builder lifecycleDetails(String lifecycleDetails)
A message describing the current state in more detail.- Parameters:
lifecycleDetails
- the value to set- Returns:
- this builder
-
schema
public Table.Builder schema(Schema schema)
-
ddlStatement
public Table.Builder ddlStatement(String ddlStatement)
A DDL statement representing the schema.- Parameters:
ddlStatement
- the value to set- Returns:
- this builder
-
schemaState
public Table.Builder schemaState(Table.SchemaState schemaState)
The current state of this table’s schema.Available states are MUTABLE - The schema can be changed. The table is not eligible for replication. FROZEN - The schema is immutable. The table is eligible for replication.
- Parameters:
schemaState
- the value to set- Returns:
- this builder
-
isMultiRegion
public Table.Builder isMultiRegion(Boolean isMultiRegion)
True if this table is currently a member of a replication set.- Parameters:
isMultiRegion
- the value to set- Returns:
- this builder
-
localReplicaInitializationInPercent
public Table.Builder localReplicaInitializationInPercent(Integer localReplicaInitializationInPercent)
If this table is in a replication set, this value represents the progress of the initialization of the replica’s data.A value of 100 indicates that initialization has completed.
- Parameters:
localReplicaInitializationInPercent
- the value to set- Returns:
- this builder
-
replicas
public Table.Builder replicas(List<Replica> replicas)
An array of Replica listing this table’s replicas, if any- Parameters:
replicas
- the value to set- Returns:
- this builder
-
freeformTags
public Table.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 Table.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 Table.Builder systemTags(Map<String,Map<String,Object>> systemTags)
Read-only system tag.These predefined keys are scoped to namespaces. At present the only supported namespace is “orcl-cloud”; and the only key in that namespace is “free-tier-retained”. Example: {“orcl-cloud”": {“free-tier-retained”: “true”}}
- Parameters:
systemTags
- the value to set- Returns:
- this builder
-
build
public Table build()
-
copy
public Table.Builder copy(Table model)
-
-