Class CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty>
- Enclosing interface:
CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty
@Stability(Stable)
public static final class CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.networkInterfaceId(String networkInterfaceId) Sets the value ofCfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty.getPort()portRanges(List<? extends Object> portRanges) portRanges(IResolvable portRanges) Sets the value ofCfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty.getProtocol()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
networkInterfaceId
@Stability(Stable) public CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty.Builder networkInterfaceId(String networkInterfaceId) - Parameters:
networkInterfaceId- The ID of the network interface.- Returns:
this
-
port
@Stability(Stable) public CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty.Builder port(Number port) Sets the value ofCfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty.getPort()- Parameters:
port- The IP port number.- Returns:
this
-
portRanges
@Stability(Stable) public CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty.Builder portRanges(IResolvable portRanges) - Parameters:
portRanges- The port ranges.- Returns:
this
-
portRanges
@Stability(Stable) public CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty.Builder portRanges(List<? extends Object> portRanges) - Parameters:
portRanges- The port ranges.- Returns:
this
-
protocol
@Stability(Stable) public CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty.Builder protocol(String protocol) Sets the value ofCfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty.getProtocol()- Parameters:
protocol- The IP protocol.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty>- Returns:
- a new instance of
CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-