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 Details

    • 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

      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 the ListenerDescription.Builder avoiding the need to create one manually via ListenerDescription.builder().

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

      Parameters:
      listenerDescriptions - a consumer that will call methods on ListenerDescription.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 the Policies.Builder avoiding the need to create one manually via Policies.builder().

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

      Parameters:
      policies - a consumer that will call methods on Policies.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 the BackendServerDescription.Builder avoiding the need to create one manually via BackendServerDescription.builder().

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

      Parameters:
      backendServerDescriptions - a consumer that will call methods on BackendServerDescription.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      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

      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

      The IDs of the instances for the load balancer.

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

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

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

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

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

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

      Parameters:
      sourceSecurityGroup - a consumer that will call methods on SourceSecurityGroup.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • 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

      The type of load balancer. Valid only for load balancers in a VPC.

      If Scheme is internet-facing, the load balancer has a public DNS name that resolves to a public IP address.

      If Scheme is internal, 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 is internet-facing, the load balancer has a public DNS name that resolves to a public IP address.

      If Scheme is internal, 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.