Class CfnFlowLog.DestinationOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnFlowLog.DestinationOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFlowLog.DestinationOptionsProperty>
- Enclosing interface:
CfnFlowLog.DestinationOptionsProperty
@Stability(Stable)
public static final class CfnFlowLog.DestinationOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFlowLog.DestinationOptionsProperty>
A builder for
CfnFlowLog.DestinationOptionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.fileFormat(String fileFormat) Sets the value ofCfnFlowLog.DestinationOptionsProperty.getFileFormat()hiveCompatiblePartitions(Boolean hiveCompatiblePartitions) Sets the value ofCfnFlowLog.DestinationOptionsProperty.getHiveCompatiblePartitions()hiveCompatiblePartitions(IResolvable hiveCompatiblePartitions) Sets the value ofCfnFlowLog.DestinationOptionsProperty.getHiveCompatiblePartitions()perHourPartition(Boolean perHourPartition) Sets the value ofCfnFlowLog.DestinationOptionsProperty.getPerHourPartition()perHourPartition(IResolvable perHourPartition) Sets the value ofCfnFlowLog.DestinationOptionsProperty.getPerHourPartition()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fileFormat
@Stability(Stable) public CfnFlowLog.DestinationOptionsProperty.Builder fileFormat(String fileFormat) Sets the value ofCfnFlowLog.DestinationOptionsProperty.getFileFormat()- Parameters:
fileFormat- The format for the flow log. This parameter is required. The default isplain-text.- Returns:
this
-
hiveCompatiblePartitions
@Stability(Stable) public CfnFlowLog.DestinationOptionsProperty.Builder hiveCompatiblePartitions(Boolean hiveCompatiblePartitions) Sets the value ofCfnFlowLog.DestinationOptionsProperty.getHiveCompatiblePartitions()- Parameters:
hiveCompatiblePartitions- Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3. This parameter is required. The default isfalse.- Returns:
this
-
hiveCompatiblePartitions
@Stability(Stable) public CfnFlowLog.DestinationOptionsProperty.Builder hiveCompatiblePartitions(IResolvable hiveCompatiblePartitions) Sets the value ofCfnFlowLog.DestinationOptionsProperty.getHiveCompatiblePartitions()- Parameters:
hiveCompatiblePartitions- Indicates whether to use Hive-compatible prefixes for flow logs stored in Amazon S3. This parameter is required. The default isfalse.- Returns:
this
-
perHourPartition
@Stability(Stable) public CfnFlowLog.DestinationOptionsProperty.Builder perHourPartition(Boolean perHourPartition) Sets the value ofCfnFlowLog.DestinationOptionsProperty.getPerHourPartition()- Parameters:
perHourPartition- Indicates whether to partition the flow log per hour. This parameter is required. This reduces the cost and response time for queries. The default isfalse.- Returns:
this
-
perHourPartition
@Stability(Stable) public CfnFlowLog.DestinationOptionsProperty.Builder perHourPartition(IResolvable perHourPartition) Sets the value ofCfnFlowLog.DestinationOptionsProperty.getPerHourPartition()- Parameters:
perHourPartition- Indicates whether to partition the flow log per hour. This parameter is required. This reduces the cost and response time for queries. The default isfalse.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFlowLog.DestinationOptionsProperty>- Returns:
- a new instance of
CfnFlowLog.DestinationOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-