Class RouteAnalysisCompletion

    • Method Detail

      • reasonCode

        public final RouteAnalysisCompletionReasonCode reasonCode()

        The reason code. Available only if a connection is not found.

        • BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND - Found a black hole route with the destination CIDR block.

        • CYCLIC_PATH_DETECTED - Found the same resource multiple times while traversing the path.

        • INACTIVE_ROUTE_FOR_DESTINATION_FOUND - Found an inactive route with the destination CIDR block.

        • MAX_HOPS_EXCEEDED - Analysis exceeded 64 hops without finding the destination.

        • ROUTE_NOT_FOUND - Cannot find a route table with the destination CIDR block.

        • TGW_ATTACH_ARN_NO_MATCH - Found an attachment, but not with the correct destination ARN.

        • TGW_ATTACH_NOT_FOUND - Cannot find an attachment.

        • TGW_ATTACH_NOT_IN_TGW - Found an attachment, but not to the correct transit gateway.

        • TGW_ATTACH_STABLE_ROUTE_TABLE_NOT_FOUND - The state of the route table association is not associated.

        If the service returns an enum value that is not available in the current SDK version, reasonCode will return RouteAnalysisCompletionReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from reasonCodeAsString().

        Returns:
        The reason code. Available only if a connection is not found.

        • BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND - Found a black hole route with the destination CIDR block.

        • CYCLIC_PATH_DETECTED - Found the same resource multiple times while traversing the path.

        • INACTIVE_ROUTE_FOR_DESTINATION_FOUND - Found an inactive route with the destination CIDR block.

        • MAX_HOPS_EXCEEDED - Analysis exceeded 64 hops without finding the destination.

        • ROUTE_NOT_FOUND - Cannot find a route table with the destination CIDR block.

        • TGW_ATTACH_ARN_NO_MATCH - Found an attachment, but not with the correct destination ARN.

        • TGW_ATTACH_NOT_FOUND - Cannot find an attachment.

        • TGW_ATTACH_NOT_IN_TGW - Found an attachment, but not to the correct transit gateway.

        • TGW_ATTACH_STABLE_ROUTE_TABLE_NOT_FOUND - The state of the route table association is not associated.

        See Also:
        RouteAnalysisCompletionReasonCode
      • reasonCodeAsString

        public final String reasonCodeAsString()

        The reason code. Available only if a connection is not found.

        • BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND - Found a black hole route with the destination CIDR block.

        • CYCLIC_PATH_DETECTED - Found the same resource multiple times while traversing the path.

        • INACTIVE_ROUTE_FOR_DESTINATION_FOUND - Found an inactive route with the destination CIDR block.

        • MAX_HOPS_EXCEEDED - Analysis exceeded 64 hops without finding the destination.

        • ROUTE_NOT_FOUND - Cannot find a route table with the destination CIDR block.

        • TGW_ATTACH_ARN_NO_MATCH - Found an attachment, but not with the correct destination ARN.

        • TGW_ATTACH_NOT_FOUND - Cannot find an attachment.

        • TGW_ATTACH_NOT_IN_TGW - Found an attachment, but not to the correct transit gateway.

        • TGW_ATTACH_STABLE_ROUTE_TABLE_NOT_FOUND - The state of the route table association is not associated.

        If the service returns an enum value that is not available in the current SDK version, reasonCode will return RouteAnalysisCompletionReasonCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from reasonCodeAsString().

        Returns:
        The reason code. Available only if a connection is not found.

        • BLACKHOLE_ROUTE_FOR_DESTINATION_FOUND - Found a black hole route with the destination CIDR block.

        • CYCLIC_PATH_DETECTED - Found the same resource multiple times while traversing the path.

        • INACTIVE_ROUTE_FOR_DESTINATION_FOUND - Found an inactive route with the destination CIDR block.

        • MAX_HOPS_EXCEEDED - Analysis exceeded 64 hops without finding the destination.

        • ROUTE_NOT_FOUND - Cannot find a route table with the destination CIDR block.

        • TGW_ATTACH_ARN_NO_MATCH - Found an attachment, but not with the correct destination ARN.

        • TGW_ATTACH_NOT_FOUND - Cannot find an attachment.

        • TGW_ATTACH_NOT_IN_TGW - Found an attachment, but not to the correct transit gateway.

        • TGW_ATTACH_STABLE_ROUTE_TABLE_NOT_FOUND - The state of the route table association is not associated.

        See Also:
        RouteAnalysisCompletionReasonCode
      • hasReasonContext

        public final boolean hasReasonContext()
        For responses, this returns true if the service returned a value for the ReasonContext property. This DOES NOT check that the value is non-empty (for which, you should check the isEmpty() method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
      • reasonContext

        public final Map<String,​String> reasonContext()

        Additional information about the path. Available only if a connection is not found.

        Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.

        This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the hasReasonContext() method.

        Returns:
        Additional information about the path. Available only if a connection is not found.
      • 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)