public class CreateGlobalSecondaryIndexAction
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents a new global secondary index to be added to an existing table.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
indexName
The name of the global secondary index to be created.
|
private java.util.List<KeySchemaElement> |
keySchema
The key schema for the global secondary index.
|
private Projection |
projection |
private ProvisionedThroughput |
provisionedThroughput |
Constructor and Description |
---|
CreateGlobalSecondaryIndexAction() |
Modifier and Type | Method and Description |
---|---|
CreateGlobalSecondaryIndexAction |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIndexName()
The name of the global secondary index to be created.
|
java.util.List<KeySchemaElement> |
getKeySchema()
The key schema for the global secondary index.
|
Projection |
getProjection() |
ProvisionedThroughput |
getProvisionedThroughput() |
int |
hashCode() |
void |
setIndexName(java.lang.String indexName)
The name of the global secondary index to be created.
|
void |
setKeySchema(java.util.Collection<KeySchemaElement> keySchema)
The key schema for the global secondary index.
|
void |
setProjection(Projection projection) |
void |
setProvisionedThroughput(ProvisionedThroughput provisionedThroughput) |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateGlobalSecondaryIndexAction |
withIndexName(java.lang.String indexName)
The name of the global secondary index to be created.
|
CreateGlobalSecondaryIndexAction |
withKeySchema(java.util.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) |
CreateGlobalSecondaryIndexAction |
withProvisionedThroughput(ProvisionedThroughput provisionedThroughput) |
private java.lang.String indexName
The name of the global secondary index to be created.
private java.util.List<KeySchemaElement> keySchema
The key schema for the global secondary index.
private Projection projection
private ProvisionedThroughput provisionedThroughput
public void setIndexName(java.lang.String indexName)
The name of the global secondary index to be created.
indexName
- The name of the global secondary index to be created.public java.lang.String getIndexName()
The name of the global secondary index to be created.
public CreateGlobalSecondaryIndexAction withIndexName(java.lang.String indexName)
The name of the global secondary index to be created.
indexName
- The name of the global secondary index to be created.public java.util.List<KeySchemaElement> getKeySchema()
The key schema for the global secondary index.
public void setKeySchema(java.util.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(java.util.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
- public Projection getProjection()
public CreateGlobalSecondaryIndexAction withProjection(Projection projection)
projection
- public void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
provisionedThroughput
- public ProvisionedThroughput getProvisionedThroughput()
public CreateGlobalSecondaryIndexAction withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
provisionedThroughput
- public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateGlobalSecondaryIndexAction clone()
clone
in class java.lang.Object