public class SetDataRetrievalPolicyRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable
SetDataRetrievalPolicy operation.
This operation sets and then enacts a data retrieval policy in the region specified in the PUT request. You can set one policy per region for an AWS account. The policy is enacted within a few minutes of a successful PUT operation.
The set policy operation does not affect retrieval jobs that were in progress before the policy was enacted. For more information about data retrieval policies, see Amazon Glacier Data Retrieval Policies .
| Constructor and Description |
|---|
SetDataRetrievalPolicyRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAccountId()
The
AccountId is the AWS Account ID. |
DataRetrievalPolicy |
getPolicy()
The data retrieval policy in JSON format.
|
int |
hashCode() |
void |
setAccountId(String accountId)
The
AccountId is the AWS Account ID. |
void |
setPolicy(DataRetrievalPolicy policy)
The data retrieval policy in JSON format.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetDataRetrievalPolicyRequest |
withAccountId(String accountId)
The
AccountId is the AWS Account ID. |
SetDataRetrievalPolicyRequest |
withPolicy(DataRetrievalPolicy policy)
The data retrieval policy in JSON format.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic String getAccountId()
AccountId is the AWS Account ID. You can specify
either the AWS Account ID or optionally a '-', in which case Amazon
Glacier uses the AWS Account ID associated with the credentials used
to sign the request. If you specify your Account ID, do not include
the dashes in it.AccountId is the AWS Account ID. You can specify
either the AWS Account ID or optionally a '-', in which case Amazon
Glacier uses the AWS Account ID associated with the credentials used
to sign the request. If you specify your Account ID, do not include
the dashes in it.public void setAccountId(String accountId)
AccountId is the AWS Account ID. You can specify
either the AWS Account ID or optionally a '-', in which case Amazon
Glacier uses the AWS Account ID associated with the credentials used
to sign the request. If you specify your Account ID, do not include
the dashes in it.accountId - The AccountId is the AWS Account ID. You can specify
either the AWS Account ID or optionally a '-', in which case Amazon
Glacier uses the AWS Account ID associated with the credentials used
to sign the request. If you specify your Account ID, do not include
the dashes in it.public SetDataRetrievalPolicyRequest withAccountId(String accountId)
AccountId is the AWS Account ID. You can specify
either the AWS Account ID or optionally a '-', in which case Amazon
Glacier uses the AWS Account ID associated with the credentials used
to sign the request. If you specify your Account ID, do not include
the dashes in it.
Returns a reference to this object so that method calls can be chained together.
accountId - The AccountId is the AWS Account ID. You can specify
either the AWS Account ID or optionally a '-', in which case Amazon
Glacier uses the AWS Account ID associated with the credentials used
to sign the request. If you specify your Account ID, do not include
the dashes in it.public DataRetrievalPolicy getPolicy()
public void setPolicy(DataRetrievalPolicy policy)
policy - The data retrieval policy in JSON format.public SetDataRetrievalPolicyRequest withPolicy(DataRetrievalPolicy policy)
Returns a reference to this object so that method calls can be chained together.
policy - The data retrieval policy in JSON format.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.