Interface LoadBalancerDescription.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<LoadBalancerDescription.Builder,
,LoadBalancerDescription> SdkBuilder<LoadBalancerDescription.Builder,
,LoadBalancerDescription> SdkPojo
- Enclosing class:
LoadBalancerDescription
-
Method Summary
Modifier and TypeMethodDescriptionavailabilityZones
(String... availabilityZones) The Availability Zones for the load balancer.availabilityZones
(Collection<String> availabilityZones) The Availability Zones for the load balancer.backendServerDescriptions
(Collection<BackendServerDescription> backendServerDescriptions) Information about your EC2 instances.backendServerDescriptions
(Consumer<BackendServerDescription.Builder>... backendServerDescriptions) Information about your EC2 instances.backendServerDescriptions
(BackendServerDescription... backendServerDescriptions) Information about your EC2 instances.canonicalHostedZoneName
(String canonicalHostedZoneName) The DNS name of the load balancer.canonicalHostedZoneNameID
(String canonicalHostedZoneNameID) The ID of the Amazon Route 53 hosted zone for the load balancer.createdTime
(Instant createdTime) The date and time the load balancer was created.The DNS name of the load balancer.default LoadBalancerDescription.Builder
healthCheck
(Consumer<HealthCheck.Builder> healthCheck) Information about the health checks conducted on the load balancer.healthCheck
(HealthCheck healthCheck) Information about the health checks conducted on the load balancer.instances
(Collection<Instance> instances) The IDs of the instances for the load balancer.instances
(Consumer<Instance.Builder>... instances) The IDs of the instances for the load balancer.The IDs of the instances for the load balancer.listenerDescriptions
(Collection<ListenerDescription> listenerDescriptions) The listeners for the load balancer.listenerDescriptions
(Consumer<ListenerDescription.Builder>... listenerDescriptions) The listeners for the load balancer.listenerDescriptions
(ListenerDescription... listenerDescriptions) The listeners for the load balancer.loadBalancerName
(String loadBalancerName) The name of the load balancer.default LoadBalancerDescription.Builder
policies
(Consumer<Policies.Builder> policies) The policies defined for the load balancer.The policies defined for the load balancer.The type of load balancer.securityGroups
(String... securityGroups) The security groups for the load balancer.securityGroups
(Collection<String> securityGroups) The security groups for the load balancer.default LoadBalancerDescription.Builder
sourceSecurityGroup
(Consumer<SourceSecurityGroup.Builder> sourceSecurityGroup) The security group for the load balancer, which you can use as part of your inbound rules for your registered instances.sourceSecurityGroup
(SourceSecurityGroup sourceSecurityGroup) The security group for the load balancer, which you can use as part of your inbound rules for your registered instances.The IDs of the subnets for the load balancer.subnets
(Collection<String> subnets) The IDs of the subnets for the load balancer.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, sdkFields
-
Method Details
-
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.
-
dnsName
The DNS name of the load balancer.
- Parameters:
dnsName
- The DNS name of the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
canonicalHostedZoneName
The DNS name of the load balancer.
For more information, see Configure a Custom Domain Name in the Classic Load Balancers Guide.
- Parameters:
canonicalHostedZoneName
- The DNS name of the load balancer.For more information, see Configure a Custom Domain Name in the Classic Load Balancers Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
canonicalHostedZoneNameID
The ID of the Amazon Route 53 hosted zone for the load balancer.
- Parameters:
canonicalHostedZoneNameID
- The ID of the Amazon Route 53 hosted zone for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listenerDescriptions
LoadBalancerDescription.Builder listenerDescriptions(Collection<ListenerDescription> listenerDescriptions) The listeners for the load balancer.
- Parameters:
listenerDescriptions
- The listeners for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listenerDescriptions
The listeners for the load balancer.
- Parameters:
listenerDescriptions
- The listeners for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
listenerDescriptions
LoadBalancerDescription.Builder listenerDescriptions(Consumer<ListenerDescription.Builder>... listenerDescriptions) The listeners for the load balancer.
This is a convenience method that creates an instance of theListenerDescription.Builder
avoiding the need to create one manually viaListenerDescription.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tolistenerDescriptions(List<ListenerDescription>)
.- Parameters:
listenerDescriptions
- a consumer that will call methods onListenerDescription.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
policies
The policies defined for the load balancer.
- Parameters:
policies
- The policies defined for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policies
The policies defined for the load balancer.
This is a convenience method that creates an instance of thePolicies.Builder
avoiding the need to create one manually viaPolicies.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topolicies(Policies)
.- Parameters:
policies
- a consumer that will call methods onPolicies.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
backendServerDescriptions
LoadBalancerDescription.Builder backendServerDescriptions(Collection<BackendServerDescription> backendServerDescriptions) Information about your EC2 instances.
- Parameters:
backendServerDescriptions
- Information about your EC2 instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backendServerDescriptions
LoadBalancerDescription.Builder backendServerDescriptions(BackendServerDescription... backendServerDescriptions) Information about your EC2 instances.
- Parameters:
backendServerDescriptions
- Information about your EC2 instances.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
backendServerDescriptions
LoadBalancerDescription.Builder backendServerDescriptions(Consumer<BackendServerDescription.Builder>... backendServerDescriptions) Information about your EC2 instances.
This is a convenience method that creates an instance of theBackendServerDescription.Builder
avoiding the need to create one manually viaBackendServerDescription.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tobackendServerDescriptions(List<BackendServerDescription>)
.- Parameters:
backendServerDescriptions
- a consumer that will call methods onBackendServerDescription.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
availabilityZones
The Availability Zones for the load balancer.
- Parameters:
availabilityZones
- The Availability Zones for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilityZones
The Availability Zones for the load balancer.
- Parameters:
availabilityZones
- The Availability Zones for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
The IDs of the subnets for the load balancer.
- Parameters:
subnets
- The IDs of the subnets for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subnets
The IDs of the subnets for the load balancer.
- Parameters:
subnets
- The IDs of the subnets for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
instances
The IDs of the instances for the load balancer.
- Parameters:
instances
- The IDs of the instances for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
The IDs of the instances for the load balancer.
- Parameters:
instances
- The IDs of the instances for the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
instances
The IDs of the instances for the load balancer.
This is a convenience method that creates an instance of theInstance.Builder
avoiding the need to create one manually viaInstance.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinstances(List<Instance>)
.- Parameters:
instances
- a consumer that will call methods onInstance.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
healthCheck
Information about the health checks conducted on the load balancer.
- Parameters:
healthCheck
- Information about the health checks conducted on the load balancer.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
healthCheck
Information about the health checks conducted on the load balancer.
This is a convenience method that creates an instance of theHealthCheck.Builder
avoiding the need to create one manually viaHealthCheck.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tohealthCheck(HealthCheck)
.- Parameters:
healthCheck
- a consumer that will call methods onHealthCheck.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sourceSecurityGroup
The security group for the load balancer, which you can use as part of your inbound rules for your registered instances. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
- Parameters:
sourceSecurityGroup
- The security group for the load balancer, which you can use as part of your inbound rules for your registered instances. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sourceSecurityGroup
default LoadBalancerDescription.Builder sourceSecurityGroup(Consumer<SourceSecurityGroup.Builder> sourceSecurityGroup) The security group for the load balancer, which you can use as part of your inbound rules for your registered instances. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
This is a convenience method that creates an instance of theSourceSecurityGroup.Builder
avoiding the need to create one manually viaSourceSecurityGroup.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosourceSecurityGroup(SourceSecurityGroup)
.- Parameters:
sourceSecurityGroup
- a consumer that will call methods onSourceSecurityGroup.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
securityGroups
The security groups for the load balancer. Valid only for load balancers in a VPC.
- Parameters:
securityGroups
- The security groups for the load balancer. Valid only for load balancers in a VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
securityGroups
The security groups for the load balancer. Valid only for load balancers in a VPC.
- Parameters:
securityGroups
- The security groups for the load balancer. Valid only for load balancers in a VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
scheme
The type of load balancer. Valid only for load balancers in a VPC.
If
Scheme
isinternet-facing
, the load balancer has a public DNS name that resolves to a public IP address.If
Scheme
isinternal
, the load balancer has a public DNS name that resolves to a private IP address.- Parameters:
scheme
- The type of load balancer. Valid only for load balancers in a VPC.If
Scheme
isinternet-facing
, the load balancer has a public DNS name that resolves to a public IP address.If
Scheme
isinternal
, the load balancer has a public DNS name that resolves to a private IP address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-