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 SummaryModifier 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- 
urlBindingsSets the URL bindings for the function.- Parameters:
- urlBindings- the URL bindings for the function.
- Returns:
- the EventingFunction.Builderfor chaining purposes.
 
- 
bucketBindingsSets the bucket bindings for the function.- Parameters:
- bucketBindings- the bucket bindings for the function.
- Returns:
- the EventingFunction.Builderfor chaining purposes.
 
- 
constantBindingspublic 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.
 
- 
enforceSchemaSet to true if the schema schould be enforced.- Parameters:
- enforceSchema- true if it should be enforced.
- Returns:
- the EventingFunction.Builderfor chaining purposes.
 
- 
settingsSets various function settings to customize the runtime behavior.- Parameters:
- settings- the settings to apply to the function.
- Returns:
- the EventingFunction.Builderfor chaining purposes.
 
- 
buildBuilds the immutableEventingFunction.
 
-