public class RemoteFunctionBuilder
extends java.lang.Object
RemoteFunction
instances.Modifier | Constructor and Description |
---|---|
protected |
RemoteFunctionBuilder(java.lang.String functionName)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
RemoteFunction |
build()
Make an instance of RemoteFunction based on the properties set on this builder.
|
static RemoteFunctionBuilder |
create(java.lang.String functionName)
Create a new instance of RemoteFunctionBuilder that can be used to build instances of RemoteFunction.
|
RemoteFunctionBuilder |
param(java.lang.String key,
java.lang.String value)
Adds a function parameter with the specified
key and value . |
RemoteFunctionBuilder |
rawBody(byte[] rawBody)
Defines the bytes that are sent as the raw body when executing the request to the remote function.
|
protected RemoteFunctionBuilder(java.lang.String functionName)
public static RemoteFunctionBuilder create(java.lang.String functionName)
functionName
- the name of the configured remote function to callpublic RemoteFunctionBuilder param(java.lang.String key, java.lang.String value)
key
and value
. If a parameter with the
specified key
was already provided before, the old value will be overwritten with the specified
value
.key
- the name of the parametervalue
- the value of the parameterpublic RemoteFunctionBuilder rawBody(byte[] rawBody)
rawBody
- the raw bytes to sent as the raw body for the remote functionpublic RemoteFunction build()