Class TargetFailure
- java.lang.Object
-
- software.amazon.awssdk.services.vpclattice.model.TargetFailure
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<TargetFailure.Builder,TargetFailure>
@Generated("software.amazon.awssdk:codegen") public final class TargetFailure extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TargetFailure.Builder,TargetFailure>
Describes a target failure.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTargetFailure.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TargetFailure.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringfailureCode()The failure code.StringfailureMessage()The failure message.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The ID of the target.Integerport()The port on which the target is listening.List<SdkField<?>>sdkFields()static Class<? extends TargetFailure.Builder>serializableBuilderClass()TargetFailure.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
-
failureCode
public final String failureCode()
The failure code.
- Returns:
- The failure code.
-
failureMessage
public final String failureMessage()
The failure message.
- Returns:
- The failure message.
-
id
public final String id()
The ID of the target. If the target type of the target group is
INSTANCE, this is an instance ID. If the target type isIP, this is an IP address. If the target type isLAMBDA, this is the ARN of the Lambda function. If the target type isALB, this is the ARN of the Application Load Balancer.- Returns:
- The ID of the target. If the target type of the target group is
INSTANCE, this is an instance ID. If the target type isIP, this is an IP address. If the target type isLAMBDA, this is the ARN of the Lambda function. If the target type isALB, this is the ARN of the Application Load Balancer.
-
port
public final Integer port()
The port on which the target is listening. This parameter doesn't apply if the target is a Lambda function.
- Returns:
- The port on which the target is listening. This parameter doesn't apply if the target is a Lambda function.
-
toBuilder
public TargetFailure.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<TargetFailure.Builder,TargetFailure>
-
builder
public static TargetFailure.Builder builder()
-
serializableBuilderClass
public static Class<? extends TargetFailure.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.
-
-