Class EventingFunction.Builder
java.lang.Object
com.couchbase.client.java.manager.eventing.EventingFunction.Builder
- Enclosing class:
EventingFunction
This builder allows to customize the properties of the eventing function.
-
Method Summary
Modifier and TypeMethodDescriptionbucketBindings(List<EventingFunctionBucketBinding> bucketBindings) Sets the bucket bindings for the function.build()Builds the immutableEventingFunction.constantBindings(List<EventingFunctionConstantBinding> constantBindings) Sets the constant bindings for the function.enforceSchema(boolean enforceSchema) Set to true if the schema schould be enforced.settings(EventingFunctionSettings settings) Sets various function settings to customize the runtime behavior.urlBindings(List<EventingFunctionUrlBinding> urlBindings) Sets the URL bindings for the function.
-
Method Details
-
urlBindings
Sets the URL bindings for the function.- Parameters:
urlBindings- the URL bindings for the function.- Returns:
- the
EventingFunction.Builderfor chaining purposes.
-
bucketBindings
Sets the bucket bindings for the function.- Parameters:
bucketBindings- the bucket bindings for the function.- Returns:
- the
EventingFunction.Builderfor chaining purposes.
-
constantBindings
public EventingFunction.Builder constantBindings(List<EventingFunctionConstantBinding> constantBindings) Sets the constant bindings for the function.- Parameters:
constantBindings- the constant bindings for the function.- Returns:
- the
EventingFunction.Builderfor chaining purposes.
-
enforceSchema
Set to true if the schema schould be enforced.- Parameters:
enforceSchema- true if it should be enforced.- Returns:
- the
EventingFunction.Builderfor chaining purposes.
-
settings
Sets various function settings to customize the runtime behavior.- Parameters:
settings- the settings to apply to the function.- Returns:
- the
EventingFunction.Builderfor chaining purposes.
-
build
Builds the immutableEventingFunction.
-