Class LoadBalancerState
- java.lang.Object
-
- software.amazon.awssdk.services.elasticloadbalancingv2.model.LoadBalancerState
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<LoadBalancerState.Builder,LoadBalancerState>
@Generated("software.amazon.awssdk:codegen") public final class LoadBalancerState extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LoadBalancerState.Builder,LoadBalancerState>
Information about the state of the load balancer.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
LoadBalancerState.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoadBalancerState.Builder
builder()
LoadBalancerStateEnum
code()
The state code.String
codeAsString()
The state code.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
reason()
A description of the state.List<SdkField<?>>
sdkFields()
static Class<? extends LoadBalancerState.Builder>
serializableBuilderClass()
LoadBalancerState.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
code
public final 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 isactive
. 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 isfailed
.If the service returns an enum value that is not available in the current SDK version,
code
will returnLoadBalancerStateEnum.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcodeAsString()
.- Returns:
- 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 isactive
. 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 isfailed
. - See Also:
LoadBalancerStateEnum
-
codeAsString
public final String codeAsString()
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 isactive
. 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 isfailed
.If the service returns an enum value that is not available in the current SDK version,
code
will returnLoadBalancerStateEnum.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available fromcodeAsString()
.- Returns:
- 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 isactive
. 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 isfailed
. - See Also:
LoadBalancerStateEnum
-
reason
public final String reason()
A description of the state.
- Returns:
- A description of the state.
-
toBuilder
public LoadBalancerState.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<LoadBalancerState.Builder,LoadBalancerState>
-
builder
public static LoadBalancerState.Builder builder()
-
serializableBuilderClass
public static Class<? extends LoadBalancerState.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-