Class CreateGlobalSecondaryIndexAction
- java.lang.Object
-
- com.amazonaws.services.dynamodbv2.model.CreateGlobalSecondaryIndexAction
-
- All Implemented Interfaces:
Serializable,Cloneable
public class CreateGlobalSecondaryIndexAction extends Object implements Serializable, Cloneable
Represents a new global secondary index to be added to an existing table.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreateGlobalSecondaryIndexAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateGlobalSecondaryIndexActionclone()booleanequals(Object obj)StringgetIndexName()The name of the global secondary index to be created.List<KeySchemaElement>getKeySchema()The key schema for the global secondary index.ProjectiongetProjection()ProvisionedThroughputgetProvisionedThroughput()inthashCode()voidsetIndexName(String indexName)The name of the global secondary index to be created.voidsetKeySchema(Collection<KeySchemaElement> keySchema)The key schema for the global secondary index.voidsetProjection(Projection projection)voidsetProvisionedThroughput(ProvisionedThroughput provisionedThroughput)StringtoString()Returns a string representation of this object; useful for testing and debugging.CreateGlobalSecondaryIndexActionwithIndexName(String indexName)The name of the global secondary index to be created.CreateGlobalSecondaryIndexActionwithKeySchema(KeySchemaElement... keySchema)The key schema for the global secondary index.CreateGlobalSecondaryIndexActionwithKeySchema(Collection<KeySchemaElement> keySchema)The key schema for the global secondary index.CreateGlobalSecondaryIndexActionwithProjection(Projection projection)CreateGlobalSecondaryIndexActionwithProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
-
-
-
Method Detail
-
setIndexName
public void setIndexName(String indexName)
The name of the global secondary index to be created.
- Parameters:
indexName- The name of the global secondary index to be created.
-
getIndexName
public String getIndexName()
The name of the global secondary index to be created.
- Returns:
- The name of the global secondary index to be created.
-
withIndexName
public CreateGlobalSecondaryIndexAction withIndexName(String indexName)
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
public List<KeySchemaElement> getKeySchema()
The key schema for the global secondary index.
- Returns:
- The key schema for the global secondary index.
-
setKeySchema
public void setKeySchema(Collection<KeySchemaElement> keySchema)
The key schema for the global secondary index.
- Parameters:
keySchema- The key schema for the global secondary index.
-
withKeySchema
public CreateGlobalSecondaryIndexAction withKeySchema(KeySchemaElement... keySchema)
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
public CreateGlobalSecondaryIndexAction withKeySchema(Collection<KeySchemaElement> keySchema)
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
public void setProjection(Projection projection)
- Parameters:
projection-
-
getProjection
public Projection getProjection()
- Returns:
-
withProjection
public CreateGlobalSecondaryIndexAction withProjection(Projection projection)
- Parameters:
projection-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setProvisionedThroughput
public void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
- Parameters:
provisionedThroughput-
-
getProvisionedThroughput
public 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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateGlobalSecondaryIndexAction clone()
-
-