@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateJobExecutionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
UpdateJobExecutionRequest() |
Modifier and Type | Method and Description |
---|---|
UpdateJobExecutionRequest |
addStatusDetailsEntry(String key,
String value) |
UpdateJobExecutionRequest |
clearStatusDetailsEntries()
Removes all the entries added into StatusDetails.
|
UpdateJobExecutionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
Long |
getExecutionNumber()
Optional.
|
Long |
getExpectedVersion()
Optional.
|
Boolean |
getIncludeJobDocument()
Optional.
|
Boolean |
getIncludeJobExecutionState()
Optional.
|
String |
getJobId()
The unique identifier assigned to this job when it was created.
|
String |
getStatus()
The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED).
|
Map<String,String> |
getStatusDetails()
Optional.
|
Long |
getStepTimeoutInMinutes()
Specifies the amount of time this device has to finish execution of this job.
|
String |
getThingName()
The name of the thing associated with the device.
|
int |
hashCode() |
Boolean |
isIncludeJobDocument()
Optional.
|
Boolean |
isIncludeJobExecutionState()
Optional.
|
void |
setExecutionNumber(Long executionNumber)
Optional.
|
void |
setExpectedVersion(Long expectedVersion)
Optional.
|
void |
setIncludeJobDocument(Boolean includeJobDocument)
Optional.
|
void |
setIncludeJobExecutionState(Boolean includeJobExecutionState)
Optional.
|
void |
setJobId(String jobId)
The unique identifier assigned to this job when it was created.
|
void |
setStatus(String status)
The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED).
|
void |
setStatusDetails(Map<String,String> statusDetails)
Optional.
|
void |
setStepTimeoutInMinutes(Long stepTimeoutInMinutes)
Specifies the amount of time this device has to finish execution of this job.
|
void |
setThingName(String thingName)
The name of the thing associated with the device.
|
String |
toString()
Returns a string representation of this object.
|
UpdateJobExecutionRequest |
withExecutionNumber(Long executionNumber)
Optional.
|
UpdateJobExecutionRequest |
withExpectedVersion(Long expectedVersion)
Optional.
|
UpdateJobExecutionRequest |
withIncludeJobDocument(Boolean includeJobDocument)
Optional.
|
UpdateJobExecutionRequest |
withIncludeJobExecutionState(Boolean includeJobExecutionState)
Optional.
|
UpdateJobExecutionRequest |
withJobId(String jobId)
The unique identifier assigned to this job when it was created.
|
UpdateJobExecutionRequest |
withStatus(JobExecutionStatus status)
The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED).
|
UpdateJobExecutionRequest |
withStatus(String status)
The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED).
|
UpdateJobExecutionRequest |
withStatusDetails(Map<String,String> statusDetails)
Optional.
|
UpdateJobExecutionRequest |
withStepTimeoutInMinutes(Long stepTimeoutInMinutes)
Specifies the amount of time this device has to finish execution of this job.
|
UpdateJobExecutionRequest |
withThingName(String thingName)
The name of the thing associated with the device.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setJobId(String jobId)
The unique identifier assigned to this job when it was created.
jobId
- The unique identifier assigned to this job when it was created.public String getJobId()
The unique identifier assigned to this job when it was created.
public UpdateJobExecutionRequest withJobId(String jobId)
The unique identifier assigned to this job when it was created.
jobId
- The unique identifier assigned to this job when it was created.public void setThingName(String thingName)
The name of the thing associated with the device.
thingName
- The name of the thing associated with the device.public String getThingName()
The name of the thing associated with the device.
public UpdateJobExecutionRequest withThingName(String thingName)
The name of the thing associated with the device.
thingName
- The name of the thing associated with the device.public void setStatus(String status)
The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified on every update.
status
- The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified
on every update.JobExecutionStatus
public String getStatus()
The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified on every update.
JobExecutionStatus
public UpdateJobExecutionRequest withStatus(String status)
The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified on every update.
status
- The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified
on every update.JobExecutionStatus
public UpdateJobExecutionRequest withStatus(JobExecutionStatus status)
The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified on every update.
status
- The new status for the job execution (IN_PROGRESS, FAILED, SUCCESS, or REJECTED). This must be specified
on every update.JobExecutionStatus
public Map<String,String> getStatusDetails()
Optional. A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.
public void setStatusDetails(Map<String,String> statusDetails)
Optional. A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.
statusDetails
- Optional. A collection of name/value pairs that describe the status of the job execution. If not
specified, the statusDetails are unchanged.public UpdateJobExecutionRequest withStatusDetails(Map<String,String> statusDetails)
Optional. A collection of name/value pairs that describe the status of the job execution. If not specified, the statusDetails are unchanged.
statusDetails
- Optional. A collection of name/value pairs that describe the status of the job execution. If not
specified, the statusDetails are unchanged.public UpdateJobExecutionRequest addStatusDetailsEntry(String key, String value)
public UpdateJobExecutionRequest clearStatusDetailsEntries()
public void setStepTimeoutInMinutes(Long stepTimeoutInMinutes)
Specifies the amount of time this device has to finish execution of this job. If the job execution status is not
set to a terminal state before this timer expires, or before the timer is reset (by again calling
UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying a new timeout
value in this field) the job execution status will be automatically set to TIMED_OUT
. Note that
setting or resetting this timeout has no effect on that job execution timeout which may have been specified when
the job was created (CreateJob
using field timeoutConfig
).
stepTimeoutInMinutes
- Specifies the amount of time this device has to finish execution of this job. If the job execution status
is not set to a terminal state before this timer expires, or before the timer is reset (by again calling
UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying a new
timeout value in this field) the job execution status will be automatically set to TIMED_OUT
.
Note that setting or resetting this timeout has no effect on that job execution timeout which may have
been specified when the job was created (CreateJob
using field timeoutConfig
).public Long getStepTimeoutInMinutes()
Specifies the amount of time this device has to finish execution of this job. If the job execution status is not
set to a terminal state before this timer expires, or before the timer is reset (by again calling
UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying a new timeout
value in this field) the job execution status will be automatically set to TIMED_OUT
. Note that
setting or resetting this timeout has no effect on that job execution timeout which may have been specified when
the job was created (CreateJob
using field timeoutConfig
).
UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying a new
timeout value in this field) the job execution status will be automatically set to TIMED_OUT
. Note that setting or resetting this timeout has no effect on that job execution timeout which may have
been specified when the job was created (CreateJob
using field timeoutConfig
).public UpdateJobExecutionRequest withStepTimeoutInMinutes(Long stepTimeoutInMinutes)
Specifies the amount of time this device has to finish execution of this job. If the job execution status is not
set to a terminal state before this timer expires, or before the timer is reset (by again calling
UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying a new timeout
value in this field) the job execution status will be automatically set to TIMED_OUT
. Note that
setting or resetting this timeout has no effect on that job execution timeout which may have been specified when
the job was created (CreateJob
using field timeoutConfig
).
stepTimeoutInMinutes
- Specifies the amount of time this device has to finish execution of this job. If the job execution status
is not set to a terminal state before this timer expires, or before the timer is reset (by again calling
UpdateJobExecution
, setting the status to IN_PROGRESS
and specifying a new
timeout value in this field) the job execution status will be automatically set to TIMED_OUT
.
Note that setting or resetting this timeout has no effect on that job execution timeout which may have
been specified when the job was created (CreateJob
using field timeoutConfig
).public void setExpectedVersion(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 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.)
public UpdateJobExecutionRequest withExpectedVersion(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 void setIncludeJobExecutionState(Boolean includeJobExecutionState)
Optional. When included and set to true, the response contains the JobExecutionState data. The default is false.
includeJobExecutionState
- Optional. When included and set to true, the response contains the JobExecutionState data. The default is
false.public Boolean getIncludeJobExecutionState()
Optional. When included and set to true, the response contains the JobExecutionState data. The default is false.
public UpdateJobExecutionRequest withIncludeJobExecutionState(Boolean includeJobExecutionState)
Optional. When included and set to true, the response contains the JobExecutionState data. The default is false.
includeJobExecutionState
- Optional. When included and set to true, the response contains the JobExecutionState data. The default is
false.public Boolean isIncludeJobExecutionState()
Optional. When included and set to true, the response contains the JobExecutionState data. The default is false.
public void setIncludeJobDocument(Boolean includeJobDocument)
Optional. When set to true, the response contains the job document. The default is false.
includeJobDocument
- Optional. When set to true, the response contains the job document. The default is false.public Boolean getIncludeJobDocument()
Optional. When set to true, the response contains the job document. The default is false.
public UpdateJobExecutionRequest withIncludeJobDocument(Boolean includeJobDocument)
Optional. When set to true, the response contains the job document. The default is false.
includeJobDocument
- Optional. When set to true, the response contains the job document. The default is false.public Boolean isIncludeJobDocument()
Optional. When set to true, the response contains the job document. The default is false.
public void setExecutionNumber(Long executionNumber)
Optional. A number that identifies a particular job execution on a particular device.
executionNumber
- Optional. A number that identifies a particular job execution on a particular device.public Long getExecutionNumber()
Optional. A number that identifies a particular job execution on a particular device.
public UpdateJobExecutionRequest withExecutionNumber(Long executionNumber)
Optional. A number that identifies a particular job execution on a particular device.
executionNumber
- Optional. A number that identifies a particular job execution on a particular device.public String toString()
toString
in class Object
Object.toString()
public UpdateJobExecutionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.