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 interfaceLoadBalancerState.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LoadBalancerState.Builderbuilder()LoadBalancerStateEnumcode()The state code.StringcodeAsString()The state code.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringreason()A description of the state.List<SdkField<?>>sdkFields()static Class<? extends LoadBalancerState.Builder>serializableBuilderClass()LoadBalancerState.BuildertoBuilder()StringtoString()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,
codewill 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,
codewill 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:
toBuilderin 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:
equalsBySdkFieldsin 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.
-
-