@Generated(value="software.amazon.awssdk:codegen") public final class UpdateTableRequest extends DynamoDbRequest implements ToCopyableBuilder<UpdateTableRequest.Builder,UpdateTableRequest>
Represents the input of an UpdateTable
operation.
Modifier and Type | Class and Description |
---|---|
static interface |
UpdateTableRequest.Builder |
Modifier and Type | Method and Description |
---|---|
List<AttributeDefinition> |
attributeDefinitions()
An array of attributes that describe the key schema for the table and indexes.
|
static UpdateTableRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
List<GlobalSecondaryIndexUpdate> |
globalSecondaryIndexUpdates()
An array of one or more global secondary indexes for the table.
|
int |
hashCode() |
ProvisionedThroughput |
provisionedThroughput()
The new provisioned throughput settings for the specified table or index.
|
static Class<? extends UpdateTableRequest.Builder> |
serializableBuilderClass() |
StreamSpecification |
streamSpecification()
Represents the DynamoDB Streams configuration for the table.
|
String |
tableName()
The name of the table to be updated.
|
UpdateTableRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public List<AttributeDefinition> attributeDefinitions()
An array of attributes that describe the key schema for the table and indexes. If you are adding a new global
secondary index to the table, AttributeDefinitions
must include the key element(s) of the new index.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
AttributeDefinitions
must include the key element(s) of
the new index.public String tableName()
The name of the table to be updated.
public ProvisionedThroughput provisionedThroughput()
The new provisioned throughput settings for the specified table or index.
public List<GlobalSecondaryIndexUpdate> globalSecondaryIndexUpdates()
An array of one or more global secondary indexes for the table. For each index in the array, you can request one action:
Create
- add a new global secondary index to the table.
Update
- modify the provisioned throughput settings of an existing global secondary index.
Delete
- remove a global secondary index from the table.
For more information, see Managing Global Secondary Indexes in the Amazon DynamoDB Developer Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
Create
- add a new global secondary index to the table.
Update
- modify the provisioned throughput settings of an existing global secondary index.
Delete
- remove a global secondary index from the table.
For more information, see Managing Global Secondary Indexes in the Amazon DynamoDB Developer Guide.
public StreamSpecification streamSpecification()
Represents the DynamoDB Streams configuration for the table.
You will receive a ResourceInUseException
if you attempt to enable a stream on a table that already
has a stream, or if you attempt to disable a stream on a table which does not have a stream.
You will receive a ResourceInUseException
if you attempt to enable a stream on a table that
already has a stream, or if you attempt to disable a stream on a table which does not have a stream.
public UpdateTableRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<UpdateTableRequest.Builder,UpdateTableRequest>
toBuilder
in class DynamoDbRequest
public static UpdateTableRequest.Builder builder()
public static Class<? extends UpdateTableRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.