Class CfnTelemetryRule.VPCFlowLogParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.observabilityadmin.CfnTelemetryRule.VPCFlowLogParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTelemetryRule.VPCFlowLogParametersProperty>
- Enclosing interface:
CfnTelemetryRule.VPCFlowLogParametersProperty
@Stability(Stable)
public static final class CfnTelemetryRule.VPCFlowLogParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTelemetryRule.VPCFlowLogParametersProperty>
A builder for
CfnTelemetryRule.VPCFlowLogParametersProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnTelemetryRule.VPCFlowLogParametersProperty.getLogFormat()
maxAggregationInterval
(Number maxAggregationInterval) trafficType
(String trafficType) Sets the value ofCfnTelemetryRule.VPCFlowLogParametersProperty.getTrafficType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logFormat
@Stability(Stable) public CfnTelemetryRule.VPCFlowLogParametersProperty.Builder logFormat(String logFormat) Sets the value ofCfnTelemetryRule.VPCFlowLogParametersProperty.getLogFormat()
- Parameters:
logFormat
- The fields to include in the flow log record. If you omit this parameter, the flow log is created using the default format.- Returns:
this
-
maxAggregationInterval
@Stability(Stable) public CfnTelemetryRule.VPCFlowLogParametersProperty.Builder maxAggregationInterval(Number maxAggregationInterval) - Parameters:
maxAggregationInterval
- The maximum interval of time, in seconds, during which a flow of packets is captured and aggregated into a flow log record. Default is 600s.- Returns:
this
-
trafficType
@Stability(Stable) public CfnTelemetryRule.VPCFlowLogParametersProperty.Builder trafficType(String trafficType) Sets the value ofCfnTelemetryRule.VPCFlowLogParametersProperty.getTrafficType()
- Parameters:
trafficType
- The type of traffic captured for the flow log. Default is ALL- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTelemetryRule.VPCFlowLogParametersProperty>
- Returns:
- a new instance of
CfnTelemetryRule.VPCFlowLogParametersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-