Interface InitiateVaultLockRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<InitiateVaultLockRequest.Builder,,InitiateVaultLockRequest> GlacierRequest.Builder,SdkBuilder<InitiateVaultLockRequest.Builder,,InitiateVaultLockRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
InitiateVaultLockRequest
public static interface InitiateVaultLockRequest.Builder
extends GlacierRequest.Builder, SdkPojo, CopyableBuilder<InitiateVaultLockRequest.Builder,InitiateVaultLockRequest>
-
Method Summary
Modifier and TypeMethodDescriptionTheAccountIdvalue 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.Builderpolicy(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.glacier.model.GlacierRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
accountId
The
AccountIdvalue 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- TheAccountIdvalue 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.Builderavoiding the need to create one manually viaVaultLockPolicy.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-