Class CfnTopicRule.DynamoDBActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnTopicRule.DynamoDBActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicRule.DynamoDBActionProperty>
- Enclosing interface:
CfnTopicRule.DynamoDBActionProperty
@Stability(Stable)
public static final class CfnTopicRule.DynamoDBActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicRule.DynamoDBActionProperty>
A builder for
CfnTopicRule.DynamoDBActionProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.hashKeyField
(String hashKeyField) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getHashKeyField()
hashKeyType
(String hashKeyType) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getHashKeyType()
hashKeyValue
(String hashKeyValue) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getHashKeyValue()
payloadField
(String payloadField) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getPayloadField()
rangeKeyField
(String rangeKeyField) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getRangeKeyField()
rangeKeyType
(String rangeKeyType) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getRangeKeyType()
rangeKeyValue
(String rangeKeyValue) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getRangeKeyValue()
Sets the value ofCfnTopicRule.DynamoDBActionProperty.getRoleArn()
Sets the value ofCfnTopicRule.DynamoDBActionProperty.getTableName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hashKeyField
@Stability(Stable) public CfnTopicRule.DynamoDBActionProperty.Builder hashKeyField(String hashKeyField) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getHashKeyField()
- Parameters:
hashKeyField
- The hash key name. This parameter is required.- Returns:
this
-
hashKeyValue
@Stability(Stable) public CfnTopicRule.DynamoDBActionProperty.Builder hashKeyValue(String hashKeyValue) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getHashKeyValue()
- Parameters:
hashKeyValue
- The hash key value. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnTopicRule.DynamoDBActionProperty.getRoleArn()
- Parameters:
roleArn
- The ARN of the IAM role that grants access to the DynamoDB table. This parameter is required.- Returns:
this
-
tableName
Sets the value ofCfnTopicRule.DynamoDBActionProperty.getTableName()
- Parameters:
tableName
- The name of the DynamoDB table. This parameter is required.- Returns:
this
-
hashKeyType
@Stability(Stable) public CfnTopicRule.DynamoDBActionProperty.Builder hashKeyType(String hashKeyType) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getHashKeyType()
- Parameters:
hashKeyType
- The hash key type. Valid values are "STRING" or "NUMBER"- Returns:
this
-
payloadField
@Stability(Stable) public CfnTopicRule.DynamoDBActionProperty.Builder payloadField(String payloadField) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getPayloadField()
- Parameters:
payloadField
- The action payload. This name can be customized.- Returns:
this
-
rangeKeyField
@Stability(Stable) public CfnTopicRule.DynamoDBActionProperty.Builder rangeKeyField(String rangeKeyField) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getRangeKeyField()
- Parameters:
rangeKeyField
- The range key name.- Returns:
this
-
rangeKeyType
@Stability(Stable) public CfnTopicRule.DynamoDBActionProperty.Builder rangeKeyType(String rangeKeyType) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getRangeKeyType()
- Parameters:
rangeKeyType
- The range key type. Valid values are "STRING" or "NUMBER"- Returns:
this
-
rangeKeyValue
@Stability(Stable) public CfnTopicRule.DynamoDBActionProperty.Builder rangeKeyValue(String rangeKeyValue) Sets the value ofCfnTopicRule.DynamoDBActionProperty.getRangeKeyValue()
- Parameters:
rangeKeyValue
- The range key value.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicRule.DynamoDBActionProperty>
- Returns:
- a new instance of
CfnTopicRule.DynamoDBActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-