Class CfnTrafficMirrorFilterProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTrafficMirrorFilterProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrafficMirrorFilterProps>
- Enclosing interface:
CfnTrafficMirrorFilterProps
@Stability(Stable)
public static final class CfnTrafficMirrorFilterProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrafficMirrorFilterProps>
A builder for
CfnTrafficMirrorFilterProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnTrafficMirrorFilterProps.getDescription()networkServices(List<String> networkServices) Sets the value ofCfnTrafficMirrorFilterProps.getNetworkServices()Sets the value ofCfnTrafficMirrorFilterProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnTrafficMirrorFilterProps.getDescription()- Parameters:
description- The description of the Traffic Mirror filter.- Returns:
this
-
networkServices
@Stability(Stable) public CfnTrafficMirrorFilterProps.Builder networkServices(List<String> networkServices) Sets the value ofCfnTrafficMirrorFilterProps.getNetworkServices()- Parameters:
networkServices- The network service traffic that is associated with the Traffic Mirror filter. Valid values areamazon-dns.- Returns:
this
-
tags
Sets the value ofCfnTrafficMirrorFilterProps.getTags()- Parameters:
tags- The tags to assign to a Traffic Mirror filter.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrafficMirrorFilterProps>- Returns:
- a new instance of
CfnTrafficMirrorFilterProps - Throws:
NullPointerException- if any required attribute was not provided
-