Class CfnStreamConsumerProps.Builder
java.lang.Object
software.amazon.awscdk.services.kinesis.CfnStreamConsumerProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnStreamConsumerProps>
- Enclosing interface:
CfnStreamConsumerProps
@Stability(Stable)
public static final class CfnStreamConsumerProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnStreamConsumerProps>
A builder for
CfnStreamConsumerProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.consumerName(String consumerName) Sets the value ofCfnStreamConsumerProps.getConsumerName()Sets the value ofCfnStreamConsumerProps.getStreamArn()Sets the value ofCfnStreamConsumerProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
consumerName
Sets the value ofCfnStreamConsumerProps.getConsumerName()- Parameters:
consumerName- The name of the consumer is something you choose when you register the consumer. This parameter is required.- Returns:
this
-
streamArn
Sets the value ofCfnStreamConsumerProps.getStreamArn()- Parameters:
streamArn- The ARN of the stream with which you registered the consumer. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnStreamConsumerProps.getTags()- Parameters:
tags- An array of tags to be added to a specified Kinesis resource. A tag consists of a required key and an optional value. You can specify up to 50 tag key-value pairs.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnStreamConsumerProps>- Returns:
- a new instance of
CfnStreamConsumerProps - Throws:
NullPointerException- if any required attribute was not provided
-