Interface CreateInstanceConnectEndpointRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateInstanceConnectEndpointRequest.Builder,
,CreateInstanceConnectEndpointRequest> Ec2Request.Builder
,SdkBuilder<CreateInstanceConnectEndpointRequest.Builder,
,CreateInstanceConnectEndpointRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateInstanceConnectEndpointRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientToken
(String clientToken) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.ipAddressType
(String ipAddressType) The IP address type of the endpoint.ipAddressType
(IpAddressType ipAddressType) The IP address type of the endpoint.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.preserveClientIp
(Boolean preserveClientIp) Indicates whether the client IP address is preserved as the source.securityGroupIds
(String... securityGroupIds) One or more security groups to associate with the endpoint.securityGroupIds
(Collection<String> securityGroupIds) One or more security groups to associate with the endpoint.The ID of the subnet in which to create the EC2 Instance Connect Endpoint.tagSpecifications
(Collection<TagSpecification> tagSpecifications) The tags to apply to the EC2 Instance Connect Endpoint during creation.tagSpecifications
(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the EC2 Instance Connect Endpoint during creation.tagSpecifications
(TagSpecification... tagSpecifications) The tags to apply to the EC2 Instance Connect Endpoint during creation.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
The ID of the subnet in which to create the EC2 Instance Connect Endpoint.
- Parameters:
subnetId
- The ID of the subnet in which to create the EC2 Instance Connect Endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
- 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:
- Returns a reference to this object so that method calls can be chained together.
-
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.
PreserveClientIp
is only supported on IPv4 EC2 Instance Connect Endpoints. To usePreserveClientIp
, the value forIpAddressType
must beipv4
.Default:
false
- 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.
PreserveClientIp
is only supported on IPv4 EC2 Instance Connect Endpoints. To usePreserveClientIp
, the value forIpAddressType
must beipv4
.Default:
false
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
clientToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
- Parameters:
clientToken
- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateInstanceConnectEndpointRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications) The tags to apply to the EC2 Instance Connect Endpoint during creation.
- Parameters:
tagSpecifications
- The tags to apply to the EC2 Instance Connect Endpoint during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateInstanceConnectEndpointRequest.Builder tagSpecifications(TagSpecification... tagSpecifications) The tags to apply to the EC2 Instance Connect Endpoint during creation.
- Parameters:
tagSpecifications
- The tags to apply to the EC2 Instance Connect Endpoint during creation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateInstanceConnectEndpointRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the EC2 Instance Connect Endpoint during creation.
This is a convenience method that creates an instance of theTagSpecification.Builder
avoiding the need to create one manually viaTagSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagSpecifications(List<TagSpecification>)
.- Parameters:
tagSpecifications
- a consumer that will call methods onTagSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ipAddressType
The IP address type of the endpoint.
If no value is specified, the default value is determined by the IP address type of the subnet:
-
dualstack
- If the subnet has both IPv4 and IPv6 CIDRs -
ipv4
- If the subnet has only IPv4 CIDRs -
ipv6
- If the subnet has only IPv6 CIDRs
PreserveClientIp
is only supported on IPv4 EC2 Instance Connect Endpoints. To usePreserveClientIp
, the value forIpAddressType
must beipv4
.- Parameters:
ipAddressType
- The IP address type of the endpoint.If no value is specified, the default value is determined by the IP address type of the subnet:
-
dualstack
- If the subnet has both IPv4 and IPv6 CIDRs -
ipv4
- If the subnet has only IPv4 CIDRs -
ipv6
- If the subnet has only IPv6 CIDRs
PreserveClientIp
is only supported on IPv4 EC2 Instance Connect Endpoints. To usePreserveClientIp
, the value forIpAddressType
must beipv4
.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
ipAddressType
The IP address type of the endpoint.
If no value is specified, the default value is determined by the IP address type of the subnet:
-
dualstack
- If the subnet has both IPv4 and IPv6 CIDRs -
ipv4
- If the subnet has only IPv4 CIDRs -
ipv6
- If the subnet has only IPv6 CIDRs
PreserveClientIp
is only supported on IPv4 EC2 Instance Connect Endpoints. To usePreserveClientIp
, the value forIpAddressType
must beipv4
.- Parameters:
ipAddressType
- The IP address type of the endpoint.If no value is specified, the default value is determined by the IP address type of the subnet:
-
dualstack
- If the subnet has both IPv4 and IPv6 CIDRs -
ipv4
- If the subnet has only IPv4 CIDRs -
ipv6
- If the subnet has only IPv6 CIDRs
PreserveClientIp
is only supported on IPv4 EC2 Instance Connect Endpoints. To usePreserveClientIp
, the value forIpAddressType
must beipv4
.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
CreateInstanceConnectEndpointRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateInstanceConnectEndpointRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-