public class DescribeJobRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
DescribeJob operation
.
This operation returns information about a job you previously initiated, including the job initiation date, the user who initiated the job, the job status code/message and the Amazon SNS topic to notify after Amazon Glacier completes the job. For more information about initiating a job, see InitiateJob.
NOTE: This operation enables you to check the status of your job. However, it is strongly recommended that you set up an Amazon SNS topic and specify it in your initiate job request so that Amazon Glacier can notify the topic after it completes the job.
A job ID will not expire for at least 24 hours after Amazon Glacier completes the job.
An AWS account has full permission to perform all operations (actions). However, AWS Identity and Access Management (IAM) users don't have any permissions by default. You must grant them explicit permission to perform specific actions. For more information, see Access Control Using AWS Identity and Access Management (IAM) .
For information about the underlying REST API, go to Working with Archives in Amazon Glacier in the Amazon Glacier Developer Guide .
NOOP
Constructor and Description |
---|
DescribeJobRequest()
Default constructor for a new DescribeJobRequest object.
|
DescribeJobRequest(String vaultName,
String jobId)
Constructs a new DescribeJobRequest object.
|
DescribeJobRequest(String accountId,
String vaultName,
String jobId)
Constructs a new DescribeJobRequest object.
|
Modifier and Type | Method and Description |
---|---|
DescribeJobRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAccountId()
The
AccountId value is the AWS account ID of the account
that owns the vault. |
String |
getJobId()
The ID of the job to describe.
|
String |
getVaultName()
The name of the vault.
|
int |
hashCode() |
void |
setAccountId(String accountId)
The
AccountId value is the AWS account ID of the account
that owns the vault. |
void |
setJobId(String jobId)
The ID of the job to describe.
|
void |
setVaultName(String vaultName)
The name of the vault.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeJobRequest |
withAccountId(String accountId)
The
AccountId value is the AWS account ID of the account
that owns the vault. |
DescribeJobRequest |
withJobId(String jobId)
The ID of the job to describe.
|
DescribeJobRequest |
withVaultName(String vaultName)
The name of the vault.
|
copyBaseTo, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public DescribeJobRequest()
public DescribeJobRequest(String accountId, String vaultName, String jobId)
accountId
- The AccountId
value is the AWS account
ID of the account that owns the vault. You can either specify an AWS
account ID or optionally a single '-
' (hyphen), in which
case Amazon Glacier uses the AWS account ID associated with the
credentials used to sign the request. If you use an account ID, do not
include any hyphens ('-') in the ID.vaultName
- The name of the vault.jobId
- The ID of the job to describe.public DescribeJobRequest(String vaultName, String jobId)
vaultName
- The name of the vault.jobId
- The ID of the job to describe.public String getAccountId()
AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.public void setAccountId(String accountId)
AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.accountId
- The AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.public DescribeJobRequest withAccountId(String accountId)
AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.
Returns a reference to this object so that method calls can be chained together.
accountId
- The AccountId
value is the AWS account ID of the account
that owns the vault. You can either specify an AWS account ID or
optionally a single '-
' (hyphen), in which case Amazon
Glacier uses the AWS account ID associated with the credentials used
to sign the request. If you use an account ID, do not include any
hyphens ('-') in the ID.public String getVaultName()
public void setVaultName(String vaultName)
vaultName
- The name of the vault.public DescribeJobRequest withVaultName(String vaultName)
Returns a reference to this object so that method calls can be chained together.
vaultName
- The name of the vault.public String getJobId()
public void setJobId(String jobId)
jobId
- The ID of the job to describe.public DescribeJobRequest withJobId(String jobId)
Returns a reference to this object so that method calls can be chained together.
jobId
- The ID of the job to describe.public String toString()
toString
in class Object
Object.toString()
public DescribeJobRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2015. All rights reserved.