Interface FunctionRequest
-
- All Superinterfaces:
Serializable
public interface FunctionRequest extends Serializable
This class represents a request to execute a function. This interface specifies an immutable object, where the methods used to configure this object all return a fresh copy with the requested changes. This has two significant consequences: First, you cannot change an existing object by calling these methods; you have to assign the return value to a new object. Second, you can create a partially constructed object, and reuse as many times as you like.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FunctionRequest
function(String functionName)
Returns a copy of this FunctionRequest, with the specified functionNameFunctionRequest
input(Map input)
Returns a copy of this FunctionRequest, with the specified input parametersFunctionRequest
priority(Integer priority)
Returns a copy of this FunctionRequest, with the specified priorityFunctionRequest
service(String serviceName)
Returns a copy of this FunctionRequest, with the specified serviceNameFunctionRequest
timeToLive(Duration ttl)
Returns a copy of this FunctionRequest, with the specified timeToLive
-
-
-
Method Detail
-
function
FunctionRequest function(String functionName)
Returns a copy of this FunctionRequest, with the specified functionName
-
service
FunctionRequest service(String serviceName)
Returns a copy of this FunctionRequest, with the specified serviceName
-
priority
FunctionRequest priority(Integer priority)
Returns a copy of this FunctionRequest, with the specified priority
-
timeToLive
FunctionRequest timeToLive(Duration ttl)
Returns a copy of this FunctionRequest, with the specified timeToLive
-
input
FunctionRequest input(Map input)
Returns a copy of this FunctionRequest, with the specified input parameters
-
-