Class TargetHealth
- java.lang.Object
-
- software.amazon.awssdk.services.rds.model.TargetHealth
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TargetHealth.Builder,TargetHealth>
@Generated("software.amazon.awssdk:codegen") public final class TargetHealth extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetHealth.Builder,TargetHealth>
Information about the connection health of an RDS Proxy target.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTargetHealth.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetHealth.Builderbuilder()Stringdescription()A description of the health of the RDS Proxy target.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()TargetHealthReasonreason()The reason for the current healthStateof the RDS Proxy target.StringreasonAsString()The reason for the current healthStateof the RDS Proxy target.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends TargetHealth.Builder>serializableBuilderClass()TargetStatestate()The current state of the connection health lifecycle for the RDS Proxy target.StringstateAsString()The current state of the connection health lifecycle for the RDS Proxy target.TargetHealth.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
-
state
public final TargetState state()
The current state of the connection health lifecycle for the RDS Proxy target. The following is a typical lifecycle example for the states of an RDS Proxy target:
registering>unavailable>available>unavailable>availableIf the service returns an enum value that is not available in the current SDK version,
statewill returnTargetState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the connection health lifecycle for the RDS Proxy target. The following is a typical
lifecycle example for the states of an RDS Proxy target:
registering>unavailable>available>unavailable>available - See Also:
TargetState
-
stateAsString
public final String stateAsString()
The current state of the connection health lifecycle for the RDS Proxy target. The following is a typical lifecycle example for the states of an RDS Proxy target:
registering>unavailable>available>unavailable>availableIf the service returns an enum value that is not available in the current SDK version,
statewill returnTargetState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstateAsString().- Returns:
- The current state of the connection health lifecycle for the RDS Proxy target. The following is a typical
lifecycle example for the states of an RDS Proxy target:
registering>unavailable>available>unavailable>available - See Also:
TargetState
-
reason
public final TargetHealthReason reason()
The reason for the current health
Stateof the RDS Proxy target.If the service returns an enum value that is not available in the current SDK version,
reasonwill returnTargetHealthReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreasonAsString().- Returns:
- The reason for the current health
Stateof the RDS Proxy target. - See Also:
TargetHealthReason
-
reasonAsString
public final String reasonAsString()
The reason for the current health
Stateof the RDS Proxy target.If the service returns an enum value that is not available in the current SDK version,
reasonwill returnTargetHealthReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromreasonAsString().- Returns:
- The reason for the current health
Stateof the RDS Proxy target. - See Also:
TargetHealthReason
-
description
public final String description()
A description of the health of the RDS Proxy target. If the
StateisAVAILABLE, a description is not included.- Returns:
- A description of the health of the RDS Proxy target. If the
StateisAVAILABLE, a description is not included.
-
toBuilder
public TargetHealth.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TargetHealth.Builder,TargetHealth>
-
builder
public static TargetHealth.Builder builder()
-
serializableBuilderClass
public static Class<? extends TargetHealth.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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-