public static interface LoadBalancer.Builder extends SdkPojo, CopyableBuilder<LoadBalancer.Builder,LoadBalancer>
| Modifier and Type | Method and Description |
|---|---|
LoadBalancer.Builder |
arn(String arn)
The Amazon Resource Name (ARN) of the load balancer.
|
LoadBalancer.Builder |
configurationOptions(Map<LoadBalancerAttributeName,String> configurationOptions)
A string to string map of the configuration options for your load balancer.
|
LoadBalancer.Builder |
configurationOptionsWithStrings(Map<String,String> configurationOptions)
A string to string map of the configuration options for your load balancer.
|
LoadBalancer.Builder |
createdAt(Instant createdAt)
The date when your load balancer was created.
|
LoadBalancer.Builder |
dnsName(String dnsName)
The DNS name of your Lightsail load balancer.
|
LoadBalancer.Builder |
healthCheckPath(String healthCheckPath)
The path you specified to perform your health checks.
|
LoadBalancer.Builder |
httpsRedirectionEnabled(Boolean httpsRedirectionEnabled)
A Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.
|
LoadBalancer.Builder |
instanceHealthSummary(Collection<InstanceHealthSummary> instanceHealthSummary)
An array of InstanceHealthSummary objects describing the health of the load balancer.
|
LoadBalancer.Builder |
instanceHealthSummary(Consumer<InstanceHealthSummary.Builder>... instanceHealthSummary)
An array of InstanceHealthSummary objects describing the health of the load balancer.
|
LoadBalancer.Builder |
instanceHealthSummary(InstanceHealthSummary... instanceHealthSummary)
An array of InstanceHealthSummary objects describing the health of the load balancer.
|
LoadBalancer.Builder |
instancePort(Integer instancePort)
The port where the load balancer will direct traffic to your Lightsail instances.
|
LoadBalancer.Builder |
ipAddressType(IpAddressType ipAddressType)
The IP address type of the load balancer.
|
LoadBalancer.Builder |
ipAddressType(String ipAddressType)
The IP address type of the load balancer.
|
default LoadBalancer.Builder |
location(Consumer<ResourceLocation.Builder> location)
The AWS Region where your load balancer was created (e.g.,
us-east-2a). |
LoadBalancer.Builder |
location(ResourceLocation location)
The AWS Region where your load balancer was created (e.g.,
us-east-2a). |
LoadBalancer.Builder |
name(String name)
The name of the load balancer (e.g.,
my-load-balancer). |
LoadBalancer.Builder |
protocol(LoadBalancerProtocol protocol)
The protocol you have enabled for your load balancer.
|
LoadBalancer.Builder |
protocol(String protocol)
The protocol you have enabled for your load balancer.
|
LoadBalancer.Builder |
publicPorts(Collection<Integer> publicPorts)
An array of public port settings for your load balancer.
|
LoadBalancer.Builder |
publicPorts(Integer... publicPorts)
An array of public port settings for your load balancer.
|
LoadBalancer.Builder |
resourceType(ResourceType resourceType)
The resource type (e.g.,
LoadBalancer. |
LoadBalancer.Builder |
resourceType(String resourceType)
The resource type (e.g.,
LoadBalancer. |
LoadBalancer.Builder |
state(LoadBalancerState state)
The status of your load balancer.
|
LoadBalancer.Builder |
state(String state)
The status of your load balancer.
|
LoadBalancer.Builder |
supportCode(String supportCode)
The support code.
|
LoadBalancer.Builder |
tags(Collection<Tag> tags)
The tag keys and optional values for the resource.
|
LoadBalancer.Builder |
tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values for the resource.
|
LoadBalancer.Builder |
tags(Tag... tags)
The tag keys and optional values for the resource.
|
LoadBalancer.Builder |
tlsCertificateSummaries(Collection<LoadBalancerTlsCertificateSummary> tlsCertificateSummaries)
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS
certificates.
|
LoadBalancer.Builder |
tlsCertificateSummaries(Consumer<LoadBalancerTlsCertificateSummary.Builder>... tlsCertificateSummaries)
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS
certificates.
|
LoadBalancer.Builder |
tlsCertificateSummaries(LoadBalancerTlsCertificateSummary... tlsCertificateSummaries)
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS
certificates.
|
LoadBalancer.Builder |
tlsPolicyName(String tlsPolicyName)
The name of the TLS security policy for the load balancer.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildLoadBalancer.Builder name(String name)
The name of the load balancer (e.g., my-load-balancer).
name - The name of the load balancer (e.g., my-load-balancer).LoadBalancer.Builder arn(String arn)
The Amazon Resource Name (ARN) of the load balancer.
arn - The Amazon Resource Name (ARN) of the load balancer.LoadBalancer.Builder supportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about your Lightsail load balancer. This code enables our support team to look up your Lightsail information more easily.
supportCode - The support code. Include this code in your email to support when you have questions about your
Lightsail load balancer. This code enables our support team to look up your Lightsail information more
easily.LoadBalancer.Builder createdAt(Instant createdAt)
The date when your load balancer was created.
createdAt - The date when your load balancer was created.LoadBalancer.Builder location(ResourceLocation location)
The AWS Region where your load balancer was created (e.g., us-east-2a). Lightsail automatically
creates your load balancer across Availability Zones.
location - The AWS Region where your load balancer was created (e.g., us-east-2a). Lightsail
automatically creates your load balancer across Availability Zones.default LoadBalancer.Builder location(Consumer<ResourceLocation.Builder> location)
The AWS Region where your load balancer was created (e.g., us-east-2a). Lightsail automatically
creates your load balancer across Availability Zones.
ResourceLocation.Builder avoiding the
need to create one manually via ResourceLocation.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to location(ResourceLocation).
location - a consumer that will call methods on ResourceLocation.Builderlocation(ResourceLocation)LoadBalancer.Builder resourceType(String resourceType)
The resource type (e.g., LoadBalancer.
resourceType - The resource type (e.g., LoadBalancer.ResourceType,
ResourceTypeLoadBalancer.Builder resourceType(ResourceType resourceType)
The resource type (e.g., LoadBalancer.
resourceType - The resource type (e.g., LoadBalancer.ResourceType,
ResourceTypeLoadBalancer.Builder tags(Collection<Tag> tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see
the Amazon
Lightsail Developer Guide.LoadBalancer.Builder tags(Tag... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
tags - The tag keys and optional values for the resource. For more information about tags in Lightsail, see
the Amazon
Lightsail Developer Guide.LoadBalancer.Builder tags(Consumer<Tag.Builder>... tags)
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
This is a convenience method that creates an instance of theTag.Builder avoiding the need to create one manually
via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) LoadBalancer.Builder dnsName(String dnsName)
The DNS name of your Lightsail load balancer.
dnsName - The DNS name of your Lightsail load balancer.LoadBalancer.Builder state(String state)
The status of your load balancer. Valid values are below.
state - The status of your load balancer. Valid values are below.LoadBalancerState,
LoadBalancerStateLoadBalancer.Builder state(LoadBalancerState state)
The status of your load balancer. Valid values are below.
state - The status of your load balancer. Valid values are below.LoadBalancerState,
LoadBalancerStateLoadBalancer.Builder protocol(String protocol)
The protocol you have enabled for your load balancer. Valid values are below.
You can't just have HTTP_HTTPS, but you can have just HTTP.
protocol - The protocol you have enabled for your load balancer. Valid values are below.
You can't just have HTTP_HTTPS, but you can have just HTTP.
LoadBalancerProtocol,
LoadBalancerProtocolLoadBalancer.Builder protocol(LoadBalancerProtocol protocol)
The protocol you have enabled for your load balancer. Valid values are below.
You can't just have HTTP_HTTPS, but you can have just HTTP.
protocol - The protocol you have enabled for your load balancer. Valid values are below.
You can't just have HTTP_HTTPS, but you can have just HTTP.
LoadBalancerProtocol,
LoadBalancerProtocolLoadBalancer.Builder publicPorts(Collection<Integer> publicPorts)
An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port 443.
publicPorts - An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port
443.LoadBalancer.Builder publicPorts(Integer... publicPorts)
An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port 443.
publicPorts - An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port
443.LoadBalancer.Builder healthCheckPath(String healthCheckPath)
The path you specified to perform your health checks. If no path is specified, the load balancer tries to make a request to the default (root) page.
healthCheckPath - The path you specified to perform your health checks. If no path is specified, the load balancer tries
to make a request to the default (root) page.LoadBalancer.Builder instancePort(Integer instancePort)
The port where the load balancer will direct traffic to your Lightsail instances. For HTTP traffic, it's port 80. For HTTPS traffic, it's port 443.
instancePort - The port where the load balancer will direct traffic to your Lightsail instances. For HTTP traffic,
it's port 80. For HTTPS traffic, it's port 443.LoadBalancer.Builder instanceHealthSummary(Collection<InstanceHealthSummary> instanceHealthSummary)
An array of InstanceHealthSummary objects describing the health of the load balancer.
instanceHealthSummary - An array of InstanceHealthSummary objects describing the health of the load balancer.LoadBalancer.Builder instanceHealthSummary(InstanceHealthSummary... instanceHealthSummary)
An array of InstanceHealthSummary objects describing the health of the load balancer.
instanceHealthSummary - An array of InstanceHealthSummary objects describing the health of the load balancer.LoadBalancer.Builder instanceHealthSummary(Consumer<InstanceHealthSummary.Builder>... instanceHealthSummary)
An array of InstanceHealthSummary objects describing the health of the load balancer.
This is a convenience method that creates an instance of theInstanceHealthSummary.Builder avoiding the need to
create one manually via
InstanceHealthSummary.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #instanceHealthSummary(List.
instanceHealthSummary - a consumer that will call methods on
InstanceHealthSummary.Builder#instanceHealthSummary(java.util.Collection) LoadBalancer.Builder tlsCertificateSummaries(Collection<LoadBalancerTlsCertificateSummary> tlsCertificateSummaries)
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS
certificates. For example, if true, the certificate is attached to the load balancer.
tlsCertificateSummaries - An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the
SSL/TLS certificates. For example, if true, the certificate is attached to the load
balancer.LoadBalancer.Builder tlsCertificateSummaries(LoadBalancerTlsCertificateSummary... tlsCertificateSummaries)
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS
certificates. For example, if true, the certificate is attached to the load balancer.
tlsCertificateSummaries - An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the
SSL/TLS certificates. For example, if true, the certificate is attached to the load
balancer.LoadBalancer.Builder tlsCertificateSummaries(Consumer<LoadBalancerTlsCertificateSummary.Builder>... tlsCertificateSummaries)
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS
certificates. For example, if true, the certificate is attached to the load balancer.
LoadBalancerTlsCertificateSummary.Builder avoiding
the need to create one manually via
LoadBalancerTlsCertificateSummary.builder().
When the Consumer completes,
SdkBuilder.build() is
called immediately and its result is passed to #tlsCertificateSummaries(List.
tlsCertificateSummaries - a consumer that will call methods on
LoadBalancerTlsCertificateSummary.Builder#tlsCertificateSummaries(java.util.Collection) LoadBalancer.Builder configurationOptionsWithStrings(Map<String,String> configurationOptions)
A string to string map of the configuration options for your load balancer. Valid values are listed below.
configurationOptions - A string to string map of the configuration options for your load balancer. Valid values are listed
below.LoadBalancer.Builder configurationOptions(Map<LoadBalancerAttributeName,String> configurationOptions)
A string to string map of the configuration options for your load balancer. Valid values are listed below.
configurationOptions - A string to string map of the configuration options for your load balancer. Valid values are listed
below.LoadBalancer.Builder ipAddressType(String ipAddressType)
The IP address type of the load balancer.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
ipAddressType - The IP address type of the load balancer.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
IpAddressType,
IpAddressTypeLoadBalancer.Builder ipAddressType(IpAddressType ipAddressType)
The IP address type of the load balancer.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
ipAddressType - The IP address type of the load balancer.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
IpAddressType,
IpAddressTypeLoadBalancer.Builder httpsRedirectionEnabled(Boolean httpsRedirectionEnabled)
A Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.
httpsRedirectionEnabled - A Boolean value that indicates whether HTTPS redirection is enabled for the load balancer.LoadBalancer.Builder tlsPolicyName(String tlsPolicyName)
The name of the TLS security policy for the load balancer.
tlsPolicyName - The name of the TLS security policy for the load balancer.Copyright © 2022. All rights reserved.