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
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params
-
Field Summary
Fields Modifier and Type Field Description static org.elasticsearch.common.ParseField
SNAPSHOT_ID
static org.elasticsearch.common.ParseField
TIMEOUT
static org.elasticsearch.common.ParseField
WAIT_FOR_COMPLETION
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY
-
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 boolean
equals(java.lang.Object o)
static UpgradeJobModelSnapshotRequest
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
java.lang.String
getJobId()
java.lang.String
getSnapshotId()
org.elasticsearch.common.unit.TimeValue
getTimeout()
java.lang.Boolean
getWaitForCompletion()
int
hashCode()
org.elasticsearch.common.xcontent.XContentBuilder
toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
Methods inherited from interface org.elasticsearch.client.Validatable
validate
-
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in 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:
toXContent
in interfaceorg.elasticsearch.common.xcontent.ToXContent
- Throws:
java.io.IOException
-