com.amazonaws.services.dynamodbv2.model
Class LocalSecondaryIndexDescription

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

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

Represents the properties of a local secondary index.

See Also:
Serialized Form

Constructor Summary
LocalSecondaryIndexDescription()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getIndexName()
          Represents the name of the local secondary index.
 java.lang.Long getIndexSizeBytes()
          The total size of the specified index, in bytes.
 java.lang.Long getItemCount()
          The number of items in the specified index.
 java.util.List<KeySchemaElement> getKeySchema()
          The complete index key schema, 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.
 int hashCode()
           
 void setIndexName(java.lang.String indexName)
          Represents the name of the local secondary index.
 void setIndexSizeBytes(java.lang.Long indexSizeBytes)
          The total size of the specified index, in bytes.
 void setItemCount(java.lang.Long itemCount)
          The number of items in the specified index.
 void setKeySchema(java.util.Collection<KeySchemaElement> keySchema)
          The complete index key schema, 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.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 LocalSecondaryIndexDescription withIndexName(java.lang.String indexName)
          Represents the name of the local secondary index.
 LocalSecondaryIndexDescription withIndexSizeBytes(java.lang.Long indexSizeBytes)
          The total size of the specified index, in bytes.
 LocalSecondaryIndexDescription withItemCount(java.lang.Long itemCount)
          The number of items in the specified index.
 LocalSecondaryIndexDescription withKeySchema(java.util.Collection<KeySchemaElement> keySchema)
          The complete index key schema, which consists of one or more pairs of attribute names and key types (HASH or RANGE).
 LocalSecondaryIndexDescription withKeySchema(KeySchemaElement... keySchema)
          The complete index key schema, which consists of one or more pairs of attribute names and key types (HASH or RANGE).
 LocalSecondaryIndexDescription withProjection(Projection projection)
          Represents attributes that are copied (projected) from the table into an index.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalSecondaryIndexDescription

public LocalSecondaryIndexDescription()
Method Detail

getIndexName

public java.lang.String getIndexName()
Represents the name of the local secondary index.

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

Returns:
Represents the name of the local secondary index.

setIndexName

public void setIndexName(java.lang.String indexName)
Represents the name of the local secondary index.

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

Parameters:
indexName - Represents the name of the local secondary index.

withIndexName

public LocalSecondaryIndexDescription withIndexName(java.lang.String indexName)
Represents the name of the local secondary index.

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 - Represents the name of the local secondary index.
Returns:
A reference to this updated object so that method calls can be chained together.

getKeySchema

public java.util.List<KeySchemaElement> getKeySchema()
The complete index key schema, which consists of one or more pairs of attribute names and key types (HASH or RANGE).

Constraints:
Length: 1 - 2

Returns:
The complete index key schema, 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 index key schema, which consists of one or more pairs of attribute names and key types (HASH or RANGE).

Constraints:
Length: 1 - 2

Parameters:
keySchema - The complete index key schema, which consists of one or more pairs of attribute names and key types (HASH or RANGE).

withKeySchema

public LocalSecondaryIndexDescription withKeySchema(KeySchemaElement... keySchema)
The complete index key schema, 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 index key schema, 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 LocalSecondaryIndexDescription withKeySchema(java.util.Collection<KeySchemaElement> keySchema)
The complete index key schema, 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 index key schema, 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 LocalSecondaryIndexDescription 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.

getIndexSizeBytes

public java.lang.Long getIndexSizeBytes()
The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

Returns:
The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

setIndexSizeBytes

public void setIndexSizeBytes(java.lang.Long indexSizeBytes)
The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

Parameters:
indexSizeBytes - The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

withIndexSizeBytes

public LocalSecondaryIndexDescription withIndexSizeBytes(java.lang.Long indexSizeBytes)
The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

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

Parameters:
indexSizeBytes - The total size of the specified index, in bytes. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
Returns:
A reference to this updated object so that method calls can be chained together.

getItemCount

public java.lang.Long getItemCount()
The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

Returns:
The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

setItemCount

public void setItemCount(java.lang.Long itemCount)
The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

Parameters:
itemCount - The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

withItemCount

public LocalSecondaryIndexDescription withItemCount(java.lang.Long itemCount)
The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.

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

Parameters:
itemCount - The number of items in the specified index. DynamoDB updates this value approximately every six hours. Recent changes might not be reflected in this value.
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.