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()
Represents attributes that are copied (projected) from the table into
an index.
|
ProvisionedThroughput |
getProvisionedThroughput()
Represents the provisioned throughput settings for a specified table
or 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)
Represents attributes that are copied (projected) from the table into
an index.
|
void |
setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for a specified table
or index.
|
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)
Represents attributes that are copied (projected) from the table into
an index.
|
CreateGlobalSecondaryIndexAction |
withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for a specified table
or index.
|
public String getIndexName()
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
public void setIndexName(String indexName)
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
indexName
- The name of the global secondary index to be created.public CreateGlobalSecondaryIndexAction withIndexName(String indexName)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
indexName
- The name of the global secondary index to be created.public List<KeySchemaElement> getKeySchema()
Constraints:
Length: 1 - 2
public void setKeySchema(Collection<KeySchemaElement> keySchema)
Constraints:
Length: 1 - 2
keySchema
- The key schema for the global secondary index.public CreateGlobalSecondaryIndexAction withKeySchema(KeySchemaElement... keySchema)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2
keySchema
- The key schema for the global secondary index.public CreateGlobalSecondaryIndexAction withKeySchema(Collection<KeySchemaElement> keySchema)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2
keySchema
- The key schema for the global secondary index.public Projection getProjection()
public void setProjection(Projection projection)
projection
- Represents attributes that are copied (projected) from the table into
an index. These are in addition to the primary key attributes and
index key attributes, which are automatically projected.public CreateGlobalSecondaryIndexAction withProjection(Projection projection)
Returns a reference to this object so that method calls can be chained together.
projection
- Represents attributes that are copied (projected) from the table into
an index. These are in addition to the primary key attributes and
index key attributes, which are automatically projected.public ProvisionedThroughput getProvisionedThroughput()
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
public void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
provisionedThroughput
- Represents the provisioned throughput settings for a specified table
or index. The settings can be modified using the UpdateTable
operation. For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
public CreateGlobalSecondaryIndexAction withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
Returns a reference to this object so that method calls can be chained together.
provisionedThroughput
- Represents the provisioned throughput settings for a specified table
or index. The settings can be modified using the UpdateTable
operation. For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
public String toString()
toString
in class Object
Object.toString()
public CreateGlobalSecondaryIndexAction clone()
Copyright © 2015. All rights reserved.