Class SetVaultAccessPolicyRequest
- java.lang.Object
-
- com.amazonaws.AmazonWebServiceRequest
-
- com.amazonaws.services.glacier.model.SetVaultAccessPolicyRequest
-
- All Implemented Interfaces:
ReadLimitInfo,Serializable,Cloneable
public class SetVaultAccessPolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
SetVaultAccessPolicy input.
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.amazonaws.AmazonWebServiceRequest
NOOP
-
-
Constructor Summary
Constructors Constructor Description SetVaultAccessPolicyRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetVaultAccessPolicyRequestclone()Creates a shallow clone of this request.booleanequals(Object obj)StringgetAccountId()TheAccountIdvalue is the AWS account ID of the account that owns the vault.VaultAccessPolicygetPolicy()The vault access policy as a JSON string.StringgetVaultName()The name of the vault.inthashCode()voidsetAccountId(String accountId)TheAccountIdvalue is the AWS account ID of the account that owns the vault.voidsetPolicy(VaultAccessPolicy policy)The vault access policy as a JSON string.voidsetVaultName(String vaultName)The name of the vault.StringtoString()Returns a string representation of this object; useful for testing and debugging.SetVaultAccessPolicyRequestwithAccountId(String accountId)TheAccountIdvalue is the AWS account ID of the account that owns the vault.SetVaultAccessPolicyRequestwithPolicy(VaultAccessPolicy policy)The vault access policy as a JSON string.SetVaultAccessPolicyRequestwithVaultName(String vaultName)The name of the vault.-
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
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
-
-
-
-
Method Detail
-
setAccountId
public void setAccountId(String accountId)
The
AccountIdvalue is the AWS account ID of the account that owns the vault. 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 use an account ID, do not include any hyphens (apos-apos) in the ID.- Parameters:
accountId- TheAccountIdvalue is the AWS account ID of the account that owns the vault. 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 use an account ID, do not include any hyphens (apos-apos) in the ID.
-
getAccountId
public String getAccountId()
The
AccountIdvalue is the AWS account ID of the account that owns the vault. 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 use an account ID, do not include any hyphens (apos-apos) in the ID.- Returns:
- The
AccountIdvalue is the AWS account ID of the account that owns the vault. 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 use an account ID, do not include any hyphens (apos-apos) in the ID.
-
withAccountId
public SetVaultAccessPolicyRequest withAccountId(String accountId)
The
AccountIdvalue is the AWS account ID of the account that owns the vault. 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 use an account ID, do not include any hyphens (apos-apos) in the ID.- Parameters:
accountId- TheAccountIdvalue is the AWS account ID of the account that owns the vault. 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 use an account ID, do not include any hyphens (apos-apos) in the ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVaultName
public void setVaultName(String vaultName)
The name of the vault.
- Parameters:
vaultName- The name of the vault.
-
getVaultName
public String getVaultName()
The name of the vault.
- Returns:
- The name of the vault.
-
withVaultName
public SetVaultAccessPolicyRequest withVaultName(String vaultName)
The name of the vault.
- Parameters:
vaultName- The name of the vault.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPolicy
public void setPolicy(VaultAccessPolicy policy)
The vault access policy as a JSON string.
- Parameters:
policy- The vault access policy as a JSON string.
-
getPolicy
public VaultAccessPolicy getPolicy()
The vault access policy as a JSON string.
- Returns:
- The vault access policy as a JSON string.
-
withPolicy
public SetVaultAccessPolicyRequest withPolicy(VaultAccessPolicy policy)
The vault access policy as a JSON string.
- Parameters:
policy- The vault access policy as a JSON string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public SetVaultAccessPolicyRequest clone()
Description copied from class:AmazonWebServiceRequestCreates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.- Overrides:
clonein classAmazonWebServiceRequest- See Also:
Object.clone()
-
-