Class CfnWorkgroup.NetworkInterfaceProperty.Builder
java.lang.Object
software.amazon.awscdk.services.redshiftserverless.CfnWorkgroup.NetworkInterfaceProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWorkgroup.NetworkInterfaceProperty>
- Enclosing interface:
CfnWorkgroup.NetworkInterfaceProperty
@Stability(Stable)
public static final class CfnWorkgroup.NetworkInterfaceProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnWorkgroup.NetworkInterfaceProperty>
A builder for
CfnWorkgroup.NetworkInterfaceProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(String availabilityZone) Sets the value ofCfnWorkgroup.NetworkInterfaceProperty.getAvailabilityZone()build()Builds the configured instance.networkInterfaceId(String networkInterfaceId) Sets the value ofCfnWorkgroup.NetworkInterfaceProperty.getNetworkInterfaceId()privateIpAddress(String privateIpAddress) Sets the value ofCfnWorkgroup.NetworkInterfaceProperty.getPrivateIpAddress()Sets the value ofCfnWorkgroup.NetworkInterfaceProperty.getSubnetId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Stable) public CfnWorkgroup.NetworkInterfaceProperty.Builder availabilityZone(String availabilityZone) Sets the value ofCfnWorkgroup.NetworkInterfaceProperty.getAvailabilityZone()- Parameters:
availabilityZone- The availability Zone.- Returns:
this
-
networkInterfaceId
@Stability(Stable) public CfnWorkgroup.NetworkInterfaceProperty.Builder networkInterfaceId(String networkInterfaceId) Sets the value ofCfnWorkgroup.NetworkInterfaceProperty.getNetworkInterfaceId()- Parameters:
networkInterfaceId- The unique identifier of the network interface.- Returns:
this
-
privateIpAddress
@Stability(Stable) public CfnWorkgroup.NetworkInterfaceProperty.Builder privateIpAddress(String privateIpAddress) Sets the value ofCfnWorkgroup.NetworkInterfaceProperty.getPrivateIpAddress()- Parameters:
privateIpAddress- The IPv4 address of the network interface within the subnet.- Returns:
this
-
subnetId
Sets the value ofCfnWorkgroup.NetworkInterfaceProperty.getSubnetId()- Parameters:
subnetId- The unique identifier of the subnet.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnWorkgroup.NetworkInterfaceProperty>- Returns:
- a new instance of
CfnWorkgroup.NetworkInterfaceProperty - Throws:
NullPointerException- if any required attribute was not provided
-