public static interface SetVaultAccessPolicyRequest.Builder extends GlacierRequest.Builder, SdkPojo, 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. |
SetVaultAccessPolicyRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
SetVaultAccessPolicyRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
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 |
vaultName(String vaultName)
The name of the vault.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, 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 S3 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 S3 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 method 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 overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderSetVaultAccessPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.