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