@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LoadBalancer extends Object implements Serializable, Cloneable, StructuredPojo
Describes the Lightsail load balancer.
Constructor and Description |
---|
LoadBalancer() |
Modifier and Type | Method and Description |
---|---|
LoadBalancer |
addConfigurationOptionsEntry(String key,
String value) |
LoadBalancer |
clearConfigurationOptionsEntries()
Removes all the entries added into ConfigurationOptions.
|
LoadBalancer |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the load balancer.
|
Map<String,String> |
getConfigurationOptions()
A string to string map of the configuration options for your load balancer.
|
Date |
getCreatedAt()
The date when your load balancer was created.
|
String |
getDnsName()
The DNS name of your Lightsail load balancer.
|
String |
getHealthCheckPath()
The path you specified to perform your health checks.
|
List<InstanceHealthSummary> |
getInstanceHealthSummary()
An array of InstanceHealthSummary objects describing the health of the load balancer.
|
Integer |
getInstancePort()
The instance port where the load balancer is listening.
|
ResourceLocation |
getLocation()
The AWS Region and Availability Zone where your load balancer was created (e.g.,
us-east-2a ). |
String |
getName()
The name of the load balancer (e.g.,
my-load-balancer ). |
String |
getProtocol()
The protocol you have enabled for your load balancer.
|
List<Integer> |
getPublicPorts()
An array of public port settings for your load balancer.
|
String |
getResourceType()
The resource type (e.g.,
LoadBalancer . |
String |
getState()
The status of your load balancer.
|
String |
getSupportCode()
The support code.
|
List<LoadBalancerTlsCertificateSummary> |
getTlsCertificateSummaries()
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the TLS/SSL
certificates.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the load balancer.
|
void |
setConfigurationOptions(Map<String,String> configurationOptions)
A string to string map of the configuration options for your load balancer.
|
void |
setCreatedAt(Date createdAt)
The date when your load balancer was created.
|
void |
setDnsName(String dnsName)
The DNS name of your Lightsail load balancer.
|
void |
setHealthCheckPath(String healthCheckPath)
The path you specified to perform your health checks.
|
void |
setInstanceHealthSummary(Collection<InstanceHealthSummary> instanceHealthSummary)
An array of InstanceHealthSummary objects describing the health of the load balancer.
|
void |
setInstancePort(Integer instancePort)
The instance port where the load balancer is listening.
|
void |
setLocation(ResourceLocation location)
The AWS Region and Availability Zone where your load balancer was created (e.g.,
us-east-2a ). |
void |
setName(String name)
The name of the load balancer (e.g.,
my-load-balancer ). |
void |
setProtocol(String protocol)
The protocol you have enabled for your load balancer.
|
void |
setPublicPorts(Collection<Integer> publicPorts)
An array of public port settings for your load balancer.
|
void |
setResourceType(String resourceType)
The resource type (e.g.,
LoadBalancer . |
void |
setState(String state)
The status of your load balancer.
|
void |
setSupportCode(String supportCode)
The support code.
|
void |
setTlsCertificateSummaries(Collection<LoadBalancerTlsCertificateSummary> tlsCertificateSummaries)
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the TLS/SSL
certificates.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
LoadBalancer |
withArn(String arn)
The Amazon Resource Name (ARN) of the load balancer.
|
LoadBalancer |
withConfigurationOptions(Map<String,String> configurationOptions)
A string to string map of the configuration options for your load balancer.
|
LoadBalancer |
withCreatedAt(Date createdAt)
The date when your load balancer was created.
|
LoadBalancer |
withDnsName(String dnsName)
The DNS name of your Lightsail load balancer.
|
LoadBalancer |
withHealthCheckPath(String healthCheckPath)
The path you specified to perform your health checks.
|
LoadBalancer |
withInstanceHealthSummary(Collection<InstanceHealthSummary> instanceHealthSummary)
An array of InstanceHealthSummary objects describing the health of the load balancer.
|
LoadBalancer |
withInstanceHealthSummary(InstanceHealthSummary... instanceHealthSummary)
An array of InstanceHealthSummary objects describing the health of the load balancer.
|
LoadBalancer |
withInstancePort(Integer instancePort)
The instance port where the load balancer is listening.
|
LoadBalancer |
withLocation(ResourceLocation location)
The AWS Region and Availability Zone where your load balancer was created (e.g.,
us-east-2a ). |
LoadBalancer |
withName(String name)
The name of the load balancer (e.g.,
my-load-balancer ). |
LoadBalancer |
withProtocol(LoadBalancerProtocol protocol)
The protocol you have enabled for your load balancer.
|
LoadBalancer |
withProtocol(String protocol)
The protocol you have enabled for your load balancer.
|
LoadBalancer |
withPublicPorts(Collection<Integer> publicPorts)
An array of public port settings for your load balancer.
|
LoadBalancer |
withPublicPorts(Integer... publicPorts)
An array of public port settings for your load balancer.
|
LoadBalancer |
withResourceType(ResourceType resourceType)
The resource type (e.g.,
LoadBalancer . |
LoadBalancer |
withResourceType(String resourceType)
The resource type (e.g.,
LoadBalancer . |
LoadBalancer |
withState(LoadBalancerState state)
The status of your load balancer.
|
LoadBalancer |
withState(String state)
The status of your load balancer.
|
LoadBalancer |
withSupportCode(String supportCode)
The support code.
|
LoadBalancer |
withTlsCertificateSummaries(Collection<LoadBalancerTlsCertificateSummary> tlsCertificateSummaries)
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the TLS/SSL
certificates.
|
LoadBalancer |
withTlsCertificateSummaries(LoadBalancerTlsCertificateSummary... tlsCertificateSummaries)
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the TLS/SSL
certificates.
|
public void setName(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
).public String getName()
The name of the load balancer (e.g., my-load-balancer
).
my-load-balancer
).public LoadBalancer withName(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
).public void setArn(String arn)
The Amazon Resource Name (ARN) of the load balancer.
arn
- The Amazon Resource Name (ARN) of the load balancer.public String getArn()
The Amazon Resource Name (ARN) of the load balancer.
public LoadBalancer withArn(String arn)
The Amazon Resource Name (ARN) of the load balancer.
arn
- The Amazon Resource Name (ARN) of the load balancer.public void setSupportCode(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.public String getSupportCode()
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 LoadBalancer withSupportCode(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.public void setCreatedAt(Date createdAt)
The date when your load balancer was created.
createdAt
- The date when your load balancer was created.public Date getCreatedAt()
The date when your load balancer was created.
public LoadBalancer withCreatedAt(Date createdAt)
The date when your load balancer was created.
createdAt
- The date when your load balancer was created.public void setLocation(ResourceLocation location)
The AWS Region and Availability Zone where your load balancer was created (e.g., us-east-2a
).
location
- The AWS Region and Availability Zone where your load balancer was created (e.g., us-east-2a
).public ResourceLocation getLocation()
The AWS Region and Availability Zone where your load balancer was created (e.g., us-east-2a
).
us-east-2a
).public LoadBalancer withLocation(ResourceLocation location)
The AWS Region and Availability Zone where your load balancer was created (e.g., us-east-2a
).
location
- The AWS Region and Availability Zone where your load balancer was created (e.g., us-east-2a
).public void setResourceType(String resourceType)
The resource type (e.g., LoadBalancer
.
resourceType
- The resource type (e.g., LoadBalancer
.ResourceType
public String getResourceType()
The resource type (e.g., LoadBalancer
.
LoadBalancer
.ResourceType
public LoadBalancer withResourceType(String resourceType)
The resource type (e.g., LoadBalancer
.
resourceType
- The resource type (e.g., LoadBalancer
.ResourceType
public LoadBalancer withResourceType(ResourceType resourceType)
The resource type (e.g., LoadBalancer
.
resourceType
- The resource type (e.g., LoadBalancer
.ResourceType
public void setDnsName(String dnsName)
The DNS name of your Lightsail load balancer.
dnsName
- The DNS name of your Lightsail load balancer.public String getDnsName()
The DNS name of your Lightsail load balancer.
public LoadBalancer withDnsName(String dnsName)
The DNS name of your Lightsail load balancer.
dnsName
- The DNS name of your Lightsail load balancer.public void setState(String state)
The status of your load balancer. Valid values are below.
state
- The status of your load balancer. Valid values are below.LoadBalancerState
public String getState()
The status of your load balancer. Valid values are below.
LoadBalancerState
public LoadBalancer withState(String state)
The status of your load balancer. Valid values are below.
state
- The status of your load balancer. Valid values are below.LoadBalancerState
public LoadBalancer withState(LoadBalancerState state)
The status of your load balancer. Valid values are below.
state
- The status of your load balancer. Valid values are below.LoadBalancerState
public void setProtocol(String protocol)
The protocol you have enabled for your load balancer. Valid values are below.
protocol
- The protocol you have enabled for your load balancer. Valid values are below.LoadBalancerProtocol
public String getProtocol()
The protocol you have enabled for your load balancer. Valid values are below.
LoadBalancerProtocol
public LoadBalancer withProtocol(String protocol)
The protocol you have enabled for your load balancer. Valid values are below.
protocol
- The protocol you have enabled for your load balancer. Valid values are below.LoadBalancerProtocol
public LoadBalancer withProtocol(LoadBalancerProtocol protocol)
The protocol you have enabled for your load balancer. Valid values are below.
protocol
- The protocol you have enabled for your load balancer. Valid values are below.LoadBalancerProtocol
public List<Integer> getPublicPorts()
An array of public port settings for your load balancer.
public void setPublicPorts(Collection<Integer> publicPorts)
An array of public port settings for your load balancer.
publicPorts
- An array of public port settings for your load balancer.public LoadBalancer withPublicPorts(Integer... publicPorts)
An array of public port settings for your load balancer.
NOTE: This method appends the values to the existing list (if any). Use
setPublicPorts(java.util.Collection)
or withPublicPorts(java.util.Collection)
if you want to
override the existing values.
publicPorts
- An array of public port settings for your load balancer.public LoadBalancer withPublicPorts(Collection<Integer> publicPorts)
An array of public port settings for your load balancer.
publicPorts
- An array of public port settings for your load balancer.public void setHealthCheckPath(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.public String getHealthCheckPath()
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 LoadBalancer withHealthCheckPath(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.public void setInstancePort(Integer instancePort)
The instance port where the load balancer is listening.
instancePort
- The instance port where the load balancer is listening.public Integer getInstancePort()
The instance port where the load balancer is listening.
public LoadBalancer withInstancePort(Integer instancePort)
The instance port where the load balancer is listening.
instancePort
- The instance port where the load balancer is listening.public List<InstanceHealthSummary> getInstanceHealthSummary()
An array of InstanceHealthSummary objects describing the health of the load balancer.
public void setInstanceHealthSummary(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.public LoadBalancer withInstanceHealthSummary(InstanceHealthSummary... instanceHealthSummary)
An array of InstanceHealthSummary objects describing the health of the load balancer.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceHealthSummary(java.util.Collection)
or
withInstanceHealthSummary(java.util.Collection)
if you want to override the existing values.
instanceHealthSummary
- An array of InstanceHealthSummary objects describing the health of the load balancer.public LoadBalancer withInstanceHealthSummary(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.public List<LoadBalancerTlsCertificateSummary> getTlsCertificateSummaries()
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the TLS/SSL certificates.
public void setTlsCertificateSummaries(Collection<LoadBalancerTlsCertificateSummary> tlsCertificateSummaries)
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the TLS/SSL certificates.
tlsCertificateSummaries
- An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the
TLS/SSL certificates.public LoadBalancer withTlsCertificateSummaries(LoadBalancerTlsCertificateSummary... tlsCertificateSummaries)
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the TLS/SSL certificates.
NOTE: This method appends the values to the existing list (if any). Use
setTlsCertificateSummaries(java.util.Collection)
or
withTlsCertificateSummaries(java.util.Collection)
if you want to override the existing values.
tlsCertificateSummaries
- An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the
TLS/SSL certificates.public LoadBalancer withTlsCertificateSummaries(Collection<LoadBalancerTlsCertificateSummary> tlsCertificateSummaries)
An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the TLS/SSL certificates.
tlsCertificateSummaries
- An array of LoadBalancerTlsCertificateSummary objects that provide additional information about the
TLS/SSL certificates.public Map<String,String> getConfigurationOptions()
A string to string map of the configuration options for your load balancer. Valid values are listed below.
public void setConfigurationOptions(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.public LoadBalancer withConfigurationOptions(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.public LoadBalancer addConfigurationOptionsEntry(String key, String value)
public LoadBalancer clearConfigurationOptionsEntries()
public String toString()
toString
in class Object
Object.toString()
public LoadBalancer clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.