Interface LoadBalancer.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<LoadBalancer.Builder,LoadBalancer>
,SdkBuilder<LoadBalancer.Builder,LoadBalancer>
,SdkPojo
- Enclosing class:
- LoadBalancer
public static interface LoadBalancer.Builder extends SdkPojo, CopyableBuilder<LoadBalancer.Builder,LoadBalancer>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LoadBalancer.Builder
availabilityZones(Collection<AvailabilityZone> availabilityZones)
The subnets for the load balancer.LoadBalancer.Builder
availabilityZones(Consumer<AvailabilityZone.Builder>... availabilityZones)
The subnets for the load balancer.LoadBalancer.Builder
availabilityZones(AvailabilityZone... availabilityZones)
The subnets for the load balancer.LoadBalancer.Builder
canonicalHostedZoneId(String canonicalHostedZoneId)
The ID of the Amazon Route 53 hosted zone associated with the load balancer.LoadBalancer.Builder
createdTime(Instant createdTime)
The date and time the load balancer was created.LoadBalancer.Builder
customerOwnedIpv4Pool(String customerOwnedIpv4Pool)
[Application Load Balancers on Outposts] The ID of the customer-owned address pool.LoadBalancer.Builder
dnsName(String dnsName)
The public DNS name of the load balancer.LoadBalancer.Builder
enablePrefixForIpv6SourceNat(String enablePrefixForIpv6SourceNat)
[Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for source NAT.LoadBalancer.Builder
enablePrefixForIpv6SourceNat(EnablePrefixForIpv6SourceNatEnum enablePrefixForIpv6SourceNat)
[Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for source NAT.LoadBalancer.Builder
enforceSecurityGroupInboundRulesOnPrivateLinkTraffic(String enforceSecurityGroupInboundRulesOnPrivateLinkTraffic)
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.LoadBalancer.Builder
ipAddressType(String ipAddressType)
The type of IP addresses used for public or private connections by the subnets attached to your load balancer.LoadBalancer.Builder
ipAddressType(IpAddressType ipAddressType)
The type of IP addresses used for public or private connections by the subnets attached to your load balancer.LoadBalancer.Builder
loadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.LoadBalancer.Builder
loadBalancerName(String loadBalancerName)
The name of the load balancer.LoadBalancer.Builder
scheme(String scheme)
The nodes of an Internet-facing load balancer have public IP addresses.LoadBalancer.Builder
scheme(LoadBalancerSchemeEnum scheme)
The nodes of an Internet-facing load balancer have public IP addresses.LoadBalancer.Builder
securityGroups(String... securityGroups)
The IDs of the security groups for the load balancer.LoadBalancer.Builder
securityGroups(Collection<String> securityGroups)
The IDs of the security groups for the load balancer.default LoadBalancer.Builder
state(Consumer<LoadBalancerState.Builder> state)
The state of the load balancer.LoadBalancer.Builder
state(LoadBalancerState state)
The state of the load balancer.LoadBalancer.Builder
type(String type)
The type of load balancer.LoadBalancer.Builder
type(LoadBalancerTypeEnum type)
The type of load balancer.LoadBalancer.Builder
vpcId(String vpcId)
The ID of the VPC for the load balancer.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
loadBalancerArn
LoadBalancer.Builder loadBalancerArn(String loadBalancerArn)
The Amazon Resource Name (ARN) of the load balancer.
- Parameters:
loadBalancerArn
- The Amazon Resource Name (ARN) of the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dnsName
LoadBalancer.Builder dnsName(String dnsName)
The public DNS name of the load balancer.
- Parameters:
dnsName
- The public DNS name of the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
canonicalHostedZoneId
LoadBalancer.Builder canonicalHostedZoneId(String canonicalHostedZoneId)
The ID of the Amazon Route 53 hosted zone associated with the load balancer.
- Parameters:
canonicalHostedZoneId
- The ID of the Amazon Route 53 hosted zone associated with the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdTime
LoadBalancer.Builder createdTime(Instant createdTime)
The date and time the load balancer was created.
- Parameters:
createdTime
- The date and time the load balancer was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loadBalancerName
LoadBalancer.Builder loadBalancerName(String loadBalancerName)
The name of the load balancer.
- Parameters:
loadBalancerName
- The name of the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheme
LoadBalancer.Builder scheme(String scheme)
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer.
- Parameters:
scheme
- The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet.The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LoadBalancerSchemeEnum
,LoadBalancerSchemeEnum
-
scheme
LoadBalancer.Builder scheme(LoadBalancerSchemeEnum scheme)
The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet.
The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer.
- Parameters:
scheme
- The nodes of an Internet-facing load balancer have public IP addresses. The DNS name of an Internet-facing load balancer is publicly resolvable to the public IP addresses of the nodes. Therefore, Internet-facing load balancers can route requests from clients over the internet.The nodes of an internal load balancer have only private IP addresses. The DNS name of an internal load balancer is publicly resolvable to the private IP addresses of the nodes. Therefore, internal load balancers can route requests only from clients with access to the VPC for the load balancer.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LoadBalancerSchemeEnum
,LoadBalancerSchemeEnum
-
vpcId
LoadBalancer.Builder vpcId(String vpcId)
The ID of the VPC for the load balancer.
- Parameters:
vpcId
- The ID of the VPC for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
LoadBalancer.Builder state(LoadBalancerState state)
The state of the load balancer.
- Parameters:
state
- The state of the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
default LoadBalancer.Builder state(Consumer<LoadBalancerState.Builder> state)
The state of the load balancer.
This is a convenience method that creates an instance of theLoadBalancerState.Builder
avoiding the need to create one manually viaLoadBalancerState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostate(LoadBalancerState)
.- Parameters:
state
- a consumer that will call methods onLoadBalancerState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
state(LoadBalancerState)
-
type
LoadBalancer.Builder type(String type)
The type of load balancer.
- Parameters:
type
- The type of load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LoadBalancerTypeEnum
,LoadBalancerTypeEnum
-
type
LoadBalancer.Builder type(LoadBalancerTypeEnum type)
The type of load balancer.
- Parameters:
type
- The type of load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
LoadBalancerTypeEnum
,LoadBalancerTypeEnum
-
availabilityZones
LoadBalancer.Builder availabilityZones(Collection<AvailabilityZone> availabilityZones)
The subnets for the load balancer.
- Parameters:
availabilityZones
- The subnets for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZones
LoadBalancer.Builder availabilityZones(AvailabilityZone... availabilityZones)
The subnets for the load balancer.
- Parameters:
availabilityZones
- The subnets for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZones
LoadBalancer.Builder availabilityZones(Consumer<AvailabilityZone.Builder>... availabilityZones)
The subnets for the load balancer.
This is a convenience method that creates an instance of theAvailabilityZone.Builder
avoiding the need to create one manually viaAvailabilityZone.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#availabilityZones(List
.) - Parameters:
availabilityZones
- a consumer that will call methods onAvailabilityZone.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#availabilityZones(java.util.Collection
)
-
securityGroups
LoadBalancer.Builder securityGroups(Collection<String> securityGroups)
The IDs of the security groups for the load balancer.
- Parameters:
securityGroups
- The IDs of the security groups for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
LoadBalancer.Builder securityGroups(String... securityGroups)
The IDs of the security groups for the load balancer.
- Parameters:
securityGroups
- The IDs of the security groups for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ipAddressType
LoadBalancer.Builder ipAddressType(String ipAddressType)
The type of IP addresses used for public or private connections by the subnets attached to your load balancer.
[Application Load Balancers] The possible values are
ipv4
(IPv4 addresses),dualstack
(IPv4 and IPv6 addresses), anddualstack-without-public-ipv4
(public IPv6 addresses and private IPv4 and IPv6 addresses).[Network Load Balancers and Gateway Load Balancers] The possible values are
ipv4
(IPv4 addresses) anddualstack
(IPv4 and IPv6 addresses).- Parameters:
ipAddressType
- The type of IP addresses used for public or private connections by the subnets attached to your load balancer.[Application Load Balancers] The possible values are
ipv4
(IPv4 addresses),dualstack
(IPv4 and IPv6 addresses), anddualstack-without-public-ipv4
(public IPv6 addresses and private IPv4 and IPv6 addresses).[Network Load Balancers and Gateway Load Balancers] The possible values are
ipv4
(IPv4 addresses) anddualstack
(IPv4 and IPv6 addresses).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IpAddressType
,IpAddressType
-
ipAddressType
LoadBalancer.Builder ipAddressType(IpAddressType ipAddressType)
The type of IP addresses used for public or private connections by the subnets attached to your load balancer.
[Application Load Balancers] The possible values are
ipv4
(IPv4 addresses),dualstack
(IPv4 and IPv6 addresses), anddualstack-without-public-ipv4
(public IPv6 addresses and private IPv4 and IPv6 addresses).[Network Load Balancers and Gateway Load Balancers] The possible values are
ipv4
(IPv4 addresses) anddualstack
(IPv4 and IPv6 addresses).- Parameters:
ipAddressType
- The type of IP addresses used for public or private connections by the subnets attached to your load balancer.[Application Load Balancers] The possible values are
ipv4
(IPv4 addresses),dualstack
(IPv4 and IPv6 addresses), anddualstack-without-public-ipv4
(public IPv6 addresses and private IPv4 and IPv6 addresses).[Network Load Balancers and Gateway Load Balancers] The possible values are
ipv4
(IPv4 addresses) anddualstack
(IPv4 and IPv6 addresses).- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
IpAddressType
,IpAddressType
-
customerOwnedIpv4Pool
LoadBalancer.Builder customerOwnedIpv4Pool(String customerOwnedIpv4Pool)
[Application Load Balancers on Outposts] The ID of the customer-owned address pool.
- Parameters:
customerOwnedIpv4Pool
- [Application Load Balancers on Outposts] The ID of the customer-owned address pool.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enforceSecurityGroupInboundRulesOnPrivateLinkTraffic
LoadBalancer.Builder enforceSecurityGroupInboundRulesOnPrivateLinkTraffic(String enforceSecurityGroupInboundRulesOnPrivateLinkTraffic)
Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.
- Parameters:
enforceSecurityGroupInboundRulesOnPrivateLinkTraffic
- Indicates whether to evaluate inbound security group rules for traffic sent to a Network Load Balancer through Amazon Web Services PrivateLink.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enablePrefixForIpv6SourceNat
LoadBalancer.Builder enablePrefixForIpv6SourceNat(String enablePrefixForIpv6SourceNat)
[Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for source NAT. The IP address type must be
dualstack
. The default value isoff
.- Parameters:
enablePrefixForIpv6SourceNat
- [Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for source NAT. The IP address type must bedualstack
. The default value isoff
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EnablePrefixForIpv6SourceNatEnum
,EnablePrefixForIpv6SourceNatEnum
-
enablePrefixForIpv6SourceNat
LoadBalancer.Builder enablePrefixForIpv6SourceNat(EnablePrefixForIpv6SourceNatEnum enablePrefixForIpv6SourceNat)
[Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for source NAT. The IP address type must be
dualstack
. The default value isoff
.- Parameters:
enablePrefixForIpv6SourceNat
- [Network Load Balancers with UDP listeners] Indicates whether to use an IPv6 prefix from each subnet for source NAT. The IP address type must bedualstack
. The default value isoff
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
EnablePrefixForIpv6SourceNatEnum
,EnablePrefixForIpv6SourceNatEnum
-
-