@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SetDataRetrievalPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
SetDataRetrievalPolicy input.
NOOP
Constructor and Description |
---|
SetDataRetrievalPolicyRequest() |
Modifier and Type | Method and Description |
---|---|
SetDataRetrievalPolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
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.
|
SetDataRetrievalPolicyRequest |
withAccountId(String accountId)
The
AccountId value is the AWS account ID. |
SetDataRetrievalPolicyRequest |
withPolicy(DataRetrievalPolicy policy)
The data retrieval policy in JSON format.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setAccountId(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 '
-
' (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 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 '
-
' (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 SetDataRetrievalPolicyRequest withAccountId(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 '
-
' (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 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 String toString()
toString
in class Object
Object.toString()
public SetDataRetrievalPolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()