Class SecondaryIndexProps.Builder
java.lang.Object
software.amazon.awscdk.services.dynamodb.SecondaryIndexProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SecondaryIndexProps>
- Enclosing interface:
SecondaryIndexProps
@Stability(Stable)
public static final class SecondaryIndexProps.Builder
extends Object
implements software.amazon.jsii.Builder<SecondaryIndexProps>
A builder for
SecondaryIndexProps
-
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()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
indexName
Sets the value ofSecondaryIndexProps.getIndexName()
- Parameters:
indexName
- The name of the secondary index. This parameter is required.- Returns:
this
-
nonKeyAttributes
@Stability(Stable) public SecondaryIndexProps.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
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:
build
in interfacesoftware.amazon.jsii.Builder<SecondaryIndexProps>
- Returns:
- a new instance of
SecondaryIndexProps
- Throws:
NullPointerException
- if any required attribute was not provided
-