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 Details

    • 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:
    • 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:
    • 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

      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

      The state of the load balancer.

      This is a convenience method that creates an instance of the LoadBalancerState.Builder avoiding the need to create one manually via LoadBalancerState.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to state(LoadBalancerState).

      Parameters:
      state - a consumer that will call methods on LoadBalancerState.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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:
    • 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:
    • 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 the AvailabilityZone.Builder avoiding the need to create one manually via AvailabilityZone.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to availabilityZones(List<AvailabilityZone>).

      Parameters:
      availabilityZones - a consumer that will call methods on AvailabilityZone.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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 by the subnets for your load balancer. The possible values are ipv4 (for IPv4 addresses) and dualstack (for IPv4 and IPv6 addresses).

      Parameters:
      ipAddressType - 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).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • ipAddressType

      LoadBalancer.Builder ipAddressType(IpAddressType ipAddressType)

      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).

      Parameters:
      ipAddressType - 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).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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.