public static interface CreateLoadBalancerRequest.Builder extends ElasticLoadBalancingV2Request.Builder, CopyableBuilder<CreateLoadBalancerRequest.Builder,CreateLoadBalancerRequest>
Modifier and Type | Method and Description |
---|---|
CreateLoadBalancerRequest.Builder |
ipAddressType(IpAddressType ipAddressType)
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer.
|
CreateLoadBalancerRequest.Builder |
ipAddressType(String ipAddressType)
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer.
|
CreateLoadBalancerRequest.Builder |
name(String name)
The name of the load balancer.
|
CreateLoadBalancerRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
CreateLoadBalancerRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
CreateLoadBalancerRequest.Builder |
scheme(LoadBalancerSchemeEnum scheme)
The nodes of an Internet-facing load balancer have public IP addresses.
|
CreateLoadBalancerRequest.Builder |
scheme(String scheme)
The nodes of an Internet-facing load balancer have public IP addresses.
|
CreateLoadBalancerRequest.Builder |
securityGroups(Collection<String> securityGroups)
[Application Load Balancers] The IDs of the security groups to assign to the load balancer.
|
CreateLoadBalancerRequest.Builder |
securityGroups(String... securityGroups)
[Application Load Balancers] The IDs of the security groups to assign to the load balancer.
|
CreateLoadBalancerRequest.Builder |
subnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the subnets to attach to the load balancer.
|
CreateLoadBalancerRequest.Builder |
subnetMappings(Consumer<SubnetMapping.Builder>... subnetMappings)
The IDs of the subnets to attach to the load balancer.
|
CreateLoadBalancerRequest.Builder |
subnetMappings(SubnetMapping... subnetMappings)
The IDs of the subnets to attach to the load balancer.
|
CreateLoadBalancerRequest.Builder |
subnets(Collection<String> subnets)
The IDs of the subnets to attach to the load balancer.
|
CreateLoadBalancerRequest.Builder |
subnets(String... subnets)
The IDs of the subnets to attach to the load balancer.
|
CreateLoadBalancerRequest.Builder |
tags(Collection<Tag> tags)
One or more tags to assign to the load balancer.
|
CreateLoadBalancerRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
One or more tags to assign to the load balancer.
|
CreateLoadBalancerRequest.Builder |
tags(Tag... tags)
One or more tags to assign to the load balancer.
|
CreateLoadBalancerRequest.Builder |
type(LoadBalancerTypeEnum type)
The type of load balancer to create.
|
CreateLoadBalancerRequest.Builder |
type(String type)
The type of load balancer to create.
|
build
overrideConfiguration
copy
applyMutation, build
CreateLoadBalancerRequest.Builder name(String name)
The name of the load balancer.
This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
name
- The name of the load balancer.
This name must be unique per region per account, can have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and must not begin or end with a hyphen.
CreateLoadBalancerRequest.Builder subnets(Collection<String> subnets)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
subnets
- The IDs of the subnets to attach to the load balancer. You can specify only one subnet per
Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
CreateLoadBalancerRequest.Builder subnets(String... subnets)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
subnets
- The IDs of the subnets to attach to the load balancer. You can specify only one subnet per
Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones.
[Network Load Balancers] You can specify subnets from one or more Availability Zones.
CreateLoadBalancerRequest.Builder subnetMappings(Collection<SubnetMapping> subnetMappings)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet.
subnetMappings
- The IDs of the subnets to attach to the load balancer. You can specify only one subnet per
Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet.
CreateLoadBalancerRequest.Builder subnetMappings(SubnetMapping... subnetMappings)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet.
subnetMappings
- The IDs of the subnets to attach to the load balancer. You can specify only one subnet per
Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet.
CreateLoadBalancerRequest.Builder subnetMappings(Consumer<SubnetMapping.Builder>... subnetMappings)
The IDs of the subnets to attach to the load balancer. You can specify only one subnet per Availability Zone. You must specify either subnets or subnet mappings.
[Application Load Balancers] You must specify subnets from at least two Availability Zones. You cannot specify Elastic IP addresses for your subnets.
[Network Load Balancers] You can specify subnets from one or more Availability Zones. You can specify one Elastic IP address per subnet.
This is a convenience that creates an instance of theList.Builder
avoiding the need
to create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and
its result is passed to #subnetMappings(List)
.subnetMappings
- a consumer that will call methods on List.Builder
#subnetMappings(List)
CreateLoadBalancerRequest.Builder securityGroups(Collection<String> securityGroups)
[Application Load Balancers] The IDs of the security groups to assign to the load balancer.
securityGroups
- [Application Load Balancers] The IDs of the security groups to assign to the load balancer.CreateLoadBalancerRequest.Builder securityGroups(String... securityGroups)
[Application Load Balancers] The IDs of the security groups to assign to the load balancer.
securityGroups
- [Application Load Balancers] The IDs of the security groups to assign to the load balancer.CreateLoadBalancerRequest.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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
LoadBalancerSchemeEnum
,
LoadBalancerSchemeEnum
CreateLoadBalancerRequest.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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
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 only route requests from clients with access to the VPC for the load balancer.
The default is an Internet-facing load balancer.
LoadBalancerSchemeEnum
,
LoadBalancerSchemeEnum
CreateLoadBalancerRequest.Builder tags(Collection<Tag> tags)
One or more tags to assign to the load balancer.
tags
- One or more tags to assign to the load balancer.CreateLoadBalancerRequest.Builder tags(Tag... tags)
One or more tags to assign to the load balancer.
tags
- One or more tags to assign to the load balancer.CreateLoadBalancerRequest.Builder tags(Consumer<Tag.Builder>... tags)
One or more tags to assign to the load balancer.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
CreateLoadBalancerRequest.Builder type(String type)
The type of load balancer to create. The default is application
.
type
- The type of load balancer to create. The default is application
.LoadBalancerTypeEnum
,
LoadBalancerTypeEnum
CreateLoadBalancerRequest.Builder type(LoadBalancerTypeEnum type)
The type of load balancer to create. The default is application
.
type
- The type of load balancer to create. The default is application
.LoadBalancerTypeEnum
,
LoadBalancerTypeEnum
CreateLoadBalancerRequest.Builder ipAddressType(String ipAddressType)
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer. The
possible values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses). Internal load balancers must use ipv4
.
ipAddressType
- [Application Load Balancers] The type of IP addresses used by the subnets for your load balancer. The
possible values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and
IPv6 addresses). Internal load balancers must use ipv4
.IpAddressType
,
IpAddressType
CreateLoadBalancerRequest.Builder ipAddressType(IpAddressType ipAddressType)
[Application Load Balancers] The type of IP addresses used by the subnets for your load balancer. The
possible values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and IPv6
addresses). Internal load balancers must use ipv4
.
ipAddressType
- [Application Load Balancers] The type of IP addresses used by the subnets for your load balancer. The
possible values are ipv4
(for IPv4 addresses) and dualstack
(for IPv4 and
IPv6 addresses). Internal load balancers must use ipv4
.IpAddressType
,
IpAddressType
CreateLoadBalancerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.CreateLoadBalancerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.