Interface LoadBalancerDescription.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<LoadBalancerDescription.Builder,LoadBalancerDescription>,SdkBuilder<LoadBalancerDescription.Builder,LoadBalancerDescription>,SdkPojo
- Enclosing class:
- LoadBalancerDescription
public static interface LoadBalancerDescription.Builder extends SdkPojo, CopyableBuilder<LoadBalancerDescription.Builder,LoadBalancerDescription>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description LoadBalancerDescription.BuilderavailabilityZones(String... availabilityZones)The Availability Zones for the load balancer.LoadBalancerDescription.BuilderavailabilityZones(Collection<String> availabilityZones)The Availability Zones for the load balancer.LoadBalancerDescription.BuilderbackendServerDescriptions(Collection<BackendServerDescription> backendServerDescriptions)Information about your EC2 instances.LoadBalancerDescription.BuilderbackendServerDescriptions(Consumer<BackendServerDescription.Builder>... backendServerDescriptions)Information about your EC2 instances.LoadBalancerDescription.BuilderbackendServerDescriptions(BackendServerDescription... backendServerDescriptions)Information about your EC2 instances.LoadBalancerDescription.BuildercanonicalHostedZoneName(String canonicalHostedZoneName)The DNS name of the load balancer.LoadBalancerDescription.BuildercanonicalHostedZoneNameID(String canonicalHostedZoneNameID)The ID of the Amazon Route 53 hosted zone for the load balancer.LoadBalancerDescription.BuildercreatedTime(Instant createdTime)The date and time the load balancer was created.LoadBalancerDescription.BuilderdnsName(String dnsName)The DNS name of the load balancer.default LoadBalancerDescription.BuilderhealthCheck(Consumer<HealthCheck.Builder> healthCheck)Information about the health checks conducted on the load balancer.LoadBalancerDescription.BuilderhealthCheck(HealthCheck healthCheck)Information about the health checks conducted on the load balancer.LoadBalancerDescription.Builderinstances(Collection<Instance> instances)The IDs of the instances for the load balancer.LoadBalancerDescription.Builderinstances(Consumer<Instance.Builder>... instances)The IDs of the instances for the load balancer.LoadBalancerDescription.Builderinstances(Instance... instances)The IDs of the instances for the load balancer.LoadBalancerDescription.BuilderlistenerDescriptions(Collection<ListenerDescription> listenerDescriptions)The listeners for the load balancer.LoadBalancerDescription.BuilderlistenerDescriptions(Consumer<ListenerDescription.Builder>... listenerDescriptions)The listeners for the load balancer.LoadBalancerDescription.BuilderlistenerDescriptions(ListenerDescription... listenerDescriptions)The listeners for the load balancer.LoadBalancerDescription.BuilderloadBalancerName(String loadBalancerName)The name of the load balancer.default LoadBalancerDescription.Builderpolicies(Consumer<Policies.Builder> policies)The policies defined for the load balancer.LoadBalancerDescription.Builderpolicies(Policies policies)The policies defined for the load balancer.LoadBalancerDescription.Builderscheme(String scheme)The type of load balancer.LoadBalancerDescription.BuildersecurityGroups(String... securityGroups)The security groups for the load balancer.LoadBalancerDescription.BuildersecurityGroups(Collection<String> securityGroups)The security groups for the load balancer.default LoadBalancerDescription.BuildersourceSecurityGroup(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.LoadBalancerDescription.BuildersourceSecurityGroup(SourceSecurityGroup sourceSecurityGroup)The security group for the load balancer, which you can use as part of your inbound rules for your registered instances.LoadBalancerDescription.Buildersubnets(String... subnets)The IDs of the subnets for the load balancer.LoadBalancerDescription.Buildersubnets(Collection<String> subnets)The IDs of the subnets for the load balancer.LoadBalancerDescription.BuildervpcId(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
-
loadBalancerName
LoadBalancerDescription.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.
-
dnsName
LoadBalancerDescription.Builder dnsName(String 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
LoadBalancerDescription.Builder canonicalHostedZoneName(String 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
LoadBalancerDescription.Builder canonicalHostedZoneNameID(String 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
LoadBalancerDescription.Builder listenerDescriptions(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
LoadBalancerDescription.Builder listenerDescriptions(Consumer<ListenerDescription.Builder>... listenerDescriptions)
The listeners for the load balancer.
This is a convenience method that creates an instance of theListenerDescription.Builderavoiding the need to create one manually viaListenerDescription.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#listenerDescriptions(List.) - 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:
#listenerDescriptions(java.util.Collection)
-
policies
LoadBalancerDescription.Builder policies(Policies 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
default LoadBalancerDescription.Builder policies(Consumer<Policies.Builder> policies)
The policies defined for the load balancer.
This is a convenience method that creates an instance of thePolicies.Builderavoiding the need to create one manually viaPolicies.builder().When the
Consumercompletes,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:
policies(Policies)
-
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.Builderavoiding the need to create one manually viaBackendServerDescription.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#backendServerDescriptions(List.) - 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:
#backendServerDescriptions(java.util.Collection)
-
availabilityZones
LoadBalancerDescription.Builder availabilityZones(Collection<String> 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
LoadBalancerDescription.Builder availabilityZones(String... 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
LoadBalancerDescription.Builder subnets(Collection<String> 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
LoadBalancerDescription.Builder subnets(String... 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
LoadBalancerDescription.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.
-
instances
LoadBalancerDescription.Builder instances(Collection<Instance> 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
LoadBalancerDescription.Builder instances(Instance... 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
LoadBalancerDescription.Builder instances(Consumer<Instance.Builder>... instances)
The IDs of the instances for the load balancer.
This is a convenience method that creates an instance of theInstance.Builderavoiding the need to create one manually viaInstance.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#instances(List.) - 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:
#instances(java.util.Collection)
-
healthCheck
LoadBalancerDescription.Builder healthCheck(HealthCheck 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
default LoadBalancerDescription.Builder healthCheck(Consumer<HealthCheck.Builder> healthCheck)
Information about the health checks conducted on the load balancer.
This is a convenience method that creates an instance of theHealthCheck.Builderavoiding the need to create one manually viaHealthCheck.builder().When the
Consumercompletes,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:
healthCheck(HealthCheck)
-
sourceSecurityGroup
LoadBalancerDescription.Builder sourceSecurityGroup(SourceSecurityGroup 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.Builderavoiding the need to create one manually viaSourceSecurityGroup.builder().When the
Consumercompletes,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:
sourceSecurityGroup(SourceSecurityGroup)
-
securityGroups
LoadBalancerDescription.Builder securityGroups(Collection<String> 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
LoadBalancerDescription.Builder securityGroups(String... 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
LoadBalancerDescription.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.
-
scheme
LoadBalancerDescription.Builder scheme(String scheme)
The type of load balancer. Valid only for load balancers in a VPC.
If
Schemeisinternet-facing, the load balancer has a public DNS name that resolves to a public IP address.If
Schemeisinternal, 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
Schemeisinternet-facing, the load balancer has a public DNS name that resolves to a public IP address.If
Schemeisinternal, 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.
-
-