java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<PutWatchRequest,PutWatchResponse>
org.elasticsearch.xpack.core.watcher.transport.actions.put.PutWatchRequestBuilder
All Implemented Interfaces:
RequestBuilder<PutWatchRequest,PutWatchResponse>

public class PutWatchRequestBuilder extends ActionRequestBuilder<PutWatchRequest,PutWatchResponse>
  • Constructor Details

  • Method Details

    • setId

      public PutWatchRequestBuilder setId(String id)
      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 created
      xContentType - the content type of the source
    • setSource

      public PutWatchRequestBuilder setSource(WatchSourceBuilder source)
      Parameters:
      source - the source of the watch to be created
    • setActive

      public PutWatchRequestBuilder setActive(boolean active)
      Parameters:
      active - Sets whether the watcher is in/active by default
    • setVersion

      public PutWatchRequestBuilder setVersion(long version)
      Parameters:
      version - Sets the version to be set when running the update