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