public class CreateGlobalSecondaryIndexAction
extends java.lang.Object
implements java.io.Serializable
Represents a new global secondary index to be added to an existing table.
Constructor and Description |
---|
CreateGlobalSecondaryIndexAction() |
Modifier and Type | Method and Description |
---|---|
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()
Represents attributes that are copied (projected) from the table into an
index.
|
ProvisionedThroughput |
getProvisionedThroughput()
Represents the provisioned throughput settings for the specified global
secondary index.
|
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)
Represents attributes that are copied (projected) from the table into an
index.
|
void |
setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for the specified global
secondary index.
|
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)
Represents attributes that are copied (projected) from the table into an
index.
|
CreateGlobalSecondaryIndexAction |
withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for the specified global
secondary index.
|
public java.lang.String getIndexName()
The name of the global secondary index to be created.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
The name of the global secondary index to be created.
public void setIndexName(java.lang.String indexName)
The name of the global secondary index to be created.
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
indexName
- 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.
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 java.util.List<KeySchemaElement> getKeySchema()
The key schema for the global secondary index.
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.
Returns a reference to this object so that method calls can be chained together.
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.
Returns a reference to this object so that method calls can be chained together.
keySchema
- The key schema for the global secondary index.
public Projection getProjection()
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.
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 void setProjection(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.
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)
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.
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()
Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
public void setProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
provisionedThroughput
- Represents the provisioned throughput settings for the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
public CreateGlobalSecondaryIndexAction withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for the specified global secondary index.
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 the specified global secondary index.
For current minimum and maximum provisioned throughput values, see Limits in the Amazon DynamoDB Developer Guide.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.