@Generated(value="software.amazon.awssdk:codegen") public final class JobDescriptor extends Object implements SdkPojo, Serializable, ToCopyableBuilder<JobDescriptor.Builder,JobDescriptor>
A container element for the job configuration and status information returned by a Describe Job request.
| Modifier and Type | Class and Description |
|---|---|
static interface |
JobDescriptor.Builder |
| Modifier and Type | Method and Description |
|---|---|
static JobDescriptor.Builder |
builder() |
Boolean |
confirmationRequired()
Indicates whether confirmation is required before Amazon S3 begins running the specified job.
|
Instant |
creationTime()
A timestamp indicating when this job was created.
|
String |
description()
The description for this job, if one was provided in this job's
Create Job request. |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
List<JobFailure> |
failureReasons()
If the specified job failed, this field contains information describing the failure.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasFailureReasons()
Returns true if the FailureReasons property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
int |
hashCode() |
String |
jobArn()
The Amazon Resource Name (ARN) for this job.
|
String |
jobId()
The ID for the specified job.
|
JobManifest |
manifest()
The configuration information for the specified job's manifest object.
|
JobOperation |
operation()
The operation that the specified job is configured to execute on the objects listed in the manifest.
|
Integer |
priority()
The priority of the specified job.
|
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.
|
JobReport |
report()
Contains the configuration information for the job-completion report if you requested one in the
Create Job request. |
String |
roleArn()
The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) Role assigned to execute the tasks
for this job.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends JobDescriptor.Builder> |
serializableBuilderClass() |
JobStatus |
status()
The current status of the specified job.
|
String |
statusAsString()
The current status of the specified job.
|
String |
statusUpdateReason()
|
String |
suspendedCause()
The reason why the specified job was suspended.
|
Instant |
suspendedDate()
The timestamp when this job was suspended, if it has been suspended.
|
Instant |
terminationDate()
A timestamp indicating when this job terminated.
|
JobDescriptor.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String jobId()
The ID for the specified job.
public 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.
public String description()
The description for this job, if one was provided in this job's Create Job request.
Create Job request.public String jobArn()
The Amazon Resource Name (ARN) for this job.
public JobStatus status()
The current status of the specified job.
If the service returns an enum value that is not available in the current SDK version, status will
return JobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
JobStatuspublic String statusAsString()
The current status of the specified job.
If the service returns an enum value that is not available in the current SDK version, status will
return JobStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
JobStatuspublic JobManifest manifest()
The configuration information for the specified job's manifest object.
public JobOperation operation()
The operation that the specified job is configured to execute on the objects listed in the manifest.
public Integer priority()
The priority of the specified job.
public 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.
public String statusUpdateReason()
public boolean hasFailureReasons()
public List<JobFailure> failureReasons()
If the specified job failed, this field contains information describing the failure.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasFailureReasons() to see if a value was sent in this field.
public JobReport report()
Contains the configuration information for the job-completion report if you requested one in the
Create Job request.
Create Job request.public Instant creationTime()
A timestamp indicating when this job was created.
public Instant 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 String roleArn()
The Amazon Resource Name (ARN) for the Identity and Access Management (IAM) Role assigned to execute the tasks for this job.
public Instant suspendedDate()
The timestamp when this job was suspended, if it has been suspended.
public 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.
Suspended state to await
confirmation before running. After you confirm the job, it automatically exits the Suspended
state.public JobDescriptor.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<JobDescriptor.Builder,JobDescriptor>public static JobDescriptor.Builder builder()
public static Class<? extends JobDescriptor.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.