Class CloudwatchDeliveryDestinationProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.logs.CloudwatchDeliveryDestinationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudwatchDeliveryDestinationProps>
- Enclosing interface:
CloudwatchDeliveryDestinationProps
@Stability(Experimental)
public static final class CloudwatchDeliveryDestinationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CloudwatchDeliveryDestinationProps>
A builder for
CloudwatchDeliveryDestinationProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.logGroup(ILogGroupRef logGroup) Sets the value ofCloudwatchDeliveryDestinationProps.getLogGroup()outputFormat(String outputFormat) Sets the value ofCloudwatchDeliveryDestinationProps.getOutputFormat()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logGroup
@Stability(Experimental) public CloudwatchDeliveryDestinationProps.Builder logGroup(ILogGroupRef logGroup) Sets the value ofCloudwatchDeliveryDestinationProps.getLogGroup()- Parameters:
logGroup- Log group to deliver logs to. This parameter is required.- Returns:
this
-
outputFormat
@Stability(Experimental) public CloudwatchDeliveryDestinationProps.Builder outputFormat(String outputFormat) Sets the value ofCloudwatchDeliveryDestinationProps.getOutputFormat()- Parameters:
outputFormat- Format of the logs that are sent to this delivery destination.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudwatchDeliveryDestinationProps>- Returns:
- a new instance of
CloudwatchDeliveryDestinationProps - Throws:
NullPointerException- if any required attribute was not provided
-