|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.dynamodbv2.model.GlobalSecondaryIndex
public class GlobalSecondaryIndex
Represents a global secondary index.
Constructor Summary | |
---|---|
GlobalSecondaryIndex()
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getIndexName()
The name of the global secondary index. |
java.util.List<KeySchemaElement> |
getKeySchema()
The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types ( HASH or RANGE ). |
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(java.lang.String indexName)
The name of the global secondary index. |
void |
setKeySchema(java.util.Collection<KeySchemaElement> keySchema)
The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types ( HASH or RANGE ). |
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. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and debugging. |
GlobalSecondaryIndex |
withIndexName(java.lang.String indexName)
The name of the global secondary index. |
GlobalSecondaryIndex |
withKeySchema(java.util.Collection<KeySchemaElement> keySchema)
The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types ( HASH or RANGE ). |
GlobalSecondaryIndex |
withKeySchema(KeySchemaElement... keySchema)
The complete key schema for a global secondary index, which consists of one or more pairs of attribute names and key types ( HASH or RANGE ). |
GlobalSecondaryIndex |
withProjection(Projection projection)
Represents attributes that are copied (projected) from the table into an index. |
GlobalSecondaryIndex |
withProvisionedThroughput(ProvisionedThroughput provisionedThroughput)
Represents the provisioned throughput settings for a specified table or index. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GlobalSecondaryIndex()
Method Detail |
---|
public java.lang.String getIndexName()
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
public void setIndexName(java.lang.String indexName)
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
indexName
- The name of the global secondary index. The name must be unique among
all other indexes on this table.public GlobalSecondaryIndex withIndexName(java.lang.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. The name must be unique among
all other indexes on this table.
public java.util.List<KeySchemaElement> getKeySchema()
HASH
or RANGE
).
Constraints:
Length: 1 - 2
HASH
or RANGE
).public void setKeySchema(java.util.Collection<KeySchemaElement> keySchema)
HASH
or RANGE
).
Constraints:
Length: 1 - 2
keySchema
- The complete key schema for a global secondary index, which consists
of one or more pairs of attribute names and key types
(HASH
or RANGE
).public GlobalSecondaryIndex withKeySchema(KeySchemaElement... keySchema)
HASH
or RANGE
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2
keySchema
- The complete key schema for a global secondary index, which consists
of one or more pairs of attribute names and key types
(HASH
or RANGE
).
public GlobalSecondaryIndex withKeySchema(java.util.Collection<KeySchemaElement> keySchema)
HASH
or RANGE
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2
keySchema
- The complete key schema for a global secondary index, which consists
of one or more pairs of attribute names and key types
(HASH
or RANGE
).
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 GlobalSecondaryIndex 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 GlobalSecondaryIndex 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 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
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |