Class CfnApplication.KinesisStreamsInputProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisanalytics.CfnApplication.KinesisStreamsInputProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnApplication.KinesisStreamsInputProperty>
- Enclosing interface:
CfnApplication.KinesisStreamsInputProperty
@Stability(Stable)
public static final class CfnApplication.KinesisStreamsInputProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnApplication.KinesisStreamsInputProperty>
A builder for
CfnApplication.KinesisStreamsInputProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.resourceArn
(String resourceArn) Sets the value ofCfnApplication.KinesisStreamsInputProperty.getResourceArn()
Sets the value ofCfnApplication.KinesisStreamsInputProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceArn
@Stability(Stable) public CfnApplication.KinesisStreamsInputProperty.Builder resourceArn(String resourceArn) Sets the value ofCfnApplication.KinesisStreamsInputProperty.getResourceArn()
- Parameters:
resourceArn
- ARN of the input Amazon Kinesis stream to read. This parameter is required.- Returns:
this
-
roleArn
@Stability(Stable) public CfnApplication.KinesisStreamsInputProperty.Builder roleArn(String roleArn) Sets the value ofCfnApplication.KinesisStreamsInputProperty.getRoleArn()
- Parameters:
roleArn
- ARN of the IAM role that Amazon Kinesis Analytics can assume to access the stream on your behalf. This parameter is required. You need to grant the necessary permissions to this role.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnApplication.KinesisStreamsInputProperty>
- Returns:
- a new instance of
CfnApplication.KinesisStreamsInputProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-