@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LoadBalancerState extends Object implements Serializable, Cloneable
Information about the state of the load balancer.
| Constructor and Description |
|---|
LoadBalancerState() |
| Modifier and Type | Method and Description |
|---|---|
LoadBalancerState |
clone() |
boolean |
equals(Object obj) |
String |
getCode()
The state code.
|
String |
getReason()
A description of the state.
|
int |
hashCode() |
void |
setCode(LoadBalancerStateEnum code)
The state code.
|
void |
setCode(String code)
The state code.
|
void |
setReason(String reason)
A description of the state.
|
String |
toString()
Returns a string representation of this object.
|
LoadBalancerState |
withCode(LoadBalancerStateEnum code)
The state code.
|
LoadBalancerState |
withCode(String code)
The state code.
|
LoadBalancerState |
withReason(String reason)
A description of the state.
|
public void setCode(String code)
The state code. The initial state of the load balancer is provisioning. After the load balancer is
fully set up and ready to route traffic, its state is active. If load balancer is routing traffic
but does not have the resources it needs to scale, its state isactive_impaired. If the load balancer
could not be set up, its state is failed.
code - The state code. The initial state of the load balancer is provisioning. After the load
balancer is fully set up and ready to route traffic, its state is active. If load balancer is
routing traffic but does not have the resources it needs to scale, its state is
active_impaired. If the load balancer could not be set up, its state is failed.LoadBalancerStateEnumpublic String getCode()
The state code. The initial state of the load balancer is provisioning. After the load balancer is
fully set up and ready to route traffic, its state is active. If load balancer is routing traffic
but does not have the resources it needs to scale, its state isactive_impaired. If the load balancer
could not be set up, its state is failed.
provisioning. After the load
balancer is fully set up and ready to route traffic, its state is active. If load balancer
is routing traffic but does not have the resources it needs to scale, its state is
active_impaired. If the load balancer could not be set up, its state is failed.LoadBalancerStateEnumpublic LoadBalancerState withCode(String code)
The state code. The initial state of the load balancer is provisioning. After the load balancer is
fully set up and ready to route traffic, its state is active. If load balancer is routing traffic
but does not have the resources it needs to scale, its state isactive_impaired. If the load balancer
could not be set up, its state is failed.
code - The state code. The initial state of the load balancer is provisioning. After the load
balancer is fully set up and ready to route traffic, its state is active. If load balancer is
routing traffic but does not have the resources it needs to scale, its state is
active_impaired. If the load balancer could not be set up, its state is failed.LoadBalancerStateEnumpublic void setCode(LoadBalancerStateEnum code)
The state code. The initial state of the load balancer is provisioning. After the load balancer is
fully set up and ready to route traffic, its state is active. If load balancer is routing traffic
but does not have the resources it needs to scale, its state isactive_impaired. If the load balancer
could not be set up, its state is failed.
code - The state code. The initial state of the load balancer is provisioning. After the load
balancer is fully set up and ready to route traffic, its state is active. If load balancer is
routing traffic but does not have the resources it needs to scale, its state is
active_impaired. If the load balancer could not be set up, its state is failed.LoadBalancerStateEnumpublic LoadBalancerState withCode(LoadBalancerStateEnum code)
The state code. The initial state of the load balancer is provisioning. After the load balancer is
fully set up and ready to route traffic, its state is active. If load balancer is routing traffic
but does not have the resources it needs to scale, its state isactive_impaired. If the load balancer
could not be set up, its state is failed.
code - The state code. The initial state of the load balancer is provisioning. After the load
balancer is fully set up and ready to route traffic, its state is active. If load balancer is
routing traffic but does not have the resources it needs to scale, its state is
active_impaired. If the load balancer could not be set up, its state is failed.LoadBalancerStateEnumpublic void setReason(String reason)
A description of the state.
reason - A description of the state.public String getReason()
A description of the state.
public LoadBalancerState withReason(String reason)
A description of the state.
reason - A description of the state.public String toString()
toString in class ObjectObject.toString()public LoadBalancerState clone()