Class CfnVPCConnection.NetworkInterfaceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.quicksight.CfnVPCConnection.NetworkInterfaceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVPCConnection.NetworkInterfaceProperty>
- Enclosing interface:
CfnVPCConnection.NetworkInterfaceProperty
@Stability(Stable)
public static final class CfnVPCConnection.NetworkInterfaceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVPCConnection.NetworkInterfaceProperty>
A builder for
CfnVPCConnection.NetworkInterfaceProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone
(String availabilityZone) Sets the value ofCfnVPCConnection.NetworkInterfaceProperty.getAvailabilityZone()
build()
Builds the configured instance.errorMessage
(String errorMessage) Sets the value ofCfnVPCConnection.NetworkInterfaceProperty.getErrorMessage()
networkInterfaceId
(String networkInterfaceId) Sets the value ofCfnVPCConnection.NetworkInterfaceProperty.getNetworkInterfaceId()
Sets the value ofCfnVPCConnection.NetworkInterfaceProperty.getStatus()
Sets the value ofCfnVPCConnection.NetworkInterfaceProperty.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Stable) public CfnVPCConnection.NetworkInterfaceProperty.Builder availabilityZone(String availabilityZone) Sets the value ofCfnVPCConnection.NetworkInterfaceProperty.getAvailabilityZone()
- Parameters:
availabilityZone
- The availability zone that the network interface resides in.- Returns:
this
-
errorMessage
@Stability(Stable) public CfnVPCConnection.NetworkInterfaceProperty.Builder errorMessage(String errorMessage) Sets the value ofCfnVPCConnection.NetworkInterfaceProperty.getErrorMessage()
- Parameters:
errorMessage
- An error message.- Returns:
this
-
networkInterfaceId
@Stability(Stable) public CfnVPCConnection.NetworkInterfaceProperty.Builder networkInterfaceId(String networkInterfaceId) Sets the value ofCfnVPCConnection.NetworkInterfaceProperty.getNetworkInterfaceId()
- Parameters:
networkInterfaceId
- The network interface ID.- Returns:
this
-
status
Sets the value ofCfnVPCConnection.NetworkInterfaceProperty.getStatus()
- Parameters:
status
- The status of the network interface.- Returns:
this
-
subnetId
@Stability(Stable) public CfnVPCConnection.NetworkInterfaceProperty.Builder subnetId(String subnetId) Sets the value ofCfnVPCConnection.NetworkInterfaceProperty.getSubnetId()
- Parameters:
subnetId
- The subnet ID associated with the network interface.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnVPCConnection.NetworkInterfaceProperty>
- Returns:
- a new instance of
CfnVPCConnection.NetworkInterfaceProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-