Class CfnPrivateConnection.ServiceManagedModeProperty.Builder
java.lang.Object
software.amazon.awscdk.services.devopsagent.CfnPrivateConnection.ServiceManagedModeProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrivateConnection.ServiceManagedModeProperty>
- Enclosing interface:
CfnPrivateConnection.ServiceManagedModeProperty
@Stability(Stable)
public static final class CfnPrivateConnection.ServiceManagedModeProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrivateConnection.ServiceManagedModeProperty>
A builder for
CfnPrivateConnection.ServiceManagedModeProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.hostAddress(String hostAddress) Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getHostAddress()ipAddressType(String ipAddressType) Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getIpAddressType()ipv4AddressesPerEni(Number ipv4AddressesPerEni) Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getIpv4AddressesPerEni()portRanges(List<String> portRanges) Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getPortRanges()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getSecurityGroupIds()Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getSubnetIds()Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getVpcId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hostAddress
@Stability(Stable) public CfnPrivateConnection.ServiceManagedModeProperty.Builder hostAddress(String hostAddress) Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getHostAddress()- Parameters:
hostAddress- IP address or DNS name of the target resource. This parameter is required.- Returns:
this
-
vpcId
@Stability(Stable) public CfnPrivateConnection.ServiceManagedModeProperty.Builder vpcId(String vpcId) Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getVpcId()- Parameters:
vpcId- VPC to create the service-managed Resource Gateway in. This parameter is required.- Returns:
this
-
ipAddressType
@Stability(Stable) public CfnPrivateConnection.ServiceManagedModeProperty.Builder ipAddressType(String ipAddressType) Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getIpAddressType()- Parameters:
ipAddressType- IP address type of the service-managed Resource Gateway.- Returns:
this
-
ipv4AddressesPerEni
@Stability(Stable) public CfnPrivateConnection.ServiceManagedModeProperty.Builder ipv4AddressesPerEni(Number ipv4AddressesPerEni) Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getIpv4AddressesPerEni()- Parameters:
ipv4AddressesPerEni- Number of IPv4 addresses in each ENI for the service-managed Resource Gateway.- Returns:
this
-
portRanges
@Stability(Stable) public CfnPrivateConnection.ServiceManagedModeProperty.Builder portRanges(List<String> portRanges) Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getPortRanges()- Parameters:
portRanges- TCP port ranges that a consumer can use to access the resource.- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnPrivateConnection.ServiceManagedModeProperty.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getSecurityGroupIds()- Parameters:
securityGroupIds- Security groups to attach to the service-managed Resource Gateway.- Returns:
this
-
subnetIds
@Stability(Stable) public CfnPrivateConnection.ServiceManagedModeProperty.Builder subnetIds(List<String> subnetIds) Sets the value ofCfnPrivateConnection.ServiceManagedModeProperty.getSubnetIds()- Parameters:
subnetIds- Subnets that the service-managed Resource Gateway will span.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrivateConnection.ServiceManagedModeProperty>- Returns:
- a new instance of
CfnPrivateConnection.ServiceManagedModeProperty - Throws:
NullPointerException- if any required attribute was not provided
-