Interface CallChain.RequestMaker<ClientT,ModelT,CallbackT extends StdCallbackContext>

Type Parameters:
ClientT - Actual client e.g. KinesisClient.
ModelT - The type (POJO) of Resource model.
CallbackT - , callback context the extends StdCallbackContext
All Known Subinterfaces:
CallChain.Initiator<ClientT,ModelT,CallbackT>
Enclosing interface:
CallChain

public static interface CallChain.RequestMaker<ClientT,ModelT,CallbackT extends StdCallbackContext>
This performs the translate step between the ModelT properties and what is needed for making the service call.
  • Method Details

    • request

      @Deprecated default <RequestT> CallChain.Caller<RequestT,ClientT,ModelT,CallbackT> request(Function<ModelT,RequestT> maker)
      Deprecated.
      use translateToServiceRequest(Function) Take a reference to the tranlater that take the resource model POJO as input and provide a request object as needed to make the Service call.
      Type Parameters:
      RequestT - , the web service request created
      Parameters:
      maker - , provide a functional transform from model to request object.
      Returns:
      returns the next step, to actually call the service.
    • translateToServiceRequest

      <RequestT> CallChain.Caller<RequestT,ClientT,ModelT,CallbackT> translateToServiceRequest(Function<ModelT,RequestT> maker)
      Take a reference to the tranlater that take the resource model POJO as input and provide a request object as needed to make the Service call.
      Type Parameters:
      RequestT - , the web service request created
      Parameters:
      maker - , provide a functional transform from model to request object.
      Returns:
      returns the next step, to actually call the service.