@Stability(value=Experimental) public static final class TableOptions.Builder extends Object
TableOptions| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TableOptions |
build()
Builds the configured instance.
|
TableOptions.Builder |
withBillingMode(BillingMode value)
Sets the value of BillingMode
|
TableOptions.Builder |
withPartitionKey(Attribute value)
Sets the value of PartitionKey
|
TableOptions.Builder |
withPointInTimeRecovery(Boolean value)
Sets the value of PointInTimeRecovery
|
TableOptions.Builder |
withReadCapacity(Number value)
Sets the value of ReadCapacity
|
TableOptions.Builder |
withServerSideEncryption(Boolean value)
Sets the value of ServerSideEncryption
|
TableOptions.Builder |
withSortKey(Attribute value)
Sets the value of SortKey
|
TableOptions.Builder |
withStream(StreamViewType value)
Sets the value of Stream
|
TableOptions.Builder |
withTimeToLiveAttribute(String value)
Sets the value of TimeToLiveAttribute
|
TableOptions.Builder |
withWriteCapacity(Number value)
Sets the value of WriteCapacity
|
@Stability(value=Experimental) public TableOptions.Builder withPartitionKey(Attribute value)
value - Partition key attribute definition.this@Stability(value=Experimental) public TableOptions.Builder withBillingMode(@Nullable BillingMode value)
value - Specify how you are charged for read and write throughput and how you manage capacity.this@Stability(value=Experimental) public TableOptions.Builder withPointInTimeRecovery(@Nullable Boolean value)
value - Whether point-in-time recovery is enabled.this@Stability(value=Experimental) public TableOptions.Builder withReadCapacity(@Nullable Number value)
value - The read capacity for the table.this@Stability(value=Experimental) public TableOptions.Builder withServerSideEncryption(@Nullable Boolean value)
value - Whether server-side encryption with an AWS managed customer master key is enabled.this@Stability(value=Experimental) public TableOptions.Builder withSortKey(@Nullable Attribute value)
value - Table sort key attribute definition.this@Stability(value=Experimental) public TableOptions.Builder withStream(@Nullable StreamViewType value)
value - When an item in the table is modified, StreamViewType determines what information is written to the stream for this table.this@Stability(value=Experimental) public TableOptions.Builder withTimeToLiveAttribute(@Nullable String value)
value - The name of TTL attribute.this@Stability(value=Experimental) public TableOptions.Builder withWriteCapacity(@Nullable Number value)
value - The write capacity for the table.this@Stability(value=Experimental) public TableOptions build()
TableOptionsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.