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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description InitiateVaultLockRequest.BuilderaccountId(String accountId)TheAccountIdvalue is the AWS account ID.InitiateVaultLockRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)InitiateVaultLockRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default InitiateVaultLockRequest.Builderpolicy(Consumer<VaultLockPolicy.Builder> policy)The vault lock policy as a JSON string, which uses "\" as an escape character.InitiateVaultLockRequest.Builderpolicy(VaultLockPolicy policy)The vault lock policy as a JSON string, which uses "\" as an escape character.InitiateVaultLockRequest.BuildervaultName(String vaultName)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, sdkFields
-
-
-
-
Method Detail
-
accountId
InitiateVaultLockRequest.Builder accountId(String 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
InitiateVaultLockRequest.Builder vaultName(String 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
InitiateVaultLockRequest.Builder policy(VaultLockPolicy 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
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 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:
policy(VaultLockPolicy)
-
overrideConfiguration
InitiateVaultLockRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
InitiateVaultLockRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-