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 |
vaultName(String vaultName)
The name of the vault.
|
build
requestOverrideConfig, requestOverrideConfig
copy
apply, build
SetVaultAccessPolicyRequest.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.Builder
policy(VaultAccessPolicy)
SetVaultAccessPolicyRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.