Class HttpEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.HttpEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HttpEndpointProps>
- Enclosing interface:
HttpEndpointProps
@Stability(Stable)
public static final class HttpEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<HttpEndpointProps>
A builder for
HttpEndpointProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(List<? extends HttpAttribute> attributes) Sets the value ofHttpEndpointProps.getAttributes()backupMode(HttpBackupMode backupMode) Sets the value ofHttpEndpointProps.getBackupMode()bufferingHints(HttpBufferingHints bufferingHints) Sets the value ofHttpEndpointProps.getBufferingHints()build()Builds the configured instance.endpointConfig(HttpEndpointConfig endpointConfig) Sets the value ofHttpEndpointProps.getEndpointConfig()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()requestCompression(HttpCompression requestCompression) Sets the value ofHttpEndpointProps.getRequestCompression()retryOptions(HttpRetryOptions retryOptions) Sets the value ofHttpEndpointProps.getRetryOptions()Sets the value ofCommonDestinationProps.getRole()s3Backup(DestinationS3BackupProps s3Backup) Sets the value ofCommonDestinationProps.getS3Backup()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
endpointConfig
@Stability(Stable) public HttpEndpointProps.Builder endpointConfig(HttpEndpointConfig endpointConfig) Sets the value ofHttpEndpointProps.getEndpointConfig()- Parameters:
endpointConfig- Describes the configuration of the Http endpoint to which Kinesis Firehose delivers data. This parameter is required.- Returns:
this
-
attributes
@Stability(Stable) public HttpEndpointProps.Builder attributes(List<? extends HttpAttribute> attributes) Sets the value ofHttpEndpointProps.getAttributes()- Parameters:
attributes- Describes the metadata sent to the Http endpoint destination.- Returns:
this
-
backupMode
Sets the value ofHttpEndpointProps.getBackupMode()- Parameters:
backupMode- Describes the S3 bucket backup options for the data that Kinesis Data Firehose delivers to the Http endpoint destination.- Returns:
this
-
bufferingHints
@Stability(Stable) public HttpEndpointProps.Builder bufferingHints(HttpBufferingHints bufferingHints) Sets the value ofHttpEndpointProps.getBufferingHints()- Parameters:
bufferingHints- The buffering options that can be used before data is delivered to the specified destination.- Returns:
this
-
requestCompression
@Stability(Stable) public HttpEndpointProps.Builder requestCompression(HttpCompression requestCompression) Sets the value ofHttpEndpointProps.getRequestCompression()- Parameters:
requestCompression- Compress the body of a request before sending the request to the destination.- Returns:
this
-
retryOptions
Sets the value ofHttpEndpointProps.getRetryOptions()- Parameters:
retryOptions- The total amount of time that Kinesis Data Firehose spends on retries.- Returns:
this
-
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 HttpEndpointProps.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 HttpEndpointProps.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
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<HttpEndpointProps>- Returns:
- a new instance of
HttpEndpointProps - Throws:
NullPointerException- if any required attribute was not provided
-