Class CreateGlobalSecondaryIndexAction
java.lang.Object
com.amazonaws.services.dynamodbv2.model.CreateGlobalSecondaryIndexAction
- All Implemented Interfaces:
Serializable
,Cloneable
Represents a new global secondary index to be added to an existing table.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The name of the global secondary index to be created.The key schema for the global secondary index.int
hashCode()
void
setIndexName
(String indexName) The name of the global secondary index to be created.void
setKeySchema
(Collection<KeySchemaElement> keySchema) The key schema for the global secondary index.void
setProjection
(Projection projection) void
setProvisionedThroughput
(ProvisionedThroughput provisionedThroughput) toString()
Returns a string representation of this object; useful for testing and debugging.withIndexName
(String indexName) The name of the global secondary index to be created.withKeySchema
(KeySchemaElement... keySchema) The key schema for the global secondary index.withKeySchema
(Collection<KeySchemaElement> keySchema) The key schema for the global secondary index.withProjection
(Projection projection) withProvisionedThroughput
(ProvisionedThroughput provisionedThroughput)
-
Constructor Details
-
CreateGlobalSecondaryIndexAction
public CreateGlobalSecondaryIndexAction()
-
-
Method Details
-
setIndexName
The name of the global secondary index to be created.
- Parameters:
indexName
- The name of the global secondary index to be created.
-
getIndexName
The name of the global secondary index to be created.
- Returns:
- The name of the global secondary index to be created.
-
withIndexName
The name of the global secondary index to be created.
- Parameters:
indexName
- The name of the global secondary index to be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getKeySchema
The key schema for the global secondary index.
- Returns:
- The key schema for the global secondary index.
-
setKeySchema
The key schema for the global secondary index.
- Parameters:
keySchema
- The key schema for the global secondary index.
-
withKeySchema
The key schema for the global secondary index.
NOTE: This method appends the values to the existing list (if any). Use
setKeySchema(java.util.Collection)
orwithKeySchema(java.util.Collection)
if you want to override the existing values.- Parameters:
keySchema
- The key schema for the global secondary index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withKeySchema
The key schema for the global secondary index.
- Parameters:
keySchema
- The key schema for the global secondary index.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProjection
- Parameters:
projection
-
-
getProjection
- Returns:
-
withProjection
- Parameters:
projection
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProvisionedThroughput
- Parameters:
provisionedThroughput
-
-
getProvisionedThroughput
- Returns:
-
withProvisionedThroughput
public CreateGlobalSecondaryIndexAction withProvisionedThroughput(ProvisionedThroughput provisionedThroughput) - Parameters:
provisionedThroughput
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-