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 CreateGlobalSecondaryIndexAction
clone()
boolean
equals(Object obj)
String
getIndexName()
The name of the global secondary index to be created.List<KeySchemaElement>
getKeySchema()
The key schema for the global secondary index.Projection
getProjection()
ProvisionedThroughput
getProvisionedThroughput()
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)
String
toString()
Returns a string representation of this object; useful for testing and debugging.CreateGlobalSecondaryIndexAction
withIndexName(String indexName)
The name of the global secondary index to be created.CreateGlobalSecondaryIndexAction
withKeySchema(KeySchemaElement... keySchema)
The key schema for the global secondary index.CreateGlobalSecondaryIndexAction
withKeySchema(Collection<KeySchemaElement> keySchema)
The key schema for the global secondary index.CreateGlobalSecondaryIndexAction
withProjection(Projection projection)
CreateGlobalSecondaryIndexAction
withProvisionedThroughput(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public CreateGlobalSecondaryIndexAction clone()
-
-