public static interface SetVaultAccessPolicyRequest.Builder extends GlacierRequest.Builder, CopyableBuilder<SetVaultAccessPolicyRequest.Builder,SetVaultAccessPolicyRequest>
| Modifier and Type | Method and Description |
|---|---|
SetVaultAccessPolicyRequest.Builder |
accountId(String accountId)
The
AccountId value is the AWS account ID of the account that owns the vault. |
default SetVaultAccessPolicyRequest.Builder |
policy(Consumer<VaultAccessPolicy.Builder> policy)
The vault access policy as a JSON string.
|
SetVaultAccessPolicyRequest.Builder |
policy(VaultAccessPolicy policy)
The vault access policy as a JSON string.
|
SetVaultAccessPolicyRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
SetVaultAccessPolicyRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
Add an optional request override configuration.
|
SetVaultAccessPolicyRequest.Builder |
vaultName(String vaultName)
The name of the vault.
|
buildrequestOverrideConfigcopyapply, buildSetVaultAccessPolicyRequest.Builder accountId(String accountId)
The AccountId value is the AWS account ID of the account that owns the vault. 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 use an account ID, do not
include any hyphens ('-') in the ID.
accountId - The AccountId value is the AWS account ID of the account that owns the vault. 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 use an account ID, do not include any hyphens ('-') in the ID.SetVaultAccessPolicyRequest.Builder vaultName(String vaultName)
The name of the vault.
vaultName - The name of the vault.SetVaultAccessPolicyRequest.Builder policy(VaultAccessPolicy policy)
The vault access policy as a JSON string.
policy - The vault access policy as a JSON string.default SetVaultAccessPolicyRequest.Builder policy(Consumer<VaultAccessPolicy.Builder> policy)
The vault access policy as a JSON string.
This is a convenience that creates an instance of theVaultAccessPolicy.Builder avoiding the need to
create one manually via VaultAccessPolicy.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to policy(VaultAccessPolicy).policy - a consumer that will call methods on VaultAccessPolicy.Builderpolicy(VaultAccessPolicy)SetVaultAccessPolicyRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderawsRequestOverrideConfig - The override configuration.SetVaultAccessPolicyRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.BuilderrequestOverrideConfig in interface AwsRequest.BuilderbuilderConsumer - A Consumer to which an empty AwsRequestOverrideConfig.Builder will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.