Interface Ec2InstanceConnectEndpoint.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<Ec2InstanceConnectEndpoint.Builder,Ec2InstanceConnectEndpoint>,SdkBuilder<Ec2InstanceConnectEndpoint.Builder,Ec2InstanceConnectEndpoint>,SdkPojo
- Enclosing class:
- Ec2InstanceConnectEndpoint
public static interface Ec2InstanceConnectEndpoint.Builder extends SdkPojo, CopyableBuilder<Ec2InstanceConnectEndpoint.Builder,Ec2InstanceConnectEndpoint>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Ec2InstanceConnectEndpoint.BuilderavailabilityZone(String availabilityZone)The Availability Zone of the EC2 Instance Connect Endpoint.Ec2InstanceConnectEndpoint.BuildercreatedAt(Instant createdAt)The date and time that the EC2 Instance Connect Endpoint was created.Ec2InstanceConnectEndpoint.BuilderdnsName(String dnsName)The DNS name of the EC2 Instance Connect Endpoint.Ec2InstanceConnectEndpoint.BuilderfipsDnsName(String fipsDnsName)Ec2InstanceConnectEndpoint.BuilderinstanceConnectEndpointArn(String instanceConnectEndpointArn)The Amazon Resource Name (ARN) of the EC2 Instance Connect Endpoint.Ec2InstanceConnectEndpoint.BuilderinstanceConnectEndpointId(String instanceConnectEndpointId)The ID of the EC2 Instance Connect Endpoint.Ec2InstanceConnectEndpoint.BuildernetworkInterfaceIds(String... networkInterfaceIds)The ID of the elastic network interface that Amazon EC2 automatically created when creating the EC2 Instance Connect Endpoint.Ec2InstanceConnectEndpoint.BuildernetworkInterfaceIds(Collection<String> networkInterfaceIds)The ID of the elastic network interface that Amazon EC2 automatically created when creating the EC2 Instance Connect Endpoint.Ec2InstanceConnectEndpoint.BuilderownerId(String ownerId)The ID of the Amazon Web Services account that created the EC2 Instance Connect Endpoint.Ec2InstanceConnectEndpoint.BuilderpreserveClientIp(Boolean preserveClientIp)Indicates whether your client's IP address is preserved as the source.Ec2InstanceConnectEndpoint.BuildersecurityGroupIds(String... securityGroupIds)The security groups associated with the endpoint.Ec2InstanceConnectEndpoint.BuildersecurityGroupIds(Collection<String> securityGroupIds)The security groups associated with the endpoint.Ec2InstanceConnectEndpoint.Builderstate(String state)The current state of the EC2 Instance Connect Endpoint.Ec2InstanceConnectEndpoint.Builderstate(Ec2InstanceConnectEndpointState state)The current state of the EC2 Instance Connect Endpoint.Ec2InstanceConnectEndpoint.BuilderstateMessage(String stateMessage)The message for the current state of the EC2 Instance Connect Endpoint.Ec2InstanceConnectEndpoint.BuildersubnetId(String subnetId)The ID of the subnet in which the EC2 Instance Connect Endpoint was created.Ec2InstanceConnectEndpoint.Buildertags(Collection<Tag> tags)The tags assigned to the EC2 Instance Connect Endpoint.Ec2InstanceConnectEndpoint.Buildertags(Consumer<Tag.Builder>... tags)The tags assigned to the EC2 Instance Connect Endpoint.Ec2InstanceConnectEndpoint.Buildertags(Tag... tags)The tags assigned to the EC2 Instance Connect Endpoint.Ec2InstanceConnectEndpoint.BuildervpcId(String vpcId)The ID of the VPC in which the EC2 Instance Connect Endpoint was created.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
ownerId
Ec2InstanceConnectEndpoint.Builder ownerId(String ownerId)
The ID of the Amazon Web Services account that created the EC2 Instance Connect Endpoint.
- Parameters:
ownerId- The ID of the Amazon Web Services account that created the EC2 Instance Connect Endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceConnectEndpointId
Ec2InstanceConnectEndpoint.Builder instanceConnectEndpointId(String instanceConnectEndpointId)
The ID of the EC2 Instance Connect Endpoint.
- Parameters:
instanceConnectEndpointId- The ID of the EC2 Instance Connect Endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instanceConnectEndpointArn
Ec2InstanceConnectEndpoint.Builder instanceConnectEndpointArn(String instanceConnectEndpointArn)
The Amazon Resource Name (ARN) of the EC2 Instance Connect Endpoint.
- Parameters:
instanceConnectEndpointArn- The Amazon Resource Name (ARN) of the EC2 Instance Connect Endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
Ec2InstanceConnectEndpoint.Builder state(String state)
The current state of the EC2 Instance Connect Endpoint.
- Parameters:
state- The current state of the EC2 Instance Connect Endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Ec2InstanceConnectEndpointState,Ec2InstanceConnectEndpointState
-
state
Ec2InstanceConnectEndpoint.Builder state(Ec2InstanceConnectEndpointState state)
The current state of the EC2 Instance Connect Endpoint.
- Parameters:
state- The current state of the EC2 Instance Connect Endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
Ec2InstanceConnectEndpointState,Ec2InstanceConnectEndpointState
-
stateMessage
Ec2InstanceConnectEndpoint.Builder stateMessage(String stateMessage)
The message for the current state of the EC2 Instance Connect Endpoint. Can include a failure message.
- Parameters:
stateMessage- The message for the current state of the EC2 Instance Connect Endpoint. Can include a failure message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsName
Ec2InstanceConnectEndpoint.Builder dnsName(String dnsName)
The DNS name of the EC2 Instance Connect Endpoint.
- Parameters:
dnsName- The DNS name of the EC2 Instance Connect Endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fipsDnsName
Ec2InstanceConnectEndpoint.Builder fipsDnsName(String fipsDnsName)
- Parameters:
fipsDnsName-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaceIds
Ec2InstanceConnectEndpoint.Builder networkInterfaceIds(Collection<String> networkInterfaceIds)
The ID of the elastic network interface that Amazon EC2 automatically created when creating the EC2 Instance Connect Endpoint.
- Parameters:
networkInterfaceIds- The ID of the elastic network interface that Amazon EC2 automatically created when creating the EC2 Instance Connect Endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
networkInterfaceIds
Ec2InstanceConnectEndpoint.Builder networkInterfaceIds(String... networkInterfaceIds)
The ID of the elastic network interface that Amazon EC2 automatically created when creating the EC2 Instance Connect Endpoint.
- Parameters:
networkInterfaceIds- The ID of the elastic network interface that Amazon EC2 automatically created when creating the EC2 Instance Connect Endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vpcId
Ec2InstanceConnectEndpoint.Builder vpcId(String vpcId)
The ID of the VPC in which the EC2 Instance Connect Endpoint was created.
- Parameters:
vpcId- The ID of the VPC in which the EC2 Instance Connect Endpoint was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZone
Ec2InstanceConnectEndpoint.Builder availabilityZone(String availabilityZone)
The Availability Zone of the EC2 Instance Connect Endpoint.
- Parameters:
availabilityZone- The Availability Zone of the EC2 Instance Connect Endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
Ec2InstanceConnectEndpoint.Builder createdAt(Instant createdAt)
The date and time that the EC2 Instance Connect Endpoint was created.
- Parameters:
createdAt- The date and time that the EC2 Instance Connect Endpoint was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnetId
Ec2InstanceConnectEndpoint.Builder subnetId(String subnetId)
The ID of the subnet in which the EC2 Instance Connect Endpoint was created.
- Parameters:
subnetId- The ID of the subnet in which the EC2 Instance Connect Endpoint was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
preserveClientIp
Ec2InstanceConnectEndpoint.Builder preserveClientIp(Boolean preserveClientIp)
Indicates whether your client's IP address is preserved as the source. The value is
trueorfalse.-
If
true, your client's IP address is used when you connect to a resource. -
If
false, the elastic network interface IP address is used when you connect to a resource.
Default:
true- Parameters:
preserveClientIp- Indicates whether your client's IP address is preserved as the source. The value istrueorfalse.-
If
true, your client's IP address is used when you connect to a resource. -
If
false, the elastic network interface IP address is used when you connect to a resource.
Default:
true-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
securityGroupIds
Ec2InstanceConnectEndpoint.Builder securityGroupIds(Collection<String> securityGroupIds)
The security groups associated with the endpoint. If you didn't specify a security group, the default security group for your VPC is associated with the endpoint.
- Parameters:
securityGroupIds- The security groups associated with the endpoint. If you didn't specify a security group, the default security group for your VPC is associated with the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroupIds
Ec2InstanceConnectEndpoint.Builder securityGroupIds(String... securityGroupIds)
The security groups associated with the endpoint. If you didn't specify a security group, the default security group for your VPC is associated with the endpoint.
- Parameters:
securityGroupIds- The security groups associated with the endpoint. If you didn't specify a security group, the default security group for your VPC is associated with the endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Ec2InstanceConnectEndpoint.Builder tags(Collection<Tag> tags)
The tags assigned to the EC2 Instance Connect Endpoint.
- Parameters:
tags- The tags assigned to the EC2 Instance Connect Endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Ec2InstanceConnectEndpoint.Builder tags(Tag... tags)
The tags assigned to the EC2 Instance Connect Endpoint.
- Parameters:
tags- The tags assigned to the EC2 Instance Connect Endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Ec2InstanceConnectEndpoint.Builder tags(Consumer<Tag.Builder>... tags)
The tags assigned to the EC2 Instance Connect Endpoint.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tags(List.) - Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection)
-
-