Class CfnSimpleTable.PrimaryKeyProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sam.CfnSimpleTable.PrimaryKeyProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSimpleTable.PrimaryKeyProperty>
- Enclosing interface:
CfnSimpleTable.PrimaryKeyProperty
@Stability(Stable)
public static final class CfnSimpleTable.PrimaryKeyProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSimpleTable.PrimaryKeyProperty>
A builder for
CfnSimpleTable.PrimaryKeyProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnSimpleTable.PrimaryKeyProperty.getName()
Sets the value ofCfnSimpleTable.PrimaryKeyProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
type
Sets the value ofCfnSimpleTable.PrimaryKeyProperty.getType()
- Parameters:
type
- the value to be set. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnSimpleTable.PrimaryKeyProperty.getName()
- Parameters:
name
- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnSimpleTable.PrimaryKeyProperty>
- Returns:
- a new instance of
CfnSimpleTable.PrimaryKeyProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-