Class KinesisStreamProps.Builder
java.lang.Object
software.amazon.awscdk.services.events.targets.KinesisStreamProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<KinesisStreamProps>
- Enclosing interface:
- KinesisStreamProps
@Stability(Stable)
public static final class KinesisStreamProps.Builder
extends Object
implements software.amazon.jsii.Builder<KinesisStreamProps>
A builder for
KinesisStreamProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.message(RuleTargetInput message) Sets the value ofKinesisStreamProps.getMessage()partitionKeyPath(String partitionKeyPath) Sets the value ofKinesisStreamProps.getPartitionKeyPath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
message
Sets the value ofKinesisStreamProps.getMessage()- Parameters:
message- The message to send to the stream. Must be a valid JSON text passed to the target stream.- Returns:
this
-
partitionKeyPath
Sets the value ofKinesisStreamProps.getPartitionKeyPath()- Parameters:
partitionKeyPath- Partition Key Path for records sent to this stream.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<KinesisStreamProps>- Returns:
- a new instance of
KinesisStreamProps - Throws:
NullPointerException- if any required attribute was not provided
-