Module org.elasticsearch.xcore
Class PutWatchRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<PutWatchRequest,PutWatchResponse>
org.elasticsearch.xpack.core.watcher.transport.actions.put.PutWatchRequestBuilder
- All Implemented Interfaces:
RequestBuilder<PutWatchRequest,PutWatchResponse>
-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetActive(boolean active) setSource(BytesReference source, org.elasticsearch.xcontent.XContentType xContentType) setSource(WatchSourceBuilder source) setVersion(long version)
-
Constructor Details
-
PutWatchRequestBuilder
-
PutWatchRequestBuilder
-
-
Method Details
-
setId
- Parameters:
id- The watch id to be created
-
setSource
public PutWatchRequestBuilder setSource(BytesReference source, org.elasticsearch.xcontent.XContentType xContentType) - Parameters:
source- the source of the watch to be createdxContentType- the content type of the source
-
setSource
- Parameters:
source- the source of the watch to be created
-
setActive
- Parameters:
active- Sets whether the watcher is in/active by default
-
setVersion
- Parameters:
version- Sets the version to be set when running the update
-