@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Job extends Object implements Serializable, Cloneable, StructuredPojo
The Job
object contains details about a job.
Constructor and Description |
---|
Job() |
Modifier and Type | Method and Description |
---|---|
Job |
addDocumentParametersEntry(String key,
String value) |
Job |
clearDocumentParametersEntries()
Removes all the entries added into DocumentParameters.
|
Job |
clone() |
boolean |
equals(Object obj) |
String |
getComment()
If the job was updated, describes the reason for the update.
|
Date |
getCompletedAt()
The time, in milliseconds since the epoch, when the job was completed.
|
Date |
getCreatedAt()
The time, in milliseconds since the epoch, when the job was created.
|
String |
getDescription()
A short text description of the job.
|
Map<String,String> |
getDocumentParameters()
The parameters specified for the job document.
|
String |
getJobArn()
An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".
|
JobExecutionsRolloutConfig |
getJobExecutionsRolloutConfig()
Allows you to create a staged rollout of a job.
|
String |
getJobId()
The unique identifier you assigned to this job when it was created.
|
JobProcessDetails |
getJobProcessDetails()
Details about the job process.
|
Date |
getLastUpdatedAt()
The time, in milliseconds since the epoch, when the job was last updated.
|
PresignedUrlConfig |
getPresignedUrlConfig()
Configuration for pre-signed S3 URLs.
|
String |
getStatus()
The status of the job, one of
IN_PROGRESS , CANCELED , or COMPLETED . |
List<String> |
getTargets()
A list of IoT things and thing groups to which the job should be sent.
|
String |
getTargetSelection()
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified
as targets have completed the job (SNAPSHOT).
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setComment(String comment)
If the job was updated, describes the reason for the update.
|
void |
setCompletedAt(Date completedAt)
The time, in milliseconds since the epoch, when the job was completed.
|
void |
setCreatedAt(Date createdAt)
The time, in milliseconds since the epoch, when the job was created.
|
void |
setDescription(String description)
A short text description of the job.
|
void |
setDocumentParameters(Map<String,String> documentParameters)
The parameters specified for the job document.
|
void |
setJobArn(String jobArn)
An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".
|
void |
setJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig)
Allows you to create a staged rollout of a job.
|
void |
setJobId(String jobId)
The unique identifier you assigned to this job when it was created.
|
void |
setJobProcessDetails(JobProcessDetails jobProcessDetails)
Details about the job process.
|
void |
setLastUpdatedAt(Date lastUpdatedAt)
The time, in milliseconds since the epoch, when the job was last updated.
|
void |
setPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig)
Configuration for pre-signed S3 URLs.
|
void |
setStatus(String status)
The status of the job, one of
IN_PROGRESS , CANCELED , or COMPLETED . |
void |
setTargets(Collection<String> targets)
A list of IoT things and thing groups to which the job should be sent.
|
void |
setTargetSelection(String targetSelection)
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified
as targets have completed the job (SNAPSHOT).
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Job |
withComment(String comment)
If the job was updated, describes the reason for the update.
|
Job |
withCompletedAt(Date completedAt)
The time, in milliseconds since the epoch, when the job was completed.
|
Job |
withCreatedAt(Date createdAt)
The time, in milliseconds since the epoch, when the job was created.
|
Job |
withDescription(String description)
A short text description of the job.
|
Job |
withDocumentParameters(Map<String,String> documentParameters)
The parameters specified for the job document.
|
Job |
withJobArn(String jobArn)
An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".
|
Job |
withJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig)
Allows you to create a staged rollout of a job.
|
Job |
withJobId(String jobId)
The unique identifier you assigned to this job when it was created.
|
Job |
withJobProcessDetails(JobProcessDetails jobProcessDetails)
Details about the job process.
|
Job |
withLastUpdatedAt(Date lastUpdatedAt)
The time, in milliseconds since the epoch, when the job was last updated.
|
Job |
withPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig)
Configuration for pre-signed S3 URLs.
|
Job |
withStatus(JobStatus status)
The status of the job, one of
IN_PROGRESS , CANCELED , or COMPLETED . |
Job |
withStatus(String status)
The status of the job, one of
IN_PROGRESS , CANCELED , or COMPLETED . |
Job |
withTargets(Collection<String> targets)
A list of IoT things and thing groups to which the job should be sent.
|
Job |
withTargets(String... targets)
A list of IoT things and thing groups to which the job should be sent.
|
Job |
withTargetSelection(String targetSelection)
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified
as targets have completed the job (SNAPSHOT).
|
Job |
withTargetSelection(TargetSelection targetSelection)
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified
as targets have completed the job (SNAPSHOT).
|
public void setJobArn(String jobArn)
An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".
jobArn
- An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".public String getJobArn()
An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".
public Job withJobArn(String jobArn)
An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".
jobArn
- An ARN identifying the job with format "arn:aws:iot:region:account:job/jobId".public void setJobId(String jobId)
The unique identifier you assigned to this job when it was created.
jobId
- The unique identifier you assigned to this job when it was created.public String getJobId()
The unique identifier you assigned to this job when it was created.
public Job withJobId(String jobId)
The unique identifier you assigned to this job when it was created.
jobId
- The unique identifier you assigned to this job when it was created.public void setTargetSelection(String targetSelection)
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a device when the thing representing the device is added to a target group, even after the job was completed by all things originally in the group.
targetSelection
- Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things
specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing
when a change is detected in a target. For example, a job will run on a device when the thing representing
the device is added to a target group, even after the job was completed by all things originally in the
group.TargetSelection
public String getTargetSelection()
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a device when the thing representing the device is added to a target group, even after the job was completed by all things originally in the group.
TargetSelection
public Job withTargetSelection(String targetSelection)
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a device when the thing representing the device is added to a target group, even after the job was completed by all things originally in the group.
targetSelection
- Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things
specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing
when a change is detected in a target. For example, a job will run on a device when the thing representing
the device is added to a target group, even after the job was completed by all things originally in the
group.TargetSelection
public Job withTargetSelection(TargetSelection targetSelection)
Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing when a change is detected in a target. For example, a job will run on a device when the thing representing the device is added to a target group, even after the job was completed by all things originally in the group.
targetSelection
- Specifies whether the job will continue to run (CONTINUOUS), or will be complete after all those things
specified as targets have completed the job (SNAPSHOT). If continuous, the job may also be run on a thing
when a change is detected in a target. For example, a job will run on a device when the thing representing
the device is added to a target group, even after the job was completed by all things originally in the
group.TargetSelection
public void setStatus(String status)
The status of the job, one of IN_PROGRESS
, CANCELED
, or COMPLETED
.
status
- The status of the job, one of IN_PROGRESS
, CANCELED
, or COMPLETED
.JobStatus
public String getStatus()
The status of the job, one of IN_PROGRESS
, CANCELED
, or COMPLETED
.
IN_PROGRESS
, CANCELED
, or COMPLETED
.JobStatus
public Job withStatus(String status)
The status of the job, one of IN_PROGRESS
, CANCELED
, or COMPLETED
.
status
- The status of the job, one of IN_PROGRESS
, CANCELED
, or COMPLETED
.JobStatus
public Job withStatus(JobStatus status)
The status of the job, one of IN_PROGRESS
, CANCELED
, or COMPLETED
.
status
- The status of the job, one of IN_PROGRESS
, CANCELED
, or COMPLETED
.JobStatus
public void setComment(String comment)
If the job was updated, describes the reason for the update.
comment
- If the job was updated, describes the reason for the update.public String getComment()
If the job was updated, describes the reason for the update.
public Job withComment(String comment)
If the job was updated, describes the reason for the update.
comment
- If the job was updated, describes the reason for the update.public List<String> getTargets()
A list of IoT things and thing groups to which the job should be sent.
public void setTargets(Collection<String> targets)
A list of IoT things and thing groups to which the job should be sent.
targets
- A list of IoT things and thing groups to which the job should be sent.public Job withTargets(String... targets)
A list of IoT things and thing groups to which the job should be sent.
NOTE: This method appends the values to the existing list (if any). Use
setTargets(java.util.Collection)
or withTargets(java.util.Collection)
if you want to override
the existing values.
targets
- A list of IoT things and thing groups to which the job should be sent.public Job withTargets(Collection<String> targets)
A list of IoT things and thing groups to which the job should be sent.
targets
- A list of IoT things and thing groups to which the job should be sent.public void setDescription(String description)
A short text description of the job.
description
- A short text description of the job.public String getDescription()
A short text description of the job.
public Job withDescription(String description)
A short text description of the job.
description
- A short text description of the job.public void setPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig)
Configuration for pre-signed S3 URLs.
presignedUrlConfig
- Configuration for pre-signed S3 URLs.public PresignedUrlConfig getPresignedUrlConfig()
Configuration for pre-signed S3 URLs.
public Job withPresignedUrlConfig(PresignedUrlConfig presignedUrlConfig)
Configuration for pre-signed S3 URLs.
presignedUrlConfig
- Configuration for pre-signed S3 URLs.public void setJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig)
Allows you to create a staged rollout of a job.
jobExecutionsRolloutConfig
- Allows you to create a staged rollout of a job.public JobExecutionsRolloutConfig getJobExecutionsRolloutConfig()
Allows you to create a staged rollout of a job.
public Job withJobExecutionsRolloutConfig(JobExecutionsRolloutConfig jobExecutionsRolloutConfig)
Allows you to create a staged rollout of a job.
jobExecutionsRolloutConfig
- Allows you to create a staged rollout of a job.public void setCreatedAt(Date createdAt)
The time, in milliseconds since the epoch, when the job was created.
createdAt
- The time, in milliseconds since the epoch, when the job was created.public Date getCreatedAt()
The time, in milliseconds since the epoch, when the job was created.
public Job withCreatedAt(Date createdAt)
The time, in milliseconds since the epoch, when the job was created.
createdAt
- The time, in milliseconds since the epoch, when the job was created.public void setLastUpdatedAt(Date lastUpdatedAt)
The time, in milliseconds since the epoch, when the job was last updated.
lastUpdatedAt
- The time, in milliseconds since the epoch, when the job was last updated.public Date getLastUpdatedAt()
The time, in milliseconds since the epoch, when the job was last updated.
public Job withLastUpdatedAt(Date lastUpdatedAt)
The time, in milliseconds since the epoch, when the job was last updated.
lastUpdatedAt
- The time, in milliseconds since the epoch, when the job was last updated.public void setCompletedAt(Date completedAt)
The time, in milliseconds since the epoch, when the job was completed.
completedAt
- The time, in milliseconds since the epoch, when the job was completed.public Date getCompletedAt()
The time, in milliseconds since the epoch, when the job was completed.
public Job withCompletedAt(Date completedAt)
The time, in milliseconds since the epoch, when the job was completed.
completedAt
- The time, in milliseconds since the epoch, when the job was completed.public void setJobProcessDetails(JobProcessDetails jobProcessDetails)
Details about the job process.
jobProcessDetails
- Details about the job process.public JobProcessDetails getJobProcessDetails()
Details about the job process.
public Job withJobProcessDetails(JobProcessDetails jobProcessDetails)
Details about the job process.
jobProcessDetails
- Details about the job process.public Map<String,String> getDocumentParameters()
The parameters specified for the job document.
public void setDocumentParameters(Map<String,String> documentParameters)
The parameters specified for the job document.
documentParameters
- The parameters specified for the job document.public Job withDocumentParameters(Map<String,String> documentParameters)
The parameters specified for the job document.
documentParameters
- The parameters specified for the job document.public Job clearDocumentParametersEntries()
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.