Class CfnTrafficMirrorTargetProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnTrafficMirrorTargetProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTrafficMirrorTargetProps>
- Enclosing interface:
- CfnTrafficMirrorTargetProps
@Stability(Stable)
public static final class CfnTrafficMirrorTargetProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTrafficMirrorTargetProps>
A builder for
CfnTrafficMirrorTargetProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.description(String description) Sets the value ofCfnTrafficMirrorTargetProps.getDescription()gatewayLoadBalancerEndpointId(String gatewayLoadBalancerEndpointId) Sets the value ofCfnTrafficMirrorTargetProps.getGatewayLoadBalancerEndpointId()networkInterfaceId(String networkInterfaceId) Sets the value ofCfnTrafficMirrorTargetProps.getNetworkInterfaceId()networkLoadBalancerArn(String networkLoadBalancerArn) Sets the value ofCfnTrafficMirrorTargetProps.getNetworkLoadBalancerArn()Sets the value ofCfnTrafficMirrorTargetProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnTrafficMirrorTargetProps.getDescription()- Parameters:
description- The description of the Traffic Mirror target.- Returns:
this
-
gatewayLoadBalancerEndpointId
@Stability(Stable) public CfnTrafficMirrorTargetProps.Builder gatewayLoadBalancerEndpointId(String gatewayLoadBalancerEndpointId) Sets the value ofCfnTrafficMirrorTargetProps.getGatewayLoadBalancerEndpointId()- Parameters:
gatewayLoadBalancerEndpointId- The ID of the Gateway Load Balancer endpoint.- Returns:
this
-
networkInterfaceId
@Stability(Stable) public CfnTrafficMirrorTargetProps.Builder networkInterfaceId(String networkInterfaceId) Sets the value ofCfnTrafficMirrorTargetProps.getNetworkInterfaceId()- Parameters:
networkInterfaceId- The network interface ID that is associated with the target.- Returns:
this
-
networkLoadBalancerArn
@Stability(Stable) public CfnTrafficMirrorTargetProps.Builder networkLoadBalancerArn(String networkLoadBalancerArn) Sets the value ofCfnTrafficMirrorTargetProps.getNetworkLoadBalancerArn()- Parameters:
networkLoadBalancerArn- The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target.- Returns:
this
-
tags
Sets the value ofCfnTrafficMirrorTargetProps.getTags()- Parameters:
tags- The tags to assign to the Traffic Mirror target.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTrafficMirrorTargetProps>- Returns:
- a new instance of
CfnTrafficMirrorTargetProps - Throws:
NullPointerException- if any required attribute was not provided
-