public static interface InitiateVaultLockRequest.Builder extends GlacierRequest.Builder, CopyableBuilder<InitiateVaultLockRequest.Builder,InitiateVaultLockRequest>
Modifier and Type | Method and Description |
---|---|
InitiateVaultLockRequest.Builder |
accountId(String accountId)
The
AccountId value is the AWS account ID. |
default InitiateVaultLockRequest.Builder |
policy(Consumer<VaultLockPolicy.Builder> policy)
The vault lock policy as a JSON string, which uses "\" as an escape character.
|
InitiateVaultLockRequest.Builder |
policy(VaultLockPolicy policy)
The vault lock policy as a JSON string, which uses "\" as an escape character.
|
InitiateVaultLockRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
InitiateVaultLockRequest.Builder |
vaultName(String vaultName)
The name of the vault.
|
build
requestOverrideConfig, requestOverrideConfig
copy
apply, build
InitiateVaultLockRequest.Builder accountId(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.InitiateVaultLockRequest.Builder vaultName(String vaultName)
The name of the vault.
vaultName
- The name of the vault.InitiateVaultLockRequest.Builder policy(VaultLockPolicy policy)
The vault lock policy as a JSON string, which uses "\" as an escape character.
policy
- The vault lock policy as a JSON string, which uses "\" as an escape character.default InitiateVaultLockRequest.Builder policy(Consumer<VaultLockPolicy.Builder> policy)
The vault lock policy as a JSON string, which uses "\" as an escape character.
This is a convenience that creates an instance of theVaultLockPolicy.Builder
avoiding the need to
create one manually via VaultLockPolicy.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and its
result is passed to policy(VaultLockPolicy)
.policy
- a consumer that will call methods on VaultLockPolicy.Builder
policy(VaultLockPolicy)
InitiateVaultLockRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.