Package org.elasticsearch.client.ml
Class DeleteJobResponse
java.lang.Object
org.elasticsearch.client.ml.DeleteJobResponse
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public class DeleteJobResponse
extends Object
implements org.elasticsearch.xcontent.ToXContentObject
Response object that contains the acknowledgement or the task id
depending on whether the delete job action was requested to wait for completion.
-
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
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ConstructingObjectParser<DeleteJobResponse,Void> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic DeleteJobResponsefromXContent(org.elasticsearch.xcontent.XContentParser parser) Get the action acknowledgementgetTask()Get the task idinthashCode()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<DeleteJobResponse,Void> PARSER
-
-
Method Details
-
fromXContent
public static DeleteJobResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
getAcknowledged
Get the action acknowledgement- Returns:
nullwhen the request hadDeleteJobRequest.getWaitForCompletion()set tofalseor otherwise abooleanthat indicates whether the job was deleted successfully.
-
getTask
Get the task id- Returns:
nullwhen the request hadDeleteJobRequest.getWaitForCompletion()set totrueor otherwise the id of the job deletion task.
-
hashCode
public int hashCode() -
equals
-
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
-