Class CfnDeliveryStream.MSKSourceConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.CfnDeliveryStream.MSKSourceConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryStream.MSKSourceConfigurationProperty>
- Enclosing interface:
CfnDeliveryStream.MSKSourceConfigurationProperty
@Stability(Stable)
public static final class CfnDeliveryStream.MSKSourceConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryStream.MSKSourceConfigurationProperty>
A builder for
CfnDeliveryStream.MSKSourceConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionauthenticationConfiguration
(IResolvable authenticationConfiguration) authenticationConfiguration
(CfnDeliveryStream.AuthenticationConfigurationProperty authenticationConfiguration) build()
Builds the configured instance.mskClusterArn
(String mskClusterArn) Sets the value ofCfnDeliveryStream.MSKSourceConfigurationProperty.getMskClusterArn()
readFromTimestamp
(String readFromTimestamp) Sets the value ofCfnDeliveryStream.MSKSourceConfigurationProperty.getReadFromTimestamp()
Sets the value ofCfnDeliveryStream.MSKSourceConfigurationProperty.getTopicName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authenticationConfiguration
@Stability(Stable) public CfnDeliveryStream.MSKSourceConfigurationProperty.Builder authenticationConfiguration(IResolvable authenticationConfiguration) - Parameters:
authenticationConfiguration
- The authentication configuration of the Amazon MSK cluster. This parameter is required.- Returns:
this
-
authenticationConfiguration
@Stability(Stable) public CfnDeliveryStream.MSKSourceConfigurationProperty.Builder authenticationConfiguration(CfnDeliveryStream.AuthenticationConfigurationProperty authenticationConfiguration) - Parameters:
authenticationConfiguration
- The authentication configuration of the Amazon MSK cluster. This parameter is required.- Returns:
this
-
mskClusterArn
@Stability(Stable) public CfnDeliveryStream.MSKSourceConfigurationProperty.Builder mskClusterArn(String mskClusterArn) Sets the value ofCfnDeliveryStream.MSKSourceConfigurationProperty.getMskClusterArn()
- Parameters:
mskClusterArn
- The ARN of the Amazon MSK cluster. This parameter is required.- Returns:
this
-
topicName
@Stability(Stable) public CfnDeliveryStream.MSKSourceConfigurationProperty.Builder topicName(String topicName) Sets the value ofCfnDeliveryStream.MSKSourceConfigurationProperty.getTopicName()
- Parameters:
topicName
- The topic name within the Amazon MSK cluster. This parameter is required.- Returns:
this
-
readFromTimestamp
@Stability(Stable) public CfnDeliveryStream.MSKSourceConfigurationProperty.Builder readFromTimestamp(String readFromTimestamp) Sets the value ofCfnDeliveryStream.MSKSourceConfigurationProperty.getReadFromTimestamp()
- Parameters:
readFromTimestamp
- The start date and time in UTC for the offset position within your MSK topic from where Firehose begins to read. By default, this is set to timestamp when Firehose becomes Active.If you want to create a Firehose stream with Earliest start position from SDK or CLI, you need to set the
ReadFromTimestamp
parameter to Epoch (1970-01-01T00:00:00Z).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeliveryStream.MSKSourceConfigurationProperty>
- Returns:
- a new instance of
CfnDeliveryStream.MSKSourceConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-