com.amazonaws.services.dynamodbv2.model
Class GlobalSecondaryIndex

java.lang.Object
  extended by com.amazonaws.services.dynamodbv2.model.GlobalSecondaryIndex
All Implemented Interfaces:
java.io.Serializable

public class GlobalSecondaryIndex
extends java.lang.Object
implements java.io.Serializable

Represents a global secondary index.

See Also:
Serialized Form

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

GlobalSecondaryIndex

public GlobalSecondaryIndex()
Method Detail

getIndexName

public java.lang.String getIndexName()
The name of the global secondary index. The name must be unique among all other indexes on this table.

Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+

Returns:
The name of the global secondary index. The name must be unique among all other indexes on this table.

setIndexName

public void setIndexName(java.lang.String indexName)
The name of the global secondary index. The name must be unique among all other indexes on this table.

Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+

Parameters:
indexName - The name of the global secondary index. The name must be unique among all other indexes on this table.

withIndexName

public GlobalSecondaryIndex withIndexName(java.lang.String indexName)
The name of the global secondary index. The name must be unique among all other indexes on this table.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+

Parameters:
indexName - The name of the global secondary index. The name must be unique among all other indexes on this table.
Returns:
A reference to this updated object so that method calls can be chained together.

getKeySchema

public 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).

Constraints:
Length: 1 - 2

Returns:
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).

setKeySchema

public 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).

Constraints:
Length: 1 - 2

Parameters:
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).

withKeySchema

public 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).

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 2

Parameters:
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).
Returns:
A reference to this updated object so that method calls can be chained together.

withKeySchema

public 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).

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 2

Parameters:
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).
Returns:
A reference to this updated object so that method calls can be chained together.

getProjection

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.

Returns:
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.

setProjection

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.

Parameters:
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.

withProjection

public GlobalSecondaryIndex 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.

Parameters:
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 updated object so that method calls can be chained together.

getProvisionedThroughput

public ProvisionedThroughput getProvisionedThroughput()
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.

Returns:
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.


setProvisionedThroughput

public void setProvisionedThroughput(ProvisionedThroughput 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.

Parameters:
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.


withProvisionedThroughput

public GlobalSecondaryIndex withProvisionedThroughput(ProvisionedThroughput 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.

Returns a reference to this object so that method calls can be chained together.

Parameters:
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.

Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.