Package org.elasticsearch.client.ml
Class UpgradeJobModelSnapshotRequest
java.lang.Object
org.elasticsearch.client.ml.UpgradeJobModelSnapshotRequest
- All Implemented Interfaces:
Validatable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public class UpgradeJobModelSnapshotRequest extends java.lang.Object implements Validatable, org.elasticsearch.common.xcontent.ToXContentObject
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseFieldSNAPSHOT_IDstatic org.elasticsearch.common.ParseFieldTIMEOUTstatic org.elasticsearch.common.ParseFieldWAIT_FOR_COMPLETION -
Constructor Summary
Constructors Constructor Description UpgradeJobModelSnapshotRequest(java.lang.String jobId, java.lang.String snapshotId, org.elasticsearch.common.unit.TimeValue timeValue, java.lang.Boolean waitForCompletion) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)static UpgradeJobModelSnapshotRequestfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)java.lang.StringgetJobId()java.lang.StringgetSnapshotId()org.elasticsearch.common.unit.TimeValuegetTimeout()java.lang.BooleangetWaitForCompletion()inthashCode()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
Field Details
-
SNAPSHOT_ID
public static final org.elasticsearch.common.ParseField SNAPSHOT_ID -
TIMEOUT
public static final org.elasticsearch.common.ParseField TIMEOUT -
WAIT_FOR_COMPLETION
public static final org.elasticsearch.common.ParseField WAIT_FOR_COMPLETION
-
-
Constructor Details
-
UpgradeJobModelSnapshotRequest
public UpgradeJobModelSnapshotRequest(java.lang.String jobId, java.lang.String snapshotId, org.elasticsearch.common.unit.TimeValue timeValue, java.lang.Boolean waitForCompletion)
-
-
Method Details
-
fromXContent
public static UpgradeJobModelSnapshotRequest fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) -
getJobId
public java.lang.String getJobId() -
getSnapshotId
public java.lang.String getSnapshotId() -
getTimeout
public org.elasticsearch.common.unit.TimeValue getTimeout() -
getWaitForCompletion
public java.lang.Boolean getWaitForCompletion() -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-