public class LocalSecondaryIndexDescription extends Object implements Serializable
Represents the properties of a secondary index.
Constructor and Description |
---|
LocalSecondaryIndexDescription() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getIndexName()
Represents the name of the secondary index.
|
Long |
getIndexSizeBytes()
Represents the total size of the index, in bytes.
|
Long |
getItemCount()
Represents the number of items in the index.
|
List<KeySchemaElement> |
getKeySchema()
Represents 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
the index.
|
int |
hashCode() |
void |
setIndexName(String indexName)
Represents the name of the secondary index.
|
void |
setIndexSizeBytes(Long indexSizeBytes)
Represents the total size of the index, in bytes.
|
void |
setItemCount(Long itemCount)
Represents the number of items in the index.
|
void |
setKeySchema(Collection<KeySchemaElement> keySchema)
Represents 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
the index.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LocalSecondaryIndexDescription |
withIndexName(String indexName)
Represents the name of the secondary index.
|
LocalSecondaryIndexDescription |
withIndexSizeBytes(Long indexSizeBytes)
Represents the total size of the index, in bytes.
|
LocalSecondaryIndexDescription |
withItemCount(Long itemCount)
Represents the number of items in the index.
|
LocalSecondaryIndexDescription |
withKeySchema(Collection<KeySchemaElement> keySchema)
Represents 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)
Represents 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
the index.
|
public String getIndexName()
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
public void setIndexName(String indexName)
Constraints:
Length: 3 - 255
Pattern: [a-zA-Z0-9_.-]+
indexName
- Represents the name of the secondary index.public LocalSecondaryIndexDescription withIndexName(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
- Represents the name of the secondary index.public List<KeySchemaElement> getKeySchema()
HASH
or
RANGE
).
Constraints:
Length: 1 - 2
HASH
or
RANGE
).public void setKeySchema(Collection<KeySchemaElement> keySchema)
HASH
or
RANGE
).
Constraints:
Length: 1 - 2
keySchema
- Represents 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)
HASH
or
RANGE
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2
keySchema
- Represents 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)
HASH
or
RANGE
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2
keySchema
- Represents the complete index key schema, 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
the index. These are in addition to the primary key attributes and
index key attributes, which are automatically projected.public LocalSecondaryIndexDescription 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
the index. These are in addition to the primary key attributes and
index key attributes, which are automatically projected.public Long getIndexSizeBytes()
public void setIndexSizeBytes(Long indexSizeBytes)
indexSizeBytes
- Represents the total size of the index, in bytes. Amazon DynamoDB
updates this value approximately every six hours. Recent changes might
not be reflected in this value.public LocalSecondaryIndexDescription withIndexSizeBytes(Long indexSizeBytes)
Returns a reference to this object so that method calls can be chained together.
indexSizeBytes
- Represents the total size of the index, in bytes. Amazon DynamoDB
updates this value approximately every six hours. Recent changes might
not be reflected in this value.public Long getItemCount()
public void setItemCount(Long itemCount)
itemCount
- Represents the number of items in the index. Amazon DynamoDB updates
this value approximately every six hours. Recent changes might not be
reflected in this value.public LocalSecondaryIndexDescription withItemCount(Long itemCount)
Returns a reference to this object so that method calls can be chained together.
itemCount
- Represents the number of items in the index. Amazon DynamoDB updates
this value approximately every six hours. Recent changes might not be
reflected in this value.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.