Interface CreateLoadBalancerRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateLoadBalancerRequest.Builder,CreateLoadBalancerRequest>
,ElasticLoadBalancingRequest.Builder
,SdkBuilder<CreateLoadBalancerRequest.Builder,CreateLoadBalancerRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- CreateLoadBalancerRequest
public static interface CreateLoadBalancerRequest.Builder extends ElasticLoadBalancingRequest.Builder, SdkPojo, CopyableBuilder<CreateLoadBalancerRequest.Builder,CreateLoadBalancerRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CreateLoadBalancerRequest.Builder
availabilityZones(String... availabilityZones)
One or more Availability Zones from the same region as the load balancer.CreateLoadBalancerRequest.Builder
availabilityZones(Collection<String> availabilityZones)
One or more Availability Zones from the same region as the load balancer.CreateLoadBalancerRequest.Builder
listeners(Collection<Listener> listeners)
The listeners.CreateLoadBalancerRequest.Builder
listeners(Consumer<Listener.Builder>... listeners)
The listeners.CreateLoadBalancerRequest.Builder
listeners(Listener... listeners)
The listeners.CreateLoadBalancerRequest.Builder
loadBalancerName(String loadBalancerName)
The name of the load balancer.CreateLoadBalancerRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
CreateLoadBalancerRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
CreateLoadBalancerRequest.Builder
scheme(String scheme)
The type of a load balancer.CreateLoadBalancerRequest.Builder
securityGroups(String... securityGroups)
The IDs of the security groups to assign to the load balancer.CreateLoadBalancerRequest.Builder
securityGroups(Collection<String> securityGroups)
The IDs of the security groups to assign to the load balancer.CreateLoadBalancerRequest.Builder
subnets(String... subnets)
The IDs of the subnets in your VPC to attach to the load balancer.CreateLoadBalancerRequest.Builder
subnets(Collection<String> subnets)
The IDs of the subnets in your VPC to attach to the load balancer.CreateLoadBalancerRequest.Builder
tags(Collection<Tag> tags)
A list of tags to assign to the load balancer.CreateLoadBalancerRequest.Builder
tags(Consumer<Tag.Builder>... tags)
A list of tags to assign to the load balancer.CreateLoadBalancerRequest.Builder
tags(Tag... tags)
A list of tags to assign to the load balancer.-
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.elasticloadbalancing.model.ElasticLoadBalancingRequest.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 Detail
-
loadBalancerName
CreateLoadBalancerRequest.Builder loadBalancerName(String loadBalancerName)
The name of the load balancer.
This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
- Parameters:
loadBalancerName
- The name of the load balancer.This name must be unique within your set of load balancers for the region, must have a maximum of 32 characters, must contain only alphanumeric characters or hyphens, and cannot begin or end with a hyphen.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listeners
CreateLoadBalancerRequest.Builder listeners(Collection<Listener> listeners)
The listeners.
For more information, see Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide.
- Parameters:
listeners
- The listeners.For more information, see Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listeners
CreateLoadBalancerRequest.Builder listeners(Listener... listeners)
The listeners.
For more information, see Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide.
- Parameters:
listeners
- The listeners.For more information, see Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listeners
CreateLoadBalancerRequest.Builder listeners(Consumer<Listener.Builder>... listeners)
The listeners.
For more information, see Listeners for Your Classic Load Balancer in the Classic Load Balancers Guide.
This is a convenience method that creates an instance of theListener.Builder
avoiding the need to create one manually viaListener.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#listeners(List
.) - Parameters:
listeners
- a consumer that will call methods onListener.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#listeners(java.util.Collection
)
-
availabilityZones
CreateLoadBalancerRequest.Builder availabilityZones(Collection<String> availabilityZones)
One or more Availability Zones from the same region as the load balancer.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
- Parameters:
availabilityZones
- One or more Availability Zones from the same region as the load balancer.You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZones
CreateLoadBalancerRequest.Builder availabilityZones(String... availabilityZones)
One or more Availability Zones from the same region as the load balancer.
You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
- Parameters:
availabilityZones
- One or more Availability Zones from the same region as the load balancer.You must specify at least one Availability Zone.
You can add more Availability Zones after you create the load balancer using EnableAvailabilityZonesForLoadBalancer.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
CreateLoadBalancerRequest.Builder subnets(Collection<String> subnets)
The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in
AvailabilityZones
.- Parameters:
subnets
- The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified inAvailabilityZones
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
CreateLoadBalancerRequest.Builder subnets(String... subnets)
The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified in
AvailabilityZones
.- Parameters:
subnets
- The IDs of the subnets in your VPC to attach to the load balancer. Specify one subnet per Availability Zone specified inAvailabilityZones
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
CreateLoadBalancerRequest.Builder securityGroups(Collection<String> securityGroups)
The IDs of the security groups to assign to the load balancer.
- Parameters:
securityGroups
- The IDs of the security groups to assign to the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
CreateLoadBalancerRequest.Builder securityGroups(String... securityGroups)
The IDs of the security groups to assign to the load balancer.
- Parameters:
securityGroups
- The IDs of the security groups to assign to the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scheme
CreateLoadBalancerRequest.Builder scheme(String scheme)
The type of a load balancer. Valid only for load balancers in a VPC.
By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme in the Elastic Load Balancing User Guide.
Specify
internal
to create a load balancer with a DNS name that resolves to private IP addresses.- Parameters:
scheme
- The type of a load balancer. Valid only for load balancers in a VPC.By default, Elastic Load Balancing creates an Internet-facing load balancer with a DNS name that resolves to public IP addresses. For more information about Internet-facing and Internal load balancers, see Load Balancer Scheme in the Elastic Load Balancing User Guide.
Specify
internal
to create a load balancer with a DNS name that resolves to private IP addresses.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateLoadBalancerRequest.Builder tags(Collection<Tag> tags)
A list of tags to assign to the load balancer.
For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.
- Parameters:
tags
- A list of tags to assign to the load balancer.For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateLoadBalancerRequest.Builder tags(Tag... tags)
A list of tags to assign to the load balancer.
For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.
- Parameters:
tags
- A list of tags to assign to the load balancer.For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
CreateLoadBalancerRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of tags to assign to the load balancer.
For more information about tagging your load balancer, see Tag Your Classic Load Balancer in the Classic Load Balancers Guide.
This is a convenience method that creates an instance of theTag.Builder
avoiding the need to create one manually viaTag.builder()
.When the
Consumer
completes,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
)
-
overrideConfiguration
CreateLoadBalancerRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
CreateLoadBalancerRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-