Interface InitiateVaultLockRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<InitiateVaultLockRequest.Builder,
,InitiateVaultLockRequest> GlacierRequest.Builder
,SdkBuilder<InitiateVaultLockRequest.Builder,
,InitiateVaultLockRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
InitiateVaultLockRequest
@Mutable
@NotThreadSafe
public static interface InitiateVaultLockRequest.Builder
extends GlacierRequest.Builder, SdkPojo, CopyableBuilder<InitiateVaultLockRequest.Builder,InitiateVaultLockRequest>
-
Method Summary
Modifier and TypeMethodDescriptionTheAccountId
value is the AWS account ID.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default InitiateVaultLockRequest.Builder
policy
(Consumer<VaultLockPolicy.Builder> policy) The vault lock policy as a JSON string, which uses "\" as an escape character.policy
(VaultLockPolicy policy) The vault lock policy as a JSON string, which uses "\" as an escape character.The name of the vault.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.glacier.model.GlacierRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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.- Parameters:
accountId
- TheAccountId
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-
policy
The vault lock policy as a JSON string, which uses "\" as an escape character.
- Parameters:
policy
- The vault lock policy as a JSON string, which uses "\" as an escape character.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
The vault lock policy as a JSON string, which uses "\" as an escape character.
This is a convenience method that creates an instance of theVaultLockPolicy.Builder
avoiding the need to create one manually viaVaultLockPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topolicy(VaultLockPolicy)
.- Parameters:
policy
- a consumer that will call methods onVaultLockPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
InitiateVaultLockRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
InitiateVaultLockRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-