Class ClientEndpointDiscoveryTrait

    • Field Detail

      • ID

        public static final ShapeId ID
    • Method Detail

      • getOperation

        public ShapeId getOperation()
        The operation used to discover endpoints for the service.

        The operation MUST be bound to the service.

        Returns:
        The ShapeId of the operation used to discover endpoints.
      • getOptionalError

        public java.util.Optional<ShapeId> getOptionalError()
        The error shape which indicates to a client that an endpoint they are using is no longer valid.

        This error MUST be bound to every operation bound to the service which is marked with an ClientDiscoveredEndpointTrait.

        Returns:
        The ShapeId of the invalid endpoint error.
      • createNode

        protected Node createNode()
        Description copied from class: AbstractTrait
        The result of toNode is used for hashCodes and equality. Subclasses must implement createNode to turn the trait into a Node. This is then cached for subsequent retrievals.
        Specified by:
        createNode in class AbstractTrait
        Returns:
        Returns the trait as a node.