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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.networkInterfaceId
(String networkInterfaceId) Sets the value ofCfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty.getPort()
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
-
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:
build
in interfacesoftware.amazon.jsii.Builder<CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty>
- Returns:
- a new instance of
CfnVerifiedAccessEndpoint.NetworkInterfaceOptionsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-