Package ai.promoted.delivery.client
Class DeliveryResponse
- java.lang.Object
-
- ai.promoted.delivery.client.DeliveryResponse
-
public class DeliveryResponse extends Object
Delivery response is the output from delivery.
-
-
Constructor Summary
Constructors Constructor Description DeliveryResponse(Response response, String clientRequestId, ExecutionServer executionServer, DeliveryException exception)Instantiates a new delivery response.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClientRequestId()Gets the client request id.DeliveryExceptiongetException()Gets an exception.ExecutionServergetExecutionServer()Gets the execution server (SDK or API).ResponsegetResponse()Gets the response.
-
-
-
Constructor Detail
-
DeliveryResponse
public DeliveryResponse(Response response, String clientRequestId, ExecutionServer executionServer, DeliveryException exception)
Instantiates a new delivery response.- Parameters:
response- the response from DeliveryclientRequestId- the client request idexecutionServer- the execution server (SDK or API)exception- if an exception was encountered
-
-
Method Detail
-
getExecutionServer
public ExecutionServer getExecutionServer()
Gets the execution server (SDK or API).- Returns:
- the execution server
-
getClientRequestId
public String getClientRequestId()
Gets the client request id.- Returns:
- the client request id
-
getResponse
public Response getResponse()
Gets the response.- Returns:
- the response
-
getException
public DeliveryException getException()
Gets an exception.- Returns:
- the exception
-
-