public class CancelJobExecutionRequest extends AmazonWebServiceRequest implements java.io.Serializable
Cancels the execution of a job for a given thing.
Constructor and Description |
---|
CancelJobExecutionRequest() |
Modifier and Type | Method and Description |
---|---|
CancelJobExecutionRequest |
addstatusDetailsEntry(java.lang.String key,
java.lang.String value)
A collection of name/value pairs that describe the status of the job
execution.
|
CancelJobExecutionRequest |
clearstatusDetailsEntries()
Removes all the entries added into statusDetails.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Long |
getExpectedVersion()
(Optional) The expected current version of the job execution.
|
java.lang.Boolean |
getForce()
(Optional) If
true the job execution will be canceled if it
has status IN_PROGRESS or QUEUED, otherwise the job execution will be
canceled only if it has status QUEUED. |
java.lang.String |
getJobId()
The ID of the job to be canceled.
|
java.util.Map<java.lang.String,java.lang.String> |
getStatusDetails()
A collection of name/value pairs that describe the status of the job
execution.
|
java.lang.String |
getThingName()
The name of the thing whose execution of the job will be canceled.
|
int |
hashCode() |
java.lang.Boolean |
isForce()
(Optional) If
true the job execution will be canceled if it
has status IN_PROGRESS or QUEUED, otherwise the job execution will be
canceled only if it has status QUEUED. |
void |
setExpectedVersion(java.lang.Long expectedVersion)
(Optional) The expected current version of the job execution.
|
void |
setForce(java.lang.Boolean force)
(Optional) If
true the job execution will be canceled if it
has status IN_PROGRESS or QUEUED, otherwise the job execution will be
canceled only if it has status QUEUED. |
void |
setJobId(java.lang.String jobId)
The ID of the job to be canceled.
|
void |
setStatusDetails(java.util.Map<java.lang.String,java.lang.String> statusDetails)
A collection of name/value pairs that describe the status of the job
execution.
|
void |
setThingName(java.lang.String thingName)
The name of the thing whose execution of the job will be canceled.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CancelJobExecutionRequest |
withExpectedVersion(java.lang.Long expectedVersion)
(Optional) The expected current version of the job execution.
|
CancelJobExecutionRequest |
withForce(java.lang.Boolean force)
(Optional) If
true the job execution will be canceled if it
has status IN_PROGRESS or QUEUED, otherwise the job execution will be
canceled only if it has status QUEUED. |
CancelJobExecutionRequest |
withJobId(java.lang.String jobId)
The ID of the job to be canceled.
|
CancelJobExecutionRequest |
withStatusDetails(java.util.Map<java.lang.String,java.lang.String> statusDetails)
A collection of name/value pairs that describe the status of the job
execution.
|
CancelJobExecutionRequest |
withThingName(java.lang.String thingName)
The name of the thing whose execution of the job will be canceled.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getJobId()
The ID of the job to be canceled.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
The ID of the job to be canceled.
public void setJobId(java.lang.String jobId)
The ID of the job to be canceled.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
jobId
- The ID of the job to be canceled.
public CancelJobExecutionRequest withJobId(java.lang.String jobId)
The ID of the job to be canceled.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
jobId
- The ID of the job to be canceled.
public java.lang.String getThingName()
The name of the thing whose execution of the job will be canceled.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
The name of the thing whose execution of the job will be canceled.
public void setThingName(java.lang.String thingName)
The name of the thing whose execution of the job will be canceled.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName
- The name of the thing whose execution of the job will be canceled.
public CancelJobExecutionRequest withThingName(java.lang.String thingName)
The name of the thing whose execution of the job will be canceled.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9:_-]+
thingName
- The name of the thing whose execution of the job will be canceled.
public java.lang.Boolean isForce()
(Optional) If true
the job execution will be canceled if it
has status IN_PROGRESS or QUEUED, otherwise the job execution will be
canceled only if it has status QUEUED. If you attempt to cancel a job
execution that is IN_PROGRESS, and you do not set force
to
true
, then an InvalidStateTransitionException
will be thrown. The default is false
.
Canceling a job execution which is "IN_PROGRESS", will cause the device to be unable to update the job execution status. Use caution and ensure that the device is able to recover to a valid state.
(Optional) If true
the job execution will be
canceled if it has status IN_PROGRESS or QUEUED, otherwise the
job execution will be canceled only if it has status QUEUED. If
you attempt to cancel a job execution that is IN_PROGRESS, and
you do not set force
to true
, then an
InvalidStateTransitionException
will be thrown. The
default is false
.
Canceling a job execution which is "IN_PROGRESS", will cause the device to be unable to update the job execution status. Use caution and ensure that the device is able to recover to a valid state.
public java.lang.Boolean getForce()
(Optional) If true
the job execution will be canceled if it
has status IN_PROGRESS or QUEUED, otherwise the job execution will be
canceled only if it has status QUEUED. If you attempt to cancel a job
execution that is IN_PROGRESS, and you do not set force
to
true
, then an InvalidStateTransitionException
will be thrown. The default is false
.
Canceling a job execution which is "IN_PROGRESS", will cause the device to be unable to update the job execution status. Use caution and ensure that the device is able to recover to a valid state.
(Optional) If true
the job execution will be
canceled if it has status IN_PROGRESS or QUEUED, otherwise the
job execution will be canceled only if it has status QUEUED. If
you attempt to cancel a job execution that is IN_PROGRESS, and
you do not set force
to true
, then an
InvalidStateTransitionException
will be thrown. The
default is false
.
Canceling a job execution which is "IN_PROGRESS", will cause the device to be unable to update the job execution status. Use caution and ensure that the device is able to recover to a valid state.
public void setForce(java.lang.Boolean force)
(Optional) If true
the job execution will be canceled if it
has status IN_PROGRESS or QUEUED, otherwise the job execution will be
canceled only if it has status QUEUED. If you attempt to cancel a job
execution that is IN_PROGRESS, and you do not set force
to
true
, then an InvalidStateTransitionException
will be thrown. The default is false
.
Canceling a job execution which is "IN_PROGRESS", will cause the device to be unable to update the job execution status. Use caution and ensure that the device is able to recover to a valid state.
force
-
(Optional) If true
the job execution will be
canceled if it has status IN_PROGRESS or QUEUED, otherwise the
job execution will be canceled only if it has status QUEUED.
If you attempt to cancel a job execution that is IN_PROGRESS,
and you do not set force
to true
,
then an InvalidStateTransitionException
will be
thrown. The default is false
.
Canceling a job execution which is "IN_PROGRESS", will cause the device to be unable to update the job execution status. Use caution and ensure that the device is able to recover to a valid state.
public CancelJobExecutionRequest withForce(java.lang.Boolean force)
(Optional) If true
the job execution will be canceled if it
has status IN_PROGRESS or QUEUED, otherwise the job execution will be
canceled only if it has status QUEUED. If you attempt to cancel a job
execution that is IN_PROGRESS, and you do not set force
to
true
, then an InvalidStateTransitionException
will be thrown. The default is false
.
Canceling a job execution which is "IN_PROGRESS", will cause the device to be unable to update the job execution status. Use caution and ensure that the device is able to recover to a valid state.
Returns a reference to this object so that method calls can be chained together.
force
-
(Optional) If true
the job execution will be
canceled if it has status IN_PROGRESS or QUEUED, otherwise the
job execution will be canceled only if it has status QUEUED.
If you attempt to cancel a job execution that is IN_PROGRESS,
and you do not set force
to true
,
then an InvalidStateTransitionException
will be
thrown. The default is false
.
Canceling a job execution which is "IN_PROGRESS", will cause the device to be unable to update the job execution status. Use caution and ensure that the device is able to recover to a valid state.
public java.lang.Long getExpectedVersion()
(Optional) The expected current version of the job execution. Each time you update the job execution, its version is incremented. If the version of the job execution stored in Jobs does not match, the update is rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status data is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain the job execution status data.)
(Optional) The expected current version of the job execution. Each time you update the job execution, its version is incremented. If the version of the job execution stored in Jobs does not match, the update is rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status data is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain the job execution status data.)
public void setExpectedVersion(java.lang.Long expectedVersion)
(Optional) The expected current version of the job execution. Each time you update the job execution, its version is incremented. If the version of the job execution stored in Jobs does not match, the update is rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status data is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain the job execution status data.)
expectedVersion
- (Optional) The expected current version of the job execution. Each time you update the job execution, its version is incremented. If the version of the job execution stored in Jobs does not match, the update is rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status data is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain the job execution status data.)
public CancelJobExecutionRequest withExpectedVersion(java.lang.Long expectedVersion)
(Optional) The expected current version of the job execution. Each time you update the job execution, its version is incremented. If the version of the job execution stored in Jobs does not match, the update is rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status data is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain the job execution status data.)
Returns a reference to this object so that method calls can be chained together.
expectedVersion
- (Optional) The expected current version of the job execution. Each time you update the job execution, its version is incremented. If the version of the job execution stored in Jobs does not match, the update is rejected with a VersionMismatch error, and an ErrorResponse that contains the current job execution status data is returned. (This makes it unnecessary to perform a separate DescribeJobExecution request in order to obtain the job execution status data.)
public java.util.Map<java.lang.String,java.lang.String> getStatusDetails()
A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged. You can specify at most 10 name/value pairs.
A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged. You can specify at most 10 name/value pairs.
public void setStatusDetails(java.util.Map<java.lang.String,java.lang.String> statusDetails)
A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged. You can specify at most 10 name/value pairs.
statusDetails
- A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged. You can specify at most 10 name/value pairs.
public CancelJobExecutionRequest withStatusDetails(java.util.Map<java.lang.String,java.lang.String> statusDetails)
A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged. You can specify at most 10 name/value pairs.
Returns a reference to this object so that method calls can be chained together.
statusDetails
- A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged. You can specify at most 10 name/value pairs.
public CancelJobExecutionRequest addstatusDetailsEntry(java.lang.String key, java.lang.String value)
A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged. You can specify at most 10 name/value pairs.
The method adds a new key-value pair into statusDetails parameter, and returns a reference to this object so that method calls can be chained together.
key
- The key of the entry to be added into statusDetails.value
- The corresponding value of the entry to be added into
statusDetails.public CancelJobExecutionRequest clearstatusDetailsEntries()
Returns a reference to this object so that method calls can be chained together.
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.