@Generated(value="software.amazon.awssdk:codegen") public final class LoadBalancer extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LoadBalancer.Builder,LoadBalancer>
Describes the Lightsail load balancer.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LoadBalancer.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the load balancer.
|
static LoadBalancer.Builder |
builder() |
Map<LoadBalancerAttributeName,String> |
configurationOptions()
A string to string map of the configuration options for your load balancer.
|
Map<String,String> |
configurationOptionsAsStrings()
A string to string map of the configuration options for your load balancer.
|
Instant |
createdAt()
The date when your load balancer was created.
|
String |
dnsName()
The DNS name of your Lightsail load balancer.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasConfigurationOptions()
Returns true if the ConfigurationOptions property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
int |
hashCode() |
boolean |
hasInstanceHealthSummary()
Returns true if the InstanceHealthSummary property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasPublicPorts()
Returns true if the PublicPorts property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
boolean |
hasTlsCertificateSummaries()
Returns true if the TlsCertificateSummaries property was specified by the sender (it may be empty), or false if
the sender did not specify the value (it will be empty).
|
String |
healthCheckPath()
The path you specified to perform your health checks.
|
List<InstanceHealthSummary> |
instanceHealthSummary()
An array of InstanceHealthSummary objects describing the health of the load balancer.
|
Integer |
instancePort()
The port where the load balancer will direct traffic to your Lightsail instances.
|
IpAddressType |
ipAddressType()
The IP address type of the load balancer.
|
String |
ipAddressTypeAsString()
The IP address type of the load balancer.
|
ResourceLocation |
location()
The AWS Region where your load balancer was created (e.g.,
us-east-2a). |
String |
name()
The name of the load balancer (e.g.,
my-load-balancer). |
LoadBalancerProtocol |
protocol()
The protocol you have enabled for your load balancer.
|
String |
protocolAsString()
The protocol you have enabled for your load balancer.
|
List<Integer> |
publicPorts()
An array of public port settings for your load balancer.
|
ResourceType |
resourceType()
The resource type (e.g.,
LoadBalancer. |
String |
resourceTypeAsString()
The resource type (e.g.,
LoadBalancer. |
List<SdkField<?>> |
sdkFields() |
static Class<? extends LoadBalancer.Builder> |
serializableBuilderClass() |
LoadBalancerState |
state()
The status of your load balancer.
|
String |
stateAsString()
The status of your load balancer.
|
String |
supportCode()
The support code.
|
List<Tag> |
tags()
The tag keys and optional values for the resource.
|
List<LoadBalancerTlsCertificateSummary> |
tlsCertificateSummaries()
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the SSL/TLS
certificates.
|
LoadBalancer.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String name()
The name of the load balancer (e.g., my-load-balancer).
my-load-balancer).public final String arn()
The Amazon Resource Name (ARN) of the load balancer.
public final 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.
public final Instant createdAt()
The date when your load balancer was created.
public final 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.
us-east-2a). Lightsail
automatically creates your load balancer across Availability Zones.public final ResourceType resourceType()
The resource type (e.g., LoadBalancer.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
LoadBalancer.ResourceTypepublic final String resourceTypeAsString()
The resource type (e.g., LoadBalancer.
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
LoadBalancer.ResourceTypepublic final boolean hasTags()
public final List<Tag> tags()
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Lightsail Dev Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public final String dnsName()
The DNS name of your Lightsail load balancer.
public final LoadBalancerState state()
The status of your load balancer. Valid values are below.
If the service returns an enum value that is not available in the current SDK version, state will return
LoadBalancerState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
LoadBalancerStatepublic final String stateAsString()
The status of your load balancer. Valid values are below.
If the service returns an enum value that is not available in the current SDK version, state will return
LoadBalancerState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
LoadBalancerStatepublic final 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.
If the service returns an enum value that is not available in the current SDK version, protocol will
return LoadBalancerProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from protocolAsString().
You can't just have HTTP_HTTPS, but you can have just HTTP.
LoadBalancerProtocolpublic final String protocolAsString()
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.
If the service returns an enum value that is not available in the current SDK version, protocol will
return LoadBalancerProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from protocolAsString().
You can't just have HTTP_HTTPS, but you can have just HTTP.
LoadBalancerProtocolpublic final boolean hasPublicPorts()
public final List<Integer> publicPorts()
An array of public port settings for your load balancer. For HTTP, use port 80. For HTTPS, use port 443.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasPublicPorts() to see if a value was sent in this field.
public final 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.
public final 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.
public final boolean hasInstanceHealthSummary()
public final List<InstanceHealthSummary> instanceHealthSummary()
An array of InstanceHealthSummary objects describing the health of the load balancer.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasInstanceHealthSummary() to see if a value was sent in this field.
public final boolean hasTlsCertificateSummaries()
public final List<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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTlsCertificateSummaries() to see if a value was sent in this field.
true, the certificate is attached to the load
balancer.public final Map<LoadBalancerAttributeName,String> configurationOptions()
A string to string map of the configuration options for your load balancer. Valid values are listed below.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasConfigurationOptions() to see if a value was sent in this field.
public final boolean hasConfigurationOptions()
public final Map<String,String> configurationOptionsAsStrings()
A string to string map of the configuration options for your load balancer. Valid values are listed below.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasConfigurationOptions() to see if a value was sent in this field.
public final IpAddressType ipAddressType()
The IP address type of the load balancer.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
If the service returns an enum value that is not available in the current SDK version, ipAddressType
will return IpAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
ipAddressTypeAsString().
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
IpAddressTypepublic final String ipAddressTypeAsString()
The IP address type of the load balancer.
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
If the service returns an enum value that is not available in the current SDK version, ipAddressType
will return IpAddressType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
ipAddressTypeAsString().
The possible values are ipv4 for IPv4 only, and dualstack for IPv4 and IPv6.
IpAddressTypepublic LoadBalancer.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<LoadBalancer.Builder,LoadBalancer>public static LoadBalancer.Builder builder()
public static Class<? extends LoadBalancer.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.