Class CfnInstanceConnectEndpointMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ec2.CfnInstanceConnectEndpointMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInstanceConnectEndpointMixinProps>
- Enclosing interface:
CfnInstanceConnectEndpointMixinProps
@Stability(Stable)
public static final class CfnInstanceConnectEndpointMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInstanceConnectEndpointMixinProps>
A builder for
CfnInstanceConnectEndpointMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.clientToken(String clientToken) Sets the value ofCfnInstanceConnectEndpointMixinProps.getClientToken()preserveClientIp(Boolean preserveClientIp) Sets the value ofCfnInstanceConnectEndpointMixinProps.getPreserveClientIp()preserveClientIp(IResolvable preserveClientIp) Sets the value ofCfnInstanceConnectEndpointMixinProps.getPreserveClientIp()securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnInstanceConnectEndpointMixinProps.getSecurityGroupIds()Sets the value ofCfnInstanceConnectEndpointMixinProps.getSubnetId()Sets the value ofCfnInstanceConnectEndpointMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientToken
@Stability(Stable) public CfnInstanceConnectEndpointMixinProps.Builder clientToken(String clientToken) Sets the value ofCfnInstanceConnectEndpointMixinProps.getClientToken()- Parameters:
clientToken- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Returns:
this
-
preserveClientIp
@Stability(Stable) public CfnInstanceConnectEndpointMixinProps.Builder preserveClientIp(Boolean preserveClientIp) Sets the value ofCfnInstanceConnectEndpointMixinProps.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.
PreserveClientIpis only supported on IPv4 EC2 Instance Connect Endpoints. To usePreserveClientIp, the value forIpAddressTypemust beipv4.Default:
false- Returns:
this
-
preserveClientIp
@Stability(Stable) public CfnInstanceConnectEndpointMixinProps.Builder preserveClientIp(IResolvable preserveClientIp) Sets the value ofCfnInstanceConnectEndpointMixinProps.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.
PreserveClientIpis only supported on IPv4 EC2 Instance Connect Endpoints. To usePreserveClientIp, the value forIpAddressTypemust beipv4.Default:
false- Returns:
this
-
securityGroupIds
@Stability(Stable) public CfnInstanceConnectEndpointMixinProps.Builder securityGroupIds(List<String> securityGroupIds) Sets the value ofCfnInstanceConnectEndpointMixinProps.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
-
subnetId
Sets the value ofCfnInstanceConnectEndpointMixinProps.getSubnetId()- Parameters:
subnetId- The ID of the subnet in which to create the EC2 Instance Connect Endpoint.- Returns:
this
-
tags
@Stability(Stable) public CfnInstanceConnectEndpointMixinProps.Builder tags(List<? extends CfnTag> tags) Sets the value ofCfnInstanceConnectEndpointMixinProps.getTags()- Parameters:
tags- The tags to apply to the EC2 Instance Connect Endpoint during creation.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInstanceConnectEndpointMixinProps>- Returns:
- a new instance of
CfnInstanceConnectEndpointMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-