Class CommonDestinationProps.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.CommonDestinationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CommonDestinationProps>
- Enclosing interface:
CommonDestinationProps
@Stability(Stable)
public static final class CommonDestinationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CommonDestinationProps>
A builder for
CommonDestinationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.loggingConfig(ILoggingConfig loggingConfig) Sets the value ofCommonDestinationProps.getLoggingConfig()processor(IDataProcessor processor) Deprecated.Use `processors` instead.processors(List<? extends IDataProcessor> processors) Sets the value ofCommonDestinationProps.getProcessors()Sets the value ofCommonDestinationProps.getRole()s3Backup(DestinationS3BackupProps s3Backup) Sets the value ofCommonDestinationProps.getS3Backup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
loggingConfig
@Stability(Stable) public CommonDestinationProps.Builder loggingConfig(ILoggingConfig loggingConfig) Sets the value ofCommonDestinationProps.getLoggingConfig()- Parameters:
loggingConfig- Configuration that determines whether to log errors during data transformation or delivery failures, and specifies the CloudWatch log group for storing error logs.- Returns:
this
-
processor
@Stability(Deprecated) @Deprecated public CommonDestinationProps.Builder processor(IDataProcessor processor) Deprecated.Use `processors` instead.Sets the value ofCommonDestinationProps.getProcessor()- Parameters:
processor- The data transformation that should be performed on the data before writing to the destination.- Returns:
this
-
processors
@Stability(Stable) public CommonDestinationProps.Builder processors(List<? extends IDataProcessor> processors) Sets the value ofCommonDestinationProps.getProcessors()- Parameters:
processors- The data transformation that should be performed on the data before writing to the destination.- Returns:
this
-
role
Sets the value ofCommonDestinationProps.getRole()- Parameters:
role- The IAM role associated with this destination. Assumed by Amazon Data Firehose to invoke processors and write to destinations- Returns:
this
-
s3Backup
@Stability(Stable) public CommonDestinationProps.Builder s3Backup(DestinationS3BackupProps s3Backup) Sets the value ofCommonDestinationProps.getS3Backup()- Parameters:
s3Backup- The configuration for backing up source records to S3.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CommonDestinationProps>- Returns:
- a new instance of
CommonDestinationProps - Throws:
NullPointerException- if any required attribute was not provided
-