Class LocalSecondaryIndexProps.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.LocalSecondaryIndexProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LocalSecondaryIndexProps>
- Enclosing interface:
- LocalSecondaryIndexProps
@Stability(Stable)
public static final class LocalSecondaryIndexProps.Builder
extends Object
implements software.amazon.jsii.Builder<LocalSecondaryIndexProps>
A builder for
LocalSecondaryIndexProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofSecondaryIndexProps.getIndexName()nonKeyAttributes(List<String> nonKeyAttributes) Sets the value ofSecondaryIndexProps.getNonKeyAttributes()projectionType(ProjectionType projectionType) Sets the value ofSecondaryIndexProps.getProjectionType()Sets the value ofLocalSecondaryIndexProps.getSortKey()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
sortKey
Sets the value ofLocalSecondaryIndexProps.getSortKey()- Parameters:
sortKey- The attribute of a sort key for the local secondary index. This parameter is required.- Returns:
this
-
indexName
Sets the value ofSecondaryIndexProps.getIndexName()- Parameters:
indexName- The name of the secondary index. This parameter is required.- Returns:
this
-
nonKeyAttributes
@Stability(Stable) public LocalSecondaryIndexProps.Builder nonKeyAttributes(List<String> nonKeyAttributes) Sets the value ofSecondaryIndexProps.getNonKeyAttributes()- Parameters:
nonKeyAttributes- The non-key attributes that are projected into the secondary index.- Returns:
this
-
projectionType
@Stability(Stable) public LocalSecondaryIndexProps.Builder projectionType(ProjectionType projectionType) Sets the value ofSecondaryIndexProps.getProjectionType()- Parameters:
projectionType- The set of attributes that are projected into the secondary index.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LocalSecondaryIndexProps>- Returns:
- a new instance of
LocalSecondaryIndexProps - Throws:
NullPointerException- if any required attribute was not provided
-