Class DeliveryStreamProps.Builder
java.lang.Object
software.amazon.awscdk.services.kinesisfirehose.DeliveryStreamProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DeliveryStreamProps>
- Enclosing interface:
DeliveryStreamProps
@Stability(Stable)
public static final class DeliveryStreamProps.Builder
extends Object
implements software.amazon.jsii.Builder<DeliveryStreamProps>
A builder for
DeliveryStreamProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deliveryStreamName(String deliveryStreamName) Sets the value ofDeliveryStreamProps.getDeliveryStreamName()destination(IDestination destination) Sets the value ofDeliveryStreamProps.getDestination()encryption(StreamEncryption encryption) Sets the value ofDeliveryStreamProps.getEncryption()Sets the value ofDeliveryStreamProps.getRole()Sets the value ofDeliveryStreamProps.getSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destination
Sets the value ofDeliveryStreamProps.getDestination()- Parameters:
destination- The destination that this delivery stream will deliver data to. This parameter is required.- Returns:
this
-
deliveryStreamName
Sets the value ofDeliveryStreamProps.getDeliveryStreamName()- Parameters:
deliveryStreamName- A name for the delivery stream.- Returns:
this
-
encryption
Sets the value ofDeliveryStreamProps.getEncryption()- Parameters:
encryption- Indicates the type of customer master key (CMK) to use for server-side encryption, if any.- Returns:
this
-
role
Sets the value ofDeliveryStreamProps.getRole()- Parameters:
role- The IAM role associated with this delivery stream. Assumed by Amazon Data Firehose to read from sources and encrypt data server-side.- Returns:
this
-
source
Sets the value ofDeliveryStreamProps.getSource()- Parameters:
source- The Kinesis data stream to use as a source for this delivery stream.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<DeliveryStreamProps>- Returns:
- a new instance of
DeliveryStreamProps - Throws:
NullPointerException- if any required attribute was not provided
-