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