@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class JobDescriptor extends Object implements Serializable, Cloneable
A container element for the job configuration and status information returned by a Describe Job
request.
Constructor and Description |
---|
JobDescriptor() |
Modifier and Type | Method and Description |
---|---|
JobDescriptor |
clone() |
boolean |
equals(Object obj) |
Boolean |
getConfirmationRequired()
Indicates whether confirmation is required before Amazon S3 begins running the specified job.
|
Date |
getCreationTime()
A timestamp indicating when this job was created.
|
String |
getDescription()
The description for this job, if one was provided in this job's
Create Job request. |
List<JobFailure> |
getFailureReasons()
If the specified job failed, this field contains information describing the failure.
|
String |
getJobArn()
The Amazon Resource Name (ARN) for this job.
|
String |
getJobId()
The ID for the specified job.
|
JobManifest |
getManifest()
The configuration information for the specified job's manifest object.
|
JobOperation |
getOperation()
The operation that the specified job is configured to execute on the objects listed in the manifest.
|
Integer |
getPriority()
The priority of the specified job.
|
JobProgressSummary |
getProgressSummary()
Describes the total number of tasks that the specified job has executed, the number of tasks that succeeded, and
the number of tasks that failed.
|
JobReport |
getReport()
Contains the configuration information for the job-completion report if you requested one in the
Create Job request. |
String |
getRoleArn()
The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role assigned to execute the
tasks for this job.
|
String |
getStatus()
The current status of the specified job.
|
String |
getStatusUpdateReason()
|
String |
getSuspendedCause()
The reason why the specified job was suspended.
|
Date |
getSuspendedDate()
The timestamp when this job was suspended, if it has been suspended.
|
Date |
getTerminationDate()
A timestamp indicating when this job terminated.
|
int |
hashCode() |
Boolean |
isConfirmationRequired()
Indicates whether confirmation is required before Amazon S3 begins running the specified job.
|
void |
setConfirmationRequired(Boolean confirmationRequired)
Indicates whether confirmation is required before Amazon S3 begins running the specified job.
|
void |
setCreationTime(Date creationTime)
A timestamp indicating when this job was created.
|
void |
setDescription(String description)
The description for this job, if one was provided in this job's
Create Job request. |
void |
setFailureReasons(Collection<JobFailure> failureReasons)
If the specified job failed, this field contains information describing the failure.
|
void |
setJobArn(String jobArn)
The Amazon Resource Name (ARN) for this job.
|
void |
setJobId(String jobId)
The ID for the specified job.
|
void |
setManifest(JobManifest manifest)
The configuration information for the specified job's manifest object.
|
void |
setOperation(JobOperation operation)
The operation that the specified job is configured to execute on the objects listed in the manifest.
|
void |
setPriority(Integer priority)
The priority of the specified job.
|
void |
setProgressSummary(JobProgressSummary progressSummary)
Describes the total number of tasks that the specified job has executed, the number of tasks that succeeded, and
the number of tasks that failed.
|
void |
setReport(JobReport report)
Contains the configuration information for the job-completion report if you requested one in the
Create Job request. |
void |
setRoleArn(String roleArn)
The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role assigned to execute the
tasks for this job.
|
void |
setStatus(String status)
The current status of the specified job.
|
void |
setStatusUpdateReason(String statusUpdateReason)
|
void |
setSuspendedCause(String suspendedCause)
The reason why the specified job was suspended.
|
void |
setSuspendedDate(Date suspendedDate)
The timestamp when this job was suspended, if it has been suspended.
|
void |
setTerminationDate(Date terminationDate)
A timestamp indicating when this job terminated.
|
String |
toString()
Returns a string representation of this object.
|
JobDescriptor |
withConfirmationRequired(Boolean confirmationRequired)
Indicates whether confirmation is required before Amazon S3 begins running the specified job.
|
JobDescriptor |
withCreationTime(Date creationTime)
A timestamp indicating when this job was created.
|
JobDescriptor |
withDescription(String description)
The description for this job, if one was provided in this job's
Create Job request. |
JobDescriptor |
withFailureReasons(Collection<JobFailure> failureReasons)
If the specified job failed, this field contains information describing the failure.
|
JobDescriptor |
withFailureReasons(JobFailure... failureReasons)
If the specified job failed, this field contains information describing the failure.
|
JobDescriptor |
withJobArn(String jobArn)
The Amazon Resource Name (ARN) for this job.
|
JobDescriptor |
withJobId(String jobId)
The ID for the specified job.
|
JobDescriptor |
withManifest(JobManifest manifest)
The configuration information for the specified job's manifest object.
|
JobDescriptor |
withOperation(JobOperation operation)
The operation that the specified job is configured to execute on the objects listed in the manifest.
|
JobDescriptor |
withPriority(Integer priority)
The priority of the specified job.
|
JobDescriptor |
withProgressSummary(JobProgressSummary progressSummary)
Describes the total number of tasks that the specified job has executed, the number of tasks that succeeded, and
the number of tasks that failed.
|
JobDescriptor |
withReport(JobReport report)
Contains the configuration information for the job-completion report if you requested one in the
Create Job request. |
JobDescriptor |
withRoleArn(String roleArn)
The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role assigned to execute the
tasks for this job.
|
JobDescriptor |
withStatus(JobStatus status)
The current status of the specified job.
|
JobDescriptor |
withStatus(String status)
The current status of the specified job.
|
JobDescriptor |
withStatusUpdateReason(String statusUpdateReason)
|
JobDescriptor |
withSuspendedCause(String suspendedCause)
The reason why the specified job was suspended.
|
JobDescriptor |
withSuspendedDate(Date suspendedDate)
The timestamp when this job was suspended, if it has been suspended.
|
JobDescriptor |
withTerminationDate(Date terminationDate)
A timestamp indicating when this job terminated.
|
public void setJobId(String jobId)
The ID for the specified job.
jobId
- The ID for the specified job.public String getJobId()
The ID for the specified job.
public JobDescriptor withJobId(String jobId)
The ID for the specified job.
jobId
- The ID for the specified job.public void setConfirmationRequired(Boolean confirmationRequired)
Indicates whether confirmation is required before Amazon S3 begins running the specified job. Confirmation is required only for jobs created through the Amazon S3 console.
confirmationRequired
- Indicates whether confirmation is required before Amazon S3 begins running the specified job. Confirmation
is required only for jobs created through the Amazon S3 console.public Boolean getConfirmationRequired()
Indicates whether confirmation is required before Amazon S3 begins running the specified job. Confirmation is required only for jobs created through the Amazon S3 console.
public JobDescriptor withConfirmationRequired(Boolean confirmationRequired)
Indicates whether confirmation is required before Amazon S3 begins running the specified job. Confirmation is required only for jobs created through the Amazon S3 console.
confirmationRequired
- Indicates whether confirmation is required before Amazon S3 begins running the specified job. Confirmation
is required only for jobs created through the Amazon S3 console.public Boolean isConfirmationRequired()
Indicates whether confirmation is required before Amazon S3 begins running the specified job. Confirmation is required only for jobs created through the Amazon S3 console.
public void setDescription(String description)
The description for this job, if one was provided in this job's Create Job
request.
description
- The description for this job, if one was provided in this job's Create Job
request.public String getDescription()
The description for this job, if one was provided in this job's Create Job
request.
Create Job
request.public JobDescriptor withDescription(String description)
The description for this job, if one was provided in this job's Create Job
request.
description
- The description for this job, if one was provided in this job's Create Job
request.public void setJobArn(String jobArn)
The Amazon Resource Name (ARN) for this job.
jobArn
- The Amazon Resource Name (ARN) for this job.public String getJobArn()
The Amazon Resource Name (ARN) for this job.
public JobDescriptor withJobArn(String jobArn)
The Amazon Resource Name (ARN) for this job.
jobArn
- The Amazon Resource Name (ARN) for this job.public void setStatus(String status)
The current status of the specified job.
status
- The current status of the specified job.JobStatus
public String getStatus()
The current status of the specified job.
JobStatus
public JobDescriptor withStatus(String status)
The current status of the specified job.
status
- The current status of the specified job.JobStatus
public JobDescriptor withStatus(JobStatus status)
The current status of the specified job.
status
- The current status of the specified job.JobStatus
public void setManifest(JobManifest manifest)
The configuration information for the specified job's manifest object.
manifest
- The configuration information for the specified job's manifest object.public JobManifest getManifest()
The configuration information for the specified job's manifest object.
public JobDescriptor withManifest(JobManifest manifest)
The configuration information for the specified job's manifest object.
manifest
- The configuration information for the specified job's manifest object.public void setOperation(JobOperation operation)
The operation that the specified job is configured to execute on the objects listed in the manifest.
operation
- The operation that the specified job is configured to execute on the objects listed in the manifest.public JobOperation getOperation()
The operation that the specified job is configured to execute on the objects listed in the manifest.
public JobDescriptor withOperation(JobOperation operation)
The operation that the specified job is configured to execute on the objects listed in the manifest.
operation
- The operation that the specified job is configured to execute on the objects listed in the manifest.public void setPriority(Integer priority)
The priority of the specified job.
priority
- The priority of the specified job.public Integer getPriority()
The priority of the specified job.
public JobDescriptor withPriority(Integer priority)
The priority of the specified job.
priority
- The priority of the specified job.public void setProgressSummary(JobProgressSummary progressSummary)
Describes the total number of tasks that the specified job has executed, the number of tasks that succeeded, and the number of tasks that failed.
progressSummary
- Describes the total number of tasks that the specified job has executed, the number of tasks that
succeeded, and the number of tasks that failed.public JobProgressSummary getProgressSummary()
Describes the total number of tasks that the specified job has executed, the number of tasks that succeeded, and the number of tasks that failed.
public JobDescriptor withProgressSummary(JobProgressSummary progressSummary)
Describes the total number of tasks that the specified job has executed, the number of tasks that succeeded, and the number of tasks that failed.
progressSummary
- Describes the total number of tasks that the specified job has executed, the number of tasks that
succeeded, and the number of tasks that failed.public void setStatusUpdateReason(String statusUpdateReason)
statusUpdateReason
- public String getStatusUpdateReason()
public JobDescriptor withStatusUpdateReason(String statusUpdateReason)
statusUpdateReason
- public List<JobFailure> getFailureReasons()
If the specified job failed, this field contains information describing the failure.
public void setFailureReasons(Collection<JobFailure> failureReasons)
If the specified job failed, this field contains information describing the failure.
failureReasons
- If the specified job failed, this field contains information describing the failure.public JobDescriptor withFailureReasons(JobFailure... failureReasons)
If the specified job failed, this field contains information describing the failure.
NOTE: This method appends the values to the existing list (if any). Use
setFailureReasons(java.util.Collection)
or withFailureReasons(java.util.Collection)
if you want
to override the existing values.
failureReasons
- If the specified job failed, this field contains information describing the failure.public JobDescriptor withFailureReasons(Collection<JobFailure> failureReasons)
If the specified job failed, this field contains information describing the failure.
failureReasons
- If the specified job failed, this field contains information describing the failure.public void setReport(JobReport report)
Contains the configuration information for the job-completion report if you requested one in the
Create Job
request.
report
- Contains the configuration information for the job-completion report if you requested one in the
Create Job
request.public JobReport getReport()
Contains the configuration information for the job-completion report if you requested one in the
Create Job
request.
Create Job
request.public JobDescriptor withReport(JobReport report)
Contains the configuration information for the job-completion report if you requested one in the
Create Job
request.
report
- Contains the configuration information for the job-completion report if you requested one in the
Create Job
request.public void setCreationTime(Date creationTime)
A timestamp indicating when this job was created.
creationTime
- A timestamp indicating when this job was created.public Date getCreationTime()
A timestamp indicating when this job was created.
public JobDescriptor withCreationTime(Date creationTime)
A timestamp indicating when this job was created.
creationTime
- A timestamp indicating when this job was created.public void setTerminationDate(Date terminationDate)
A timestamp indicating when this job terminated. A job's termination date is the date and time when it succeeded, failed, or was canceled.
terminationDate
- A timestamp indicating when this job terminated. A job's termination date is the date and time when it
succeeded, failed, or was canceled.public Date getTerminationDate()
A timestamp indicating when this job terminated. A job's termination date is the date and time when it succeeded, failed, or was canceled.
public JobDescriptor withTerminationDate(Date terminationDate)
A timestamp indicating when this job terminated. A job's termination date is the date and time when it succeeded, failed, or was canceled.
terminationDate
- A timestamp indicating when this job terminated. A job's termination date is the date and time when it
succeeded, failed, or was canceled.public void setRoleArn(String roleArn)
The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role assigned to execute the tasks for this job.
roleArn
- The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role assigned to execute
the tasks for this job.public String getRoleArn()
The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role assigned to execute the tasks for this job.
public JobDescriptor withRoleArn(String roleArn)
The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role assigned to execute the tasks for this job.
roleArn
- The Amazon Resource Name (ARN) for the AWS Identity and Access Management (IAM) role assigned to execute
the tasks for this job.public void setSuspendedDate(Date suspendedDate)
The timestamp when this job was suspended, if it has been suspended.
suspendedDate
- The timestamp when this job was suspended, if it has been suspended.public Date getSuspendedDate()
The timestamp when this job was suspended, if it has been suspended.
public JobDescriptor withSuspendedDate(Date suspendedDate)
The timestamp when this job was suspended, if it has been suspended.
suspendedDate
- The timestamp when this job was suspended, if it has been suspended.public void setSuspendedCause(String suspendedCause)
The reason why the specified job was suspended. A job is only suspended if you create it through the Amazon S3
console. When you create the job, it enters the Suspended
state to await confirmation before
running. After you confirm the job, it automatically exits the Suspended
state.
suspendedCause
- The reason why the specified job was suspended. A job is only suspended if you create it through the
Amazon S3 console. When you create the job, it enters the Suspended
state to await
confirmation before running. After you confirm the job, it automatically exits the Suspended
state.public String getSuspendedCause()
The reason why the specified job was suspended. A job is only suspended if you create it through the Amazon S3
console. When you create the job, it enters the Suspended
state to await confirmation before
running. After you confirm the job, it automatically exits the Suspended
state.
Suspended
state to await
confirmation before running. After you confirm the job, it automatically exits the Suspended
state.public JobDescriptor withSuspendedCause(String suspendedCause)
The reason why the specified job was suspended. A job is only suspended if you create it through the Amazon S3
console. When you create the job, it enters the Suspended
state to await confirmation before
running. After you confirm the job, it automatically exits the Suspended
state.
suspendedCause
- The reason why the specified job was suspended. A job is only suspended if you create it through the
Amazon S3 console. When you create the job, it enters the Suspended
state to await
confirmation before running. After you confirm the job, it automatically exits the Suspended
state.public String toString()
toString
in class Object
Object.toString()
public JobDescriptor clone()