|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.dynamodbv2.model.LocalSecondaryIndexDescription
public class LocalSecondaryIndexDescription
Represents the properties of a local secondary index.
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 |
---|
public LocalSecondaryIndexDescription()
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
- Represents the name of the local secondary index.public LocalSecondaryIndexDescription 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
- Represents the name of the local secondary index.
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 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
- The complete index key schema, which consists of one or more pairs of
attribute names and key types (HASH
or
RANGE
).
public LocalSecondaryIndexDescription 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 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
an 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
an index. These are in addition to the primary key attributes and
index key attributes, which are automatically projected.
public java.lang.Long getIndexSizeBytes()
public void setIndexSizeBytes(java.lang.Long indexSizeBytes)
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 LocalSecondaryIndexDescription withIndexSizeBytes(java.lang.Long indexSizeBytes)
Returns a reference to this object so that method calls can be chained together.
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 java.lang.Long getItemCount()
public void setItemCount(java.lang.Long itemCount)
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 LocalSecondaryIndexDescription withItemCount(java.lang.Long itemCount)
Returns a reference to this object so that method calls can be chained together.
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 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 |