Class CfnDeliveryDestinationProps.Builder
java.lang.Object
software.amazon.awscdk.services.logs.CfnDeliveryDestinationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeliveryDestinationProps>
- Enclosing interface:
CfnDeliveryDestinationProps
@Stability(Stable)
public static final class CfnDeliveryDestinationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeliveryDestinationProps>
A builder for
CfnDeliveryDestinationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.deliveryDestinationPolicy(Object deliveryDestinationPolicy) Sets the value ofCfnDeliveryDestinationProps.getDeliveryDestinationPolicy()destinationResourceArn(String destinationResourceArn) Sets the value ofCfnDeliveryDestinationProps.getDestinationResourceArn()Sets the value ofCfnDeliveryDestinationProps.getName()Sets the value ofCfnDeliveryDestinationProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Sets the value ofCfnDeliveryDestinationProps.getName()- Parameters:
name- The name of this delivery destination. This parameter is required.- Returns:
this
-
deliveryDestinationPolicy
@Stability(Stable) public CfnDeliveryDestinationProps.Builder deliveryDestinationPolicy(Object deliveryDestinationPolicy) Sets the value ofCfnDeliveryDestinationProps.getDeliveryDestinationPolicy()- Parameters:
deliveryDestinationPolicy- A structure that contains information about one delivery destination policy.- Returns:
this
-
destinationResourceArn
@Stability(Stable) public CfnDeliveryDestinationProps.Builder destinationResourceArn(String destinationResourceArn) Sets the value ofCfnDeliveryDestinationProps.getDestinationResourceArn()- Parameters:
destinationResourceArn- The ARN of the AWS destination that this delivery destination represents. That AWS destination can be a log group in CloudWatch Logs, an Amazon S3 bucket, or a delivery stream in Firehose.- Returns:
this
-
tags
Sets the value ofCfnDeliveryDestinationProps.getTags()- Parameters:
tags- The tags that have been assigned to this delivery destination.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDeliveryDestinationProps>- Returns:
- a new instance of
CfnDeliveryDestinationProps - Throws:
NullPointerException- if any required attribute was not provided
-