public class JobSummary
extends java.lang.Object
implements java.io.Serializable
The job summary.
Constructor and Description |
---|
JobSummary() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getCompletedAt()
The time, in seconds since the epoch, when the job completed.
|
java.util.Date |
getCreatedAt()
The time, in seconds since the epoch, when the job was created.
|
java.lang.String |
getJobArn()
The job ARN.
|
java.lang.String |
getJobId()
The unique identifier you assigned to this job when it was created.
|
java.util.Date |
getLastUpdatedAt()
The time, in seconds since the epoch, when the job was last updated.
|
java.lang.String |
getStatus()
The job summary status.
|
java.lang.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).
|
java.lang.String |
getThingGroupId()
The ID of the thing group.
|
int |
hashCode() |
void |
setCompletedAt(java.util.Date completedAt)
The time, in seconds since the epoch, when the job completed.
|
void |
setCreatedAt(java.util.Date createdAt)
The time, in seconds since the epoch, when the job was created.
|
void |
setJobArn(java.lang.String jobArn)
The job ARN.
|
void |
setJobId(java.lang.String jobId)
The unique identifier you assigned to this job when it was created.
|
void |
setLastUpdatedAt(java.util.Date lastUpdatedAt)
The time, in seconds since the epoch, when the job was last updated.
|
void |
setStatus(JobStatus status)
The job summary status.
|
void |
setStatus(java.lang.String status)
The job summary status.
|
void |
setTargetSelection(java.lang.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).
|
void |
setTargetSelection(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).
|
void |
setThingGroupId(java.lang.String thingGroupId)
The ID of the thing group.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
JobSummary |
withCompletedAt(java.util.Date completedAt)
The time, in seconds since the epoch, when the job completed.
|
JobSummary |
withCreatedAt(java.util.Date createdAt)
The time, in seconds since the epoch, when the job was created.
|
JobSummary |
withJobArn(java.lang.String jobArn)
The job ARN.
|
JobSummary |
withJobId(java.lang.String jobId)
The unique identifier you assigned to this job when it was created.
|
JobSummary |
withLastUpdatedAt(java.util.Date lastUpdatedAt)
The time, in seconds since the epoch, when the job was last updated.
|
JobSummary |
withStatus(JobStatus status)
The job summary status.
|
JobSummary |
withStatus(java.lang.String status)
The job summary status.
|
JobSummary |
withTargetSelection(java.lang.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).
|
JobSummary |
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).
|
JobSummary |
withThingGroupId(java.lang.String thingGroupId)
The ID of the thing group.
|
public java.lang.String getJobArn()
The job ARN.
The job ARN.
public void setJobArn(java.lang.String jobArn)
The job ARN.
jobArn
- The job ARN.
public JobSummary withJobArn(java.lang.String jobArn)
The job ARN.
Returns a reference to this object so that method calls can be chained together.
jobArn
- The job ARN.
public java.lang.String getJobId()
The unique identifier you assigned to this job when it was created.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
The unique identifier you assigned to this job when it was created.
public void setJobId(java.lang.String jobId)
The unique identifier you assigned to this job when it was created.
Constraints:
Length: 1 - 64
Pattern: [a-zA-Z0-9_-]+
jobId
- The unique identifier you assigned to this job when it was created.
public JobSummary withJobId(java.lang.String jobId)
The unique identifier you assigned to this job when it was created.
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 unique identifier you assigned to this job when it was created.
public java.lang.String getThingGroupId()
The ID of the thing group.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9\-]+
The ID of the thing group.
public void setThingGroupId(java.lang.String thingGroupId)
The ID of the thing group.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9\-]+
thingGroupId
- The ID of the thing group.
public JobSummary withThingGroupId(java.lang.String thingGroupId)
The ID of the thing group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 128
Pattern: [a-zA-Z0-9\-]+
thingGroupId
- The ID of the thing group.
public java.lang.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 thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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 thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
TargetSelection
public void setTargetSelection(java.lang.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 thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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 thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
TargetSelection
public JobSummary withTargetSelection(java.lang.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 thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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 thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
TargetSelection
public void setTargetSelection(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 thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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 thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
TargetSelection
public JobSummary 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 thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CONTINUOUS, SNAPSHOT
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 thing when the thing is added to a target group, even after the job was completed by all things originally in the group.
TargetSelection
public java.lang.String getStatus()
The job summary status.
Constraints:
Allowed Values: IN_PROGRESS, CANCELED, COMPLETED,
DELETION_IN_PROGRESS
The job summary status.
JobStatus
public void setStatus(java.lang.String status)
The job summary status.
Constraints:
Allowed Values: IN_PROGRESS, CANCELED, COMPLETED,
DELETION_IN_PROGRESS
status
- The job summary status.
JobStatus
public JobSummary withStatus(java.lang.String status)
The job summary status.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN_PROGRESS, CANCELED, COMPLETED,
DELETION_IN_PROGRESS
status
- The job summary status.
JobStatus
public void setStatus(JobStatus status)
The job summary status.
Constraints:
Allowed Values: IN_PROGRESS, CANCELED, COMPLETED,
DELETION_IN_PROGRESS
status
- The job summary status.
JobStatus
public JobSummary withStatus(JobStatus status)
The job summary status.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: IN_PROGRESS, CANCELED, COMPLETED,
DELETION_IN_PROGRESS
status
- The job summary status.
JobStatus
public java.util.Date getCreatedAt()
The time, in seconds since the epoch, when the job was created.
The time, in seconds since the epoch, when the job was created.
public void setCreatedAt(java.util.Date createdAt)
The time, in seconds since the epoch, when the job was created.
createdAt
- The time, in seconds since the epoch, when the job was created.
public JobSummary withCreatedAt(java.util.Date createdAt)
The time, in seconds since the epoch, when the job was created.
Returns a reference to this object so that method calls can be chained together.
createdAt
- The time, in seconds since the epoch, when the job was created.
public java.util.Date getLastUpdatedAt()
The time, in seconds since the epoch, when the job was last updated.
The time, in seconds since the epoch, when the job was last updated.
public void setLastUpdatedAt(java.util.Date lastUpdatedAt)
The time, in seconds since the epoch, when the job was last updated.
lastUpdatedAt
- The time, in seconds since the epoch, when the job was last updated.
public JobSummary withLastUpdatedAt(java.util.Date lastUpdatedAt)
The time, in seconds since the epoch, when the job was last updated.
Returns a reference to this object so that method calls can be chained together.
lastUpdatedAt
- The time, in seconds since the epoch, when the job was last updated.
public java.util.Date getCompletedAt()
The time, in seconds since the epoch, when the job completed.
The time, in seconds since the epoch, when the job completed.
public void setCompletedAt(java.util.Date completedAt)
The time, in seconds since the epoch, when the job completed.
completedAt
- The time, in seconds since the epoch, when the job completed.
public JobSummary withCompletedAt(java.util.Date completedAt)
The time, in seconds since the epoch, when the job completed.
Returns a reference to this object so that method calls can be chained together.
completedAt
- The time, in seconds since the epoch, when the job completed.
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.