Class CfnPipe.S3LogDestinationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.pipes.CfnPipe.S3LogDestinationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPipe.S3LogDestinationProperty>
- Enclosing interface:
CfnPipe.S3LogDestinationProperty
@Stability(Stable)
public static final class CfnPipe.S3LogDestinationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPipe.S3LogDestinationProperty>
A builder for
CfnPipe.S3LogDestinationProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketName
(String bucketName) Sets the value ofCfnPipe.S3LogDestinationProperty.getBucketName()
bucketOwner
(String bucketOwner) Sets the value ofCfnPipe.S3LogDestinationProperty.getBucketOwner()
build()
Builds the configured instance.outputFormat
(String outputFormat) Sets the value ofCfnPipe.S3LogDestinationProperty.getOutputFormat()
Sets the value ofCfnPipe.S3LogDestinationProperty.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketName
Sets the value ofCfnPipe.S3LogDestinationProperty.getBucketName()
- Parameters:
bucketName
- The name of the Amazon S3 bucket to which EventBridge delivers the log records for the pipe.- Returns:
this
-
bucketOwner
Sets the value ofCfnPipe.S3LogDestinationProperty.getBucketOwner()
- Parameters:
bucketOwner
- The AWS account that owns the Amazon S3 bucket to which EventBridge delivers the log records for the pipe.- Returns:
this
-
outputFormat
@Stability(Stable) public CfnPipe.S3LogDestinationProperty.Builder outputFormat(String outputFormat) Sets the value ofCfnPipe.S3LogDestinationProperty.getOutputFormat()
- Parameters:
outputFormat
- The format EventBridge uses for the log records. EventBridge currently only supportsjson
formatting.- Returns:
this
-
prefix
Sets the value ofCfnPipe.S3LogDestinationProperty.getPrefix()
- Parameters:
prefix
- The prefix text with which to begin Amazon S3 log object names. For more information, see Organizing objects using prefixes in the Amazon Simple Storage Service User Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPipe.S3LogDestinationProperty>
- Returns:
- a new instance of
CfnPipe.S3LogDestinationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-