Class TargetFailure

    • 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 group type is INSTANCE, this is an instance ID. If the target group type is IP, this is an IP address. If the target group type is LAMBDA, this is the ARN of a Lambda function. If the target group type is ALB, this is the ARN of an Application Load Balancer.

        Returns:
        The ID of the target. If the target group type is INSTANCE, this is an instance ID. If the target group type is IP, this is an IP address. If the target group type is LAMBDA, this is the ARN of a Lambda function. If the target group type is ALB, this is the ARN of an 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.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • 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.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)