public class CreateGlobalSecondaryIndexAction extends Object implements Serializable, Cloneable
Represents a new global secondary index to be added to an existing table.
Constructor and Description |
---|
CreateGlobalSecondaryIndexAction() |
Modifier and Type | Method and 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()
Returns the value of the Projection property for this object.
|
ProvisionedThroughput |
getProvisionedThroughput()
Returns the value of the ProvisionedThroughput property for this object.
|
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)
Sets the value of the Projection property for this object.
|
void |
setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Sets the value of the ProvisionedThroughput property for this object.
|
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(Collection<KeySchemaElement> keySchema)
The key schema for the global secondary index.
|
CreateGlobalSecondaryIndexAction |
withKeySchema(KeySchemaElement... keySchema)
The key schema for the global secondary index.
|
CreateGlobalSecondaryIndexAction |
withProjection(Projection projection)
Sets the value of the Projection property for this object.
|
CreateGlobalSecondaryIndexAction |
withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Sets the value of the ProvisionedThroughput property for this object.
|
public void setIndexName(String indexName)
The name of the global secondary index to be created.
indexName
- The name of the global secondary index to be created.public String getIndexName()
The name of the global secondary index to be created.
public CreateGlobalSecondaryIndexAction withIndexName(String indexName)
The name of the global secondary index to be created.
indexName
- The name of the global secondary index to be created.public List<KeySchemaElement> getKeySchema()
The key schema for the global secondary index.
public void setKeySchema(Collection<KeySchemaElement> keySchema)
The key schema for the global secondary index.
keySchema
- The key schema for the global secondary index.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)
or
withKeySchema(java.util.Collection)
if you want to override the
existing values.
keySchema
- The key schema for the global secondary index.public CreateGlobalSecondaryIndexAction withKeySchema(Collection<KeySchemaElement> keySchema)
The key schema for the global secondary index.
keySchema
- The key schema for the global secondary index.public void setProjection(Projection projection)
projection
- The new value for the Projection property for this object.public Projection getProjection()
public CreateGlobalSecondaryIndexAction withProjection(Projection projection)
projection
- The new value for the Projection property for this object.public void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
provisionedThroughput
- The new value for the ProvisionedThroughput property for this
object.public ProvisionedThroughput getProvisionedThroughput()
public CreateGlobalSecondaryIndexAction withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
provisionedThroughput
- The new value for the ProvisionedThroughput property for this
object.public String toString()
toString
in class Object
Object.toString()
public CreateGlobalSecondaryIndexAction clone()
Copyright © 2015. All rights reserved.