public class JobParameters extends Object implements Serializable, Cloneable
Provides options for defining a job.
Constructor and Description |
---|
JobParameters()
Default constructor for JobParameters object.
|
JobParameters(String format,
String type,
String archiveId,
String description)
Constructs a new JobParameters object.
|
Modifier and Type | Method and Description |
---|---|
JobParameters |
clone() |
boolean |
equals(Object obj) |
String |
getArchiveId()
The ID of the archive that you want to retrieve.
|
String |
getDescription()
The optional description for the job.
|
String |
getFormat()
When initiating a job to retrieve a vault inventory, you can optionally
add this parameter to your request to specify the output format.
|
InventoryRetrievalJobInput |
getInventoryRetrievalParameters()
Input parameters used for range inventory retrieval.
|
String |
getRetrievalByteRange()
The byte range to retrieve for an archive retrieval.
|
String |
getSNSTopic()
The Amazon SNS topic ARN to which Amazon Glacier sends a notification
when the job is completed and the output is ready for you to download.
|
String |
getType()
The job type.
|
int |
hashCode() |
void |
setArchiveId(String archiveId)
The ID of the archive that you want to retrieve.
|
void |
setDescription(String description)
The optional description for the job.
|
void |
setFormat(String format)
When initiating a job to retrieve a vault inventory, you can optionally
add this parameter to your request to specify the output format.
|
void |
setInventoryRetrievalParameters(InventoryRetrievalJobInput inventoryRetrievalParameters)
Input parameters used for range inventory retrieval.
|
void |
setRetrievalByteRange(String retrievalByteRange)
The byte range to retrieve for an archive retrieval.
|
void |
setSNSTopic(String sNSTopic)
The Amazon SNS topic ARN to which Amazon Glacier sends a notification
when the job is completed and the output is ready for you to download.
|
void |
setType(String type)
The job type.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
JobParameters |
withArchiveId(String archiveId)
The ID of the archive that you want to retrieve.
|
JobParameters |
withDescription(String description)
The optional description for the job.
|
JobParameters |
withFormat(String format)
When initiating a job to retrieve a vault inventory, you can optionally
add this parameter to your request to specify the output format.
|
JobParameters |
withInventoryRetrievalParameters(InventoryRetrievalJobInput inventoryRetrievalParameters)
Input parameters used for range inventory retrieval.
|
JobParameters |
withRetrievalByteRange(String retrievalByteRange)
The byte range to retrieve for an archive retrieval.
|
JobParameters |
withSNSTopic(String sNSTopic)
The Amazon SNS topic ARN to which Amazon Glacier sends a notification
when the job is completed and the output is ready for you to download.
|
JobParameters |
withType(String type)
The job type.
|
public JobParameters()
public JobParameters(String format, String type, String archiveId, String description)
format
- When initiating a job to retrieve a vault inventory, you can
optionally add this parameter to your request to specify the
output format. If you are initiating an inventory job and do not
specify a Format field, JSON is the default format. Valid values
are "CSV" and "JSON".type
- The job type. You can initiate a job to retrieve an archive or get
an inventory of a vault. Valid values are "archive-retrieval" and
"inventory-retrieval".archiveId
- The ID of the archive that you want to retrieve. This field is
required only if Type
is set to archive-retrieval. An
error occurs if you specify this request parameter for an
inventory retrieval job request.description
- The optional description for the job. The description must be less
than or equal to 1,024 bytes. The allowable characters are 7-bit
ASCII without control codes-specifically, ASCII values 32-126
decimal or 0x20-0x7E hexadecimal.public void setFormat(String format)
When initiating a job to retrieve a vault inventory, you can optionally add this parameter to your request to specify the output format. If you are initiating an inventory job and do not specify a Format field, JSON is the default format. Valid values are "CSV" and "JSON".
format
- When initiating a job to retrieve a vault inventory, you can
optionally add this parameter to your request to specify the
output format. If you are initiating an inventory job and do not
specify a Format field, JSON is the default format. Valid values
are "CSV" and "JSON".public String getFormat()
When initiating a job to retrieve a vault inventory, you can optionally add this parameter to your request to specify the output format. If you are initiating an inventory job and do not specify a Format field, JSON is the default format. Valid values are "CSV" and "JSON".
public JobParameters withFormat(String format)
When initiating a job to retrieve a vault inventory, you can optionally add this parameter to your request to specify the output format. If you are initiating an inventory job and do not specify a Format field, JSON is the default format. Valid values are "CSV" and "JSON".
format
- When initiating a job to retrieve a vault inventory, you can
optionally add this parameter to your request to specify the
output format. If you are initiating an inventory job and do not
specify a Format field, JSON is the default format. Valid values
are "CSV" and "JSON".public void setType(String type)
The job type. You can initiate a job to retrieve an archive or get an inventory of a vault. Valid values are "archive-retrieval" and "inventory-retrieval".
type
- The job type. You can initiate a job to retrieve an archive or get
an inventory of a vault. Valid values are "archive-retrieval" and
"inventory-retrieval".public String getType()
The job type. You can initiate a job to retrieve an archive or get an inventory of a vault. Valid values are "archive-retrieval" and "inventory-retrieval".
public JobParameters withType(String type)
The job type. You can initiate a job to retrieve an archive or get an inventory of a vault. Valid values are "archive-retrieval" and "inventory-retrieval".
type
- The job type. You can initiate a job to retrieve an archive or get
an inventory of a vault. Valid values are "archive-retrieval" and
"inventory-retrieval".public void setArchiveId(String archiveId)
The ID of the archive that you want to retrieve. This field is required
only if Type
is set to archive-retrieval. An error occurs if
you specify this request parameter for an inventory retrieval job
request.
archiveId
- The ID of the archive that you want to retrieve. This field is
required only if Type
is set to archive-retrieval. An
error occurs if you specify this request parameter for an
inventory retrieval job request.public String getArchiveId()
The ID of the archive that you want to retrieve. This field is required
only if Type
is set to archive-retrieval. An error occurs if
you specify this request parameter for an inventory retrieval job
request.
Type
is set to archive-retrieval.
An error occurs if you specify this request parameter for an
inventory retrieval job request.public JobParameters withArchiveId(String archiveId)
The ID of the archive that you want to retrieve. This field is required
only if Type
is set to archive-retrieval. An error occurs if
you specify this request parameter for an inventory retrieval job
request.
archiveId
- The ID of the archive that you want to retrieve. This field is
required only if Type
is set to archive-retrieval. An
error occurs if you specify this request parameter for an
inventory retrieval job request.public void setDescription(String description)
The optional description for the job. The description must be less than or equal to 1,024 bytes. The allowable characters are 7-bit ASCII without control codes-specifically, ASCII values 32-126 decimal or 0x20-0x7E hexadecimal.
description
- The optional description for the job. The description must be less
than or equal to 1,024 bytes. The allowable characters are 7-bit
ASCII without control codes-specifically, ASCII values 32-126
decimal or 0x20-0x7E hexadecimal.public String getDescription()
The optional description for the job. The description must be less than or equal to 1,024 bytes. The allowable characters are 7-bit ASCII without control codes-specifically, ASCII values 32-126 decimal or 0x20-0x7E hexadecimal.
public JobParameters withDescription(String description)
The optional description for the job. The description must be less than or equal to 1,024 bytes. The allowable characters are 7-bit ASCII without control codes-specifically, ASCII values 32-126 decimal or 0x20-0x7E hexadecimal.
description
- The optional description for the job. The description must be less
than or equal to 1,024 bytes. The allowable characters are 7-bit
ASCII without control codes-specifically, ASCII values 32-126
decimal or 0x20-0x7E hexadecimal.public void setSNSTopic(String sNSTopic)
The Amazon SNS topic ARN to which Amazon Glacier sends a notification when the job is completed and the output is ready for you to download. The specified topic publishes the notification to its subscribers. The SNS topic must exist.
sNSTopic
- The Amazon SNS topic ARN to which Amazon Glacier sends a
notification when the job is completed and the output is ready for
you to download. The specified topic publishes the notification to
its subscribers. The SNS topic must exist.public String getSNSTopic()
The Amazon SNS topic ARN to which Amazon Glacier sends a notification when the job is completed and the output is ready for you to download. The specified topic publishes the notification to its subscribers. The SNS topic must exist.
public JobParameters withSNSTopic(String sNSTopic)
The Amazon SNS topic ARN to which Amazon Glacier sends a notification when the job is completed and the output is ready for you to download. The specified topic publishes the notification to its subscribers. The SNS topic must exist.
sNSTopic
- The Amazon SNS topic ARN to which Amazon Glacier sends a
notification when the job is completed and the output is ready for
you to download. The specified topic publishes the notification to
its subscribers. The SNS topic must exist.public void setRetrievalByteRange(String retrievalByteRange)
The byte range to retrieve for an archive retrieval. in the form "StartByteValue-EndByteValue" If not specified, the whole archive is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned which means that StartByteValue must be divisible by 1 MB and EndByteValue plus 1 must be divisible by 1 MB or be the end of the archive specified as the archive byte size value minus 1. If RetrievalByteRange is not megabyte aligned, this operation returns a 400 response.
An error occurs if you specify this field for an inventory retrieval job request.
retrievalByteRange
- The byte range to retrieve for an archive retrieval. in the form
"StartByteValue-EndByteValue" If not specified, the
whole archive is retrieved. If specified, the byte range must be
megabyte (1024*1024) aligned which means that
StartByteValue must be divisible by 1 MB and
EndByteValue plus 1 must be divisible by 1 MB or be the end
of the archive specified as the archive byte size value minus 1.
If RetrievalByteRange is not megabyte aligned, this operation
returns a 400 response.
An error occurs if you specify this field for an inventory retrieval job request.
public String getRetrievalByteRange()
The byte range to retrieve for an archive retrieval. in the form "StartByteValue-EndByteValue" If not specified, the whole archive is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned which means that StartByteValue must be divisible by 1 MB and EndByteValue plus 1 must be divisible by 1 MB or be the end of the archive specified as the archive byte size value minus 1. If RetrievalByteRange is not megabyte aligned, this operation returns a 400 response.
An error occurs if you specify this field for an inventory retrieval job request.
An error occurs if you specify this field for an inventory retrieval job request.
public JobParameters withRetrievalByteRange(String retrievalByteRange)
The byte range to retrieve for an archive retrieval. in the form "StartByteValue-EndByteValue" If not specified, the whole archive is retrieved. If specified, the byte range must be megabyte (1024*1024) aligned which means that StartByteValue must be divisible by 1 MB and EndByteValue plus 1 must be divisible by 1 MB or be the end of the archive specified as the archive byte size value minus 1. If RetrievalByteRange is not megabyte aligned, this operation returns a 400 response.
An error occurs if you specify this field for an inventory retrieval job request.
retrievalByteRange
- The byte range to retrieve for an archive retrieval. in the form
"StartByteValue-EndByteValue" If not specified, the
whole archive is retrieved. If specified, the byte range must be
megabyte (1024*1024) aligned which means that
StartByteValue must be divisible by 1 MB and
EndByteValue plus 1 must be divisible by 1 MB or be the end
of the archive specified as the archive byte size value minus 1.
If RetrievalByteRange is not megabyte aligned, this operation
returns a 400 response.
An error occurs if you specify this field for an inventory retrieval job request.
public void setInventoryRetrievalParameters(InventoryRetrievalJobInput inventoryRetrievalParameters)
Input parameters used for range inventory retrieval.
inventoryRetrievalParameters
- Input parameters used for range inventory retrieval.public InventoryRetrievalJobInput getInventoryRetrievalParameters()
Input parameters used for range inventory retrieval.
public JobParameters withInventoryRetrievalParameters(InventoryRetrievalJobInput inventoryRetrievalParameters)
Input parameters used for range inventory retrieval.
inventoryRetrievalParameters
- Input parameters used for range inventory retrieval.public String toString()
toString
in class Object
Object.toString()
public JobParameters clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.