Class DestinationOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.DestinationOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<DestinationOptions>
- Enclosing interface:
DestinationOptions
@Stability(Stable)
public static final class DestinationOptions.Builder
extends Object
implements software.amazon.jsii.Builder<DestinationOptions>
A builder for
DestinationOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.fileFormat
(FlowLogFileFormat fileFormat) Sets the value ofS3DestinationOptions.getFileFormat()
hiveCompatiblePartitions
(Boolean hiveCompatiblePartitions) Sets the value ofS3DestinationOptions.getHiveCompatiblePartitions()
perHourPartition
(Boolean perHourPartition) Sets the value ofS3DestinationOptions.getPerHourPartition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fileFormat
Sets the value ofS3DestinationOptions.getFileFormat()
- Parameters:
fileFormat
- The format for the flow log.- Returns:
this
-
hiveCompatiblePartitions
@Stability(Stable) public DestinationOptions.Builder hiveCompatiblePartitions(Boolean hiveCompatiblePartitions) Sets the value ofS3DestinationOptions.getHiveCompatiblePartitions()
- Parameters:
hiveCompatiblePartitions
- Use Hive-compatible prefixes for flow logs stored in Amazon S3.- Returns:
this
-
perHourPartition
Sets the value ofS3DestinationOptions.getPerHourPartition()
- Parameters:
perHourPartition
- Partition the flow log per hour.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<DestinationOptions>
- Returns:
- a new instance of
DestinationOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-