public class SetDataRetrievalPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
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 .
NOOP
Constructor and Description |
---|
SetDataRetrievalPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
SetDataRetrievalPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
String |
getAccountId()
The
AccountId value is the AWS account ID. |
DataRetrievalPolicy |
getPolicy()
The data retrieval policy in JSON format.
|
int |
hashCode() |
void |
setAccountId(String accountId)
The
AccountId value 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 value is the AWS account ID. |
SetDataRetrievalPolicyRequest |
withPolicy(DataRetrievalPolicy policy)
The data retrieval policy in JSON format.
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public String getAccountId()
AccountId
value is the AWS account ID. This value
must match the AWS account ID associated with the credentials used to
sign the request. 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 specify your account ID, do not include
any hyphens ('-') in the ID.AccountId
value is the AWS account ID. This value
must match the AWS account ID associated with the credentials used to
sign the request. 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 specify your account ID, do not include
any hyphens ('-') in the ID.public void setAccountId(String accountId)
AccountId
value is the AWS account ID. This value
must match the AWS account ID associated with the credentials used to
sign the request. 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 specify your account ID, do not include
any hyphens ('-') in the ID.accountId
- The AccountId
value is the AWS account ID. This value
must match the AWS account ID associated with the credentials used to
sign the request. 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 specify your account ID, do not include
any hyphens ('-') in the ID.public SetDataRetrievalPolicyRequest withAccountId(String accountId)
AccountId
value is the AWS account ID. This value
must match the AWS account ID associated with the credentials used to
sign the request. 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 specify your 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. This value
must match the AWS account ID associated with the credentials used to
sign the request. 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 specify your account ID, do not include
any hyphens ('-') in the ID.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 Object
Object.toString()
public SetDataRetrievalPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.