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 format in which VPC Flow Log entries should be logged.- Returns:
this
-
maxAggregationInterval
@Stability(Stable) public CfnTelemetryRule.VPCFlowLogParametersProperty.Builder maxAggregationInterval(Number maxAggregationInterval) - Parameters:
maxAggregationInterval- The maximum interval in seconds between the capture of flow log records.- Returns:
this
-
trafficType
@Stability(Stable) public CfnTelemetryRule.VPCFlowLogParametersProperty.Builder trafficType(String trafficType) Sets the value ofCfnTelemetryRule.VPCFlowLogParametersProperty.getTrafficType()- Parameters:
trafficType- The type of traffic to log (ACCEPT, REJECT, or ALL).- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTelemetryRule.VPCFlowLogParametersProperty>- Returns:
- a new instance of
CfnTelemetryRule.VPCFlowLogParametersProperty - Throws:
NullPointerException- if any required attribute was not provided
-