public class LocalSecondaryIndexDescription extends Object implements Serializable, Cloneable
Represents the properties of a local secondary index.
Constructor and Description |
---|
LocalSecondaryIndexDescription() |
Modifier and Type | Method and Description |
---|---|
LocalSecondaryIndexDescription |
clone() |
boolean |
equals(Object obj) |
String |
getIndexArn()
The Amazon Resource Name (ARN) that uniquely identifies the index.
|
String |
getIndexName()
Represents the name of the local secondary index.
|
Long |
getIndexSizeBytes()
The total size of the specified index, in bytes.
|
Long |
getItemCount()
The number of items in the specified index.
|
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() |
int |
hashCode() |
void |
setIndexArn(String indexArn)
The Amazon Resource Name (ARN) that uniquely identifies the index.
|
void |
setIndexName(String indexName)
Represents the name of the local secondary index.
|
void |
setIndexSizeBytes(Long indexSizeBytes)
The total size of the specified index, in bytes.
|
void |
setItemCount(Long itemCount)
The number of items in the specified index.
|
void |
setKeySchema(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) |
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LocalSecondaryIndexDescription |
withIndexArn(String indexArn)
The Amazon Resource Name (ARN) that uniquely identifies the index.
|
LocalSecondaryIndexDescription |
withIndexName(String indexName)
Represents the name of the local secondary index.
|
LocalSecondaryIndexDescription |
withIndexSizeBytes(Long indexSizeBytes)
The total size of the specified index, in bytes.
|
LocalSecondaryIndexDescription |
withItemCount(Long itemCount)
The number of items in the specified index.
|
LocalSecondaryIndexDescription |
withKeySchema(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) |
public void setIndexName(String indexName)
Represents the name of the local secondary index.
indexName
- Represents the name of the local secondary index.public String getIndexName()
Represents the name of the local secondary index.
public LocalSecondaryIndexDescription withIndexName(String indexName)
Represents the name of the local secondary index.
indexName
- Represents the name of the local secondary index.public List<KeySchemaElement> getKeySchema()
The complete index key schema, which consists of one or more pairs of
attribute names and key types (HASH
or RANGE
).
HASH
or
RANGE
).public void setKeySchema(Collection<KeySchemaElement> keySchema)
The complete index key schema, which consists of one or more pairs of
attribute names and key types (HASH
or RANGE
).
keySchema
- The complete index key schema, which consists of one or more pairs
of attribute names and key types (HASH
or
RANGE
).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
).
NOTE: This method appends the values to the existing list (if
any). Use setKeySchema(java.util.Collection)
or
withKeySchema(java.util.Collection)
if you want to override the
existing values.
keySchema
- The complete index key schema, which consists of one or more pairs
of attribute names and key types (HASH
or
RANGE
).public LocalSecondaryIndexDescription withKeySchema(Collection<KeySchemaElement> keySchema)
The complete index key schema, which consists of one or more pairs of
attribute names and key types (HASH
or RANGE
).
keySchema
- The complete index key schema, which consists of one or more pairs
of attribute names and key types (HASH
or
RANGE
).public void setProjection(Projection projection)
projection
- public Projection getProjection()
public LocalSecondaryIndexDescription withProjection(Projection projection)
projection
- public void setIndexSizeBytes(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.
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.public 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.
public LocalSecondaryIndexDescription withIndexSizeBytes(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.
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.public void setItemCount(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.
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.public 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.
public LocalSecondaryIndexDescription withItemCount(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.
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.public void setIndexArn(String indexArn)
The Amazon Resource Name (ARN) that uniquely identifies the index.
indexArn
- The Amazon Resource Name (ARN) that uniquely identifies the index.public String getIndexArn()
The Amazon Resource Name (ARN) that uniquely identifies the index.
public LocalSecondaryIndexDescription withIndexArn(String indexArn)
The Amazon Resource Name (ARN) that uniquely identifies the index.
indexArn
- The Amazon Resource Name (ARN) that uniquely identifies the index.public String toString()
toString
in class Object
Object.toString()
public LocalSecondaryIndexDescription clone()
Copyright © 2016. All rights reserved.