public class StopSentimentDetectionJobRequest extends AmazonWebServiceRequest implements java.io.Serializable
Stops a sentiment detection job in progress.
If the job state is IN_PROGRESS
the job is marked for
termination and put into the STOP_REQUESTED
state. If the job
completes before it can be stopped, it is put into the COMPLETED
state; otherwise the job is be stopped and put into the STOPPED
state.
If the job is in the COMPLETED
or FAILED
state when
you call the StopDominantLanguageDetectionJob
operation, the
operation returns a 400 Internal Request Exception.
When a job is stopped, any documents already processed are written to the output location.
Constructor and Description |
---|
StopSentimentDetectionJobRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getJobId()
The identifier of the sentiment detection job to stop.
|
int |
hashCode() |
void |
setJobId(java.lang.String jobId)
The identifier of the sentiment detection job to stop.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
StopSentimentDetectionJobRequest |
withJobId(java.lang.String jobId)
The identifier of the sentiment detection job to stop.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getJobId()
The identifier of the sentiment detection job to stop.
Constraints:
Length: 1 - 32
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
The identifier of the sentiment detection job to stop.
public void setJobId(java.lang.String jobId)
The identifier of the sentiment detection job to stop.
Constraints:
Length: 1 - 32
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
jobId
- The identifier of the sentiment detection job to stop.
public StopSentimentDetectionJobRequest withJobId(java.lang.String jobId)
The identifier of the sentiment detection job to stop.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 32
Pattern: ^([\p{L}\p{Z}\p{N}_.:/=+\-%@]*)$
jobId
- The identifier of the sentiment detection job to stop.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.