Class FlowLogOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.FlowLogOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<FlowLogOptions>
- Enclosing interface:
- FlowLogOptions
@Stability(Stable)
public static final class FlowLogOptions.Builder
extends Object
implements software.amazon.jsii.Builder<FlowLogOptions>
A builder for
FlowLogOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.destination
(FlowLogDestination destination) Sets the value ofFlowLogOptions.getDestination()
trafficType
(FlowLogTrafficType trafficType) Sets the value ofFlowLogOptions.getTrafficType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
destination
Sets the value ofFlowLogOptions.getDestination()
- Parameters:
destination
- Specifies the type of destination to which the flow log data is to be published. Flow log data can be published to CloudWatch Logs or Amazon S3- Returns:
this
-
trafficType
Sets the value ofFlowLogOptions.getTrafficType()
- Parameters:
trafficType
- The type of traffic to log. You can log traffic that the resource accepts or rejects, or all traffic.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<FlowLogOptions>
- Returns:
- a new instance of
FlowLogOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-