Module org.elasticsearch.xcore
Class WatchSourceBuilder
java.lang.Object
org.elasticsearch.xpack.core.watcher.client.WatchSourceBuilder
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class WatchSourceBuilder
extends Object
implements org.elasticsearch.xcontent.ToXContentObject
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAction(String id, org.elasticsearch.core.TimeValue throttlePeriod, Action.Builder<? extends Action> action) addAction(String id, org.elasticsearch.core.TimeValue throttlePeriod, Condition condition, Transform.Builder<? extends Transform> transform, Action.Builder<? extends Action> action) addAction(String id, org.elasticsearch.core.TimeValue throttlePeriod, Condition condition, Transform transform, String path, Action action) addAction(String id, org.elasticsearch.core.TimeValue throttlePeriod, Condition condition, Transform transform, Action action) addAction(String id, org.elasticsearch.core.TimeValue throttlePeriod, Transform.Builder<? extends Transform> transformBuilder, Action.Builder<? extends Action> action) addAction(String id, org.elasticsearch.core.TimeValue throttlePeriod, Transform aTransform, Action action) addAction(String id, Action.Builder<? extends Action> action) addAction(String id, Condition condition, Action.Builder<? extends Action> action) addAction(String id, Transform.Builder<? extends Transform> transformBuilder, Action.Builder<? extends Action> action) build()final BytesReferencebuildAsBytes(org.elasticsearch.xcontent.XContentType contentType) Returns aBytesReferencecontaining theToXContentoutput in binary format.defaultThrottlePeriod(org.elasticsearch.core.TimeValue throttlePeriod) input(Input.Builder<? extends Input> input) org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) transform(Transform.Builder<? extends Transform> transform) trigger(Trigger.Builder<? extends Trigger> trigger) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
WatchSourceBuilder
public WatchSourceBuilder()
-
-
Method Details
-
trigger
-
trigger
-
input
-
input
-
condition
-
transform
-
transform
-
defaultThrottlePeriod
-
addAction
-
addAction
public WatchSourceBuilder addAction(String id, org.elasticsearch.core.TimeValue throttlePeriod, Action.Builder<? extends Action> action) -
addAction
public WatchSourceBuilder addAction(String id, Transform.Builder<? extends Transform> transformBuilder, Action.Builder<? extends Action> action) -
addAction
public WatchSourceBuilder addAction(String id, Condition condition, Action.Builder<? extends Action> action) -
addAction
public WatchSourceBuilder addAction(String id, org.elasticsearch.core.TimeValue throttlePeriod, Transform.Builder<? extends Transform> transformBuilder, Action.Builder<? extends Action> action) -
addAction
public WatchSourceBuilder addAction(String id, org.elasticsearch.core.TimeValue throttlePeriod, Transform aTransform, Action action) -
addAction
public WatchSourceBuilder addAction(String id, org.elasticsearch.core.TimeValue throttlePeriod, Condition condition, Transform.Builder<? extends Transform> transform, Action.Builder<? extends Action> action) -
addAction
public WatchSourceBuilder addAction(String id, org.elasticsearch.core.TimeValue throttlePeriod, Condition condition, Transform transform, Action action) -
addAction
-
metadata
-
build
- Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
buildAsBytes
Returns aBytesReferencecontaining theToXContentoutput in binary format. Builds the request as the providedcontentType
-