Package org.elasticsearch.client.watcher
Class GetWatchResponse
- java.lang.Object
-
- org.elasticsearch.client.watcher.GetWatchResponse
-
public class GetWatchResponse extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description GetWatchResponse(java.lang.String id)
Ctor for missing watchGetWatchResponse(java.lang.String id, long version, WatchStatus status, BytesReference source, XContentType xContentType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static GetWatchResponse
fromXContent(XContentParser parser)
XContentType
getContentType()
Returns theXContentType
of the sourcejava.lang.String
getId()
BytesReference
getSource()
Returns the serialized watchjava.util.Map<java.lang.String,java.lang.Object>
getSourceAsMap()
Returns the source as a mapWatchStatus
getStatus()
long
getVersion()
int
hashCode()
boolean
isFound()
-
-
-
Constructor Detail
-
GetWatchResponse
public GetWatchResponse(java.lang.String id)
Ctor for missing watch
-
GetWatchResponse
public GetWatchResponse(java.lang.String id, long version, WatchStatus status, BytesReference source, XContentType xContentType)
-
-
Method Detail
-
getId
public java.lang.String getId()
-
getVersion
public long getVersion()
-
isFound
public boolean isFound()
-
getStatus
public WatchStatus getStatus()
-
getContentType
public XContentType getContentType()
Returns theXContentType
of the source
-
getSource
public BytesReference getSource()
Returns the serialized watch
-
getSourceAsMap
public java.util.Map<java.lang.String,java.lang.Object> getSourceAsMap()
Returns the source as a map
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
fromXContent
public static GetWatchResponse fromXContent(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
-