public class LocalSecondaryIndex
extends java.lang.Object
implements java.io.Serializable
Represents a local secondary index.
| コンストラクタと説明 |
|---|
LocalSecondaryIndex() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getIndexName()
Represents the name of the secondary index.
|
java.util.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(java.lang.String indexName)
Represents the name of the secondary index.
|
void |
setKeySchema(java.util.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.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
LocalSecondaryIndex |
withIndexName(java.lang.String indexName)
Represents the name of the secondary index.
|
LocalSecondaryIndex |
withKeySchema(java.util.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). |
LocalSecondaryIndex |
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). |
LocalSecondaryIndex |
withProjection(Projection projection)
Represents attributes that are copied (projected) from the table into
the index.
|
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 secondary index. The name must be unique
among all other indexes on this table.public LocalSecondaryIndex 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 secondary index. The name must be unique
among all other indexes on this table.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 - Represents the complete index key schema, which consists of one or
more pairs of attribute names and key types (HASH or
RANGE).public LocalSecondaryIndex 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 LocalSecondaryIndex 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 - 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 LocalSecondaryIndex 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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object