Class CfnInstanceConnectEndpointProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnInstanceConnectEndpointProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceConnectEndpointProps>
- Enclosing interface:
CfnInstanceConnectEndpointProps
@Stability(Stable)
public static final class CfnInstanceConnectEndpointProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceConnectEndpointProps>
A builder for
CfnInstanceConnectEndpointProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.clientToken
(String clientToken) Sets the value ofCfnInstanceConnectEndpointProps.getClientToken()
preserveClientIp
(Boolean preserveClientIp) Sets the value ofCfnInstanceConnectEndpointProps.getPreserveClientIp()
preserveClientIp
(IResolvable preserveClientIp) Sets the value ofCfnInstanceConnectEndpointProps.getPreserveClientIp()
securityGroupIds
(List<String> securityGroupIds) Sets the value ofCfnInstanceConnectEndpointProps.getSecurityGroupIds()
Sets the value ofCfnInstanceConnectEndpointProps.getSubnetId()
Sets the value ofCfnInstanceConnectEndpointProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
subnetId
Sets the value ofCfnInstanceConnectEndpointProps.getSubnetId()
- Parameters:
subnetId
- The ID of the subnet in which to create the EC2 Instance Connect Endpoint. This parameter is required.- Returns:
this
-
clientToken
Sets the value ofCfnInstanceConnectEndpointProps.getClientToken()
- Parameters:
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Returns:
this
-
preserveClientIp
@Stability(Stable) public CfnInstanceConnectEndpointProps.Builder preserveClientIp(Boolean preserveClientIp) Sets the value ofCfnInstanceConnectEndpointProps.getPreserveClientIp()
- Parameters:
preserveClientIp
- Indicates whether the client IP address is preserved as the source. The following are the possible values.true
- Use the client IP address as the source.false
- Use the network interface IP address as the source.
Default:
false
- Returns:
this
-
preserveClientIp
@Stability(Stable) public CfnInstanceConnectEndpointProps.Builder preserveClientIp(IResolvable preserveClientIp) Sets the value ofCfnInstanceConnectEndpointProps.getPreserveClientIp()
- Parameters:
preserveClientIp
- Indicates whether the client IP address is preserved as the source. The following are the possible values.true
- Use the client IP address as the source.false
- Use the network interface IP address as the source.
Default:
false
- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnInstanceConnectEndpointProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnInstanceConnectEndpointProps.getSecurityGroupIds()
- Parameters:
securityGroupIds
- One or more security groups to associate with the endpoint. If you don't specify a security group, the default security group for your VPC will be associated with the endpoint.- Returns:
this
-
tags
Sets the value ofCfnInstanceConnectEndpointProps.getTags()
- Parameters:
tags
- The tags to apply to the EC2 Instance Connect Endpoint during creation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnInstanceConnectEndpointProps>
- Returns:
- a new instance of
CfnInstanceConnectEndpointProps
- Throws:
NullPointerException
- if any required attribute was not provided
-