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(Experimental)
public static final class DeliveryStreamProps.Builder
extends Object
implements software.amazon.jsii.Builder<DeliveryStreamProps>
A builder for
DeliveryStreamProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.deliveryStreamName
(String deliveryStreamName) Sets the value ofDeliveryStreamProps.getDeliveryStreamName()
destinations
(List<? extends IDestination> destinations) Sets the value ofDeliveryStreamProps.getDestinations()
encryption
(StreamEncryption encryption) Sets the value ofDeliveryStreamProps.getEncryption()
encryptionKey
(IKey encryptionKey) Sets the value ofDeliveryStreamProps.getEncryptionKey()
Sets the value ofDeliveryStreamProps.getRole()
sourceStream
(IStream sourceStream) Sets the value ofDeliveryStreamProps.getSourceStream()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destinations
@Stability(Experimental) public DeliveryStreamProps.Builder destinations(List<? extends IDestination> destinations) Sets the value ofDeliveryStreamProps.getDestinations()
- Parameters:
destinations
- The destinations that this delivery stream will deliver data to. This parameter is required. Only a singleton array is supported at this time.- Returns:
this
-
deliveryStreamName
@Stability(Experimental) public DeliveryStreamProps.Builder deliveryStreamName(String 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
-
encryptionKey
Sets the value ofDeliveryStreamProps.getEncryptionKey()
- Parameters:
encryptionKey
- Customer managed key to server-side encrypt data in the stream.- Returns:
this
-
role
Sets the value ofDeliveryStreamProps.getRole()
- Parameters:
role
- The IAM role associated with this delivery stream. Assumed by Kinesis Data Firehose to read from sources and encrypt data server-side.- Returns:
this
-
sourceStream
Sets the value ofDeliveryStreamProps.getSourceStream()
- Parameters:
sourceStream
- The Kinesis data stream to use as a source for this delivery stream.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DeliveryStreamProps>
- Returns:
- a new instance of
DeliveryStreamProps
- Throws:
NullPointerException
- if any required attribute was not provided
-