public class SetDataRetrievalPolicyRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
SetDataRetrievalPolicy input.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
accountId
The
AccountId value is the AWS account ID. |
private DataRetrievalPolicy |
policy
The data retrieval policy in JSON format.
|
NOOP
Constructor and Description |
---|
SetDataRetrievalPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
SetDataRetrievalPolicyRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccountId()
The
AccountId value is the AWS account ID. |
DataRetrievalPolicy |
getPolicy()
The data retrieval policy in JSON format.
|
int |
hashCode() |
void |
setAccountId(java.lang.String accountId)
The
AccountId value is the AWS account ID. |
void |
setPolicy(DataRetrievalPolicy policy)
The data retrieval policy in JSON format.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SetDataRetrievalPolicyRequest |
withAccountId(java.lang.String accountId)
The
AccountId value is the AWS account ID. |
SetDataRetrievalPolicyRequest |
withPolicy(DataRetrievalPolicy policy)
The data retrieval policy in JSON format.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String 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
apos-
apos (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 (apos-apos) in
the ID.
private DataRetrievalPolicy policy
The data retrieval policy in JSON format.
public void setAccountId(java.lang.String 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
apos-
apos (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 (apos-apos) 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 apos-
apos (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 (apos-apos) in the ID.public java.lang.String getAccountId()
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
apos-
apos (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 (apos-apos) 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 apos-
apos
(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 (apos-apos)
in the ID.public SetDataRetrievalPolicyRequest withAccountId(java.lang.String 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
apos-
apos (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 (apos-apos) 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 apos-
apos (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 (apos-apos) in the ID.public void setPolicy(DataRetrievalPolicy policy)
The data retrieval policy in JSON format.
policy
- The data retrieval policy in JSON format.public DataRetrievalPolicy getPolicy()
The data retrieval policy in JSON format.
public SetDataRetrievalPolicyRequest withPolicy(DataRetrievalPolicy policy)
The data retrieval policy in JSON format.
policy
- The data retrieval policy in JSON format.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public SetDataRetrievalPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()