@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Projection extends Object implements Serializable, Cloneable, StructuredPojo
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.
Constructor and Description |
---|
Projection() |
Modifier and Type | Method and Description |
---|---|
Projection |
clone() |
boolean |
equals(Object obj) |
List<String> |
getNonKeyAttributes()
Represents the non-key attribute names which will be projected into the index.
|
String |
getProjectionType()
The set of attributes that are projected into the index:
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setNonKeyAttributes(Collection<String> nonKeyAttributes)
Represents the non-key attribute names which will be projected into the index.
|
void |
setProjectionType(ProjectionType projectionType)
The set of attributes that are projected into the index:
|
void |
setProjectionType(String projectionType)
The set of attributes that are projected into the index:
|
String |
toString()
Returns a string representation of this object.
|
Projection |
withNonKeyAttributes(Collection<String> nonKeyAttributes)
Represents the non-key attribute names which will be projected into the index.
|
Projection |
withNonKeyAttributes(String... nonKeyAttributes)
Represents the non-key attribute names which will be projected into the index.
|
Projection |
withProjectionType(ProjectionType projectionType)
The set of attributes that are projected into the index:
|
Projection |
withProjectionType(String projectionType)
The set of attributes that are projected into the index:
|
public void setProjectionType(String projectionType)
The set of attributes that are projected into the index:
KEYS_ONLY
- Only the index and primary keys are projected into the index.
INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary index
will include other non-key attributes that you specify.
ALL
- All of the table attributes are projected into the index.
projectionType
- The set of attributes that are projected into the index:
KEYS_ONLY
- Only the index and primary keys are projected into the index.
INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary
index will include other non-key attributes that you specify.
ALL
- All of the table attributes are projected into the index.
ProjectionType
public String getProjectionType()
The set of attributes that are projected into the index:
KEYS_ONLY
- Only the index and primary keys are projected into the index.
INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary index
will include other non-key attributes that you specify.
ALL
- All of the table attributes are projected into the index.
KEYS_ONLY
- Only the index and primary keys are projected into the index.
INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary
index will include other non-key attributes that you specify.
ALL
- All of the table attributes are projected into the index.
ProjectionType
public Projection withProjectionType(String projectionType)
The set of attributes that are projected into the index:
KEYS_ONLY
- Only the index and primary keys are projected into the index.
INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary index
will include other non-key attributes that you specify.
ALL
- All of the table attributes are projected into the index.
projectionType
- The set of attributes that are projected into the index:
KEYS_ONLY
- Only the index and primary keys are projected into the index.
INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary
index will include other non-key attributes that you specify.
ALL
- All of the table attributes are projected into the index.
ProjectionType
public void setProjectionType(ProjectionType projectionType)
The set of attributes that are projected into the index:
KEYS_ONLY
- Only the index and primary keys are projected into the index.
INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary index
will include other non-key attributes that you specify.
ALL
- All of the table attributes are projected into the index.
projectionType
- The set of attributes that are projected into the index:
KEYS_ONLY
- Only the index and primary keys are projected into the index.
INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary
index will include other non-key attributes that you specify.
ALL
- All of the table attributes are projected into the index.
ProjectionType
public Projection withProjectionType(ProjectionType projectionType)
The set of attributes that are projected into the index:
KEYS_ONLY
- Only the index and primary keys are projected into the index.
INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary index
will include other non-key attributes that you specify.
ALL
- All of the table attributes are projected into the index.
projectionType
- The set of attributes that are projected into the index:
KEYS_ONLY
- Only the index and primary keys are projected into the index.
INCLUDE
- In addition to the attributes described in KEYS_ONLY
, the secondary
index will include other non-key attributes that you specify.
ALL
- All of the table attributes are projected into the index.
ProjectionType
public List<String> getNonKeyAttributes()
Represents the non-key attribute names which will be projected into the index.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the local
secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts
as two distinct attributes when determining the total.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the
local secondary indexes, must not exceed 100. If you project the same attribute into two different
indexes, this counts as two distinct attributes when determining the total.
public void setNonKeyAttributes(Collection<String> nonKeyAttributes)
Represents the non-key attribute names which will be projected into the index.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the local
secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts
as two distinct attributes when determining the total.
nonKeyAttributes
- Represents the non-key attribute names which will be projected into the index.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the
local secondary indexes, must not exceed 100. If you project the same attribute into two different
indexes, this counts as two distinct attributes when determining the total.
public Projection withNonKeyAttributes(String... nonKeyAttributes)
Represents the non-key attribute names which will be projected into the index.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the local
secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts
as two distinct attributes when determining the total.
NOTE: This method appends the values to the existing list (if any). Use
setNonKeyAttributes(java.util.Collection)
or withNonKeyAttributes(java.util.Collection)
if you
want to override the existing values.
nonKeyAttributes
- Represents the non-key attribute names which will be projected into the index.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the
local secondary indexes, must not exceed 100. If you project the same attribute into two different
indexes, this counts as two distinct attributes when determining the total.
public Projection withNonKeyAttributes(Collection<String> nonKeyAttributes)
Represents the non-key attribute names which will be projected into the index.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the local
secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts
as two distinct attributes when determining the total.
nonKeyAttributes
- Represents the non-key attribute names which will be projected into the index.
For local secondary indexes, the total count of NonKeyAttributes
summed across all of the
local secondary indexes, must not exceed 100. If you project the same attribute into two different
indexes, this counts as two distinct attributes when determining the total.
public String toString()
toString
in class Object
Object.toString()
public Projection clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2022. All rights reserved.