Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Function |
build()
Construct and return a Function.
|
Function.Builder |
withBucket(String bucket)
Set the bucket for a stored JS function.
|
Function.Builder |
withFunction(String function)
Set the function name for an Erlang function.
|
Function.Builder |
withKey(String key)
Set the key for a stored JS function.
|
Function.Builder |
withModule(String module)
Set the module for an Erlang function.
|
Function.Builder |
withName(String name)
Set the name for a Named Javascript function.
|
Function.Builder |
withSource(String source)
Set the source for an anonymous JS function
|
public Function.Builder withName(String name)
name
- the name of the function.public Function.Builder withBucket(String bucket)
bucket
- the name of the bucket where this function is stored.public Function.Builder withKey(String key)
key
- the key for the object that contains the JS function.public Function.Builder withSource(String source)
source
- the Javascript source.public Function.Builder withModule(String module)
module
- the name of the module containing the Erlang function.public Function.Builder withFunction(String function)
function
- the name of the Erlang function.public Function build()
Copyright © 2016. All rights reserved.