Interface SetVaultAccessPolicyRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SetVaultAccessPolicyRequest.Builder,SetVaultAccessPolicyRequest>,GlacierRequest.Builder,SdkBuilder<SetVaultAccessPolicyRequest.Builder,SetVaultAccessPolicyRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- SetVaultAccessPolicyRequest
public static interface SetVaultAccessPolicyRequest.Builder extends GlacierRequest.Builder, SdkPojo, CopyableBuilder<SetVaultAccessPolicyRequest.Builder,SetVaultAccessPolicyRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SetVaultAccessPolicyRequest.BuilderaccountId(String accountId)TheAccountIdvalue is the AWS account ID of the account that owns the vault.SetVaultAccessPolicyRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)SetVaultAccessPolicyRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)default SetVaultAccessPolicyRequest.Builderpolicy(Consumer<VaultAccessPolicy.Builder> policy)The vault access policy as a JSON string.SetVaultAccessPolicyRequest.Builderpolicy(VaultAccessPolicy policy)The vault access policy as a JSON string.SetVaultAccessPolicyRequest.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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
accountId
SetVaultAccessPolicyRequest.Builder accountId(String accountId)
The
AccountIdvalue 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.- Parameters:
accountId- TheAccountIdvalue 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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
vaultName
SetVaultAccessPolicyRequest.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
SetVaultAccessPolicyRequest.Builder policy(VaultAccessPolicy policy)
The vault access policy as a JSON string.
- Parameters:
policy- The vault access policy as a JSON string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
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.Builderavoiding the need to create one manually viaVaultAccessPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicy(VaultAccessPolicy).- Parameters:
policy- a consumer that will call methods onVaultAccessPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
policy(VaultAccessPolicy)
-
overrideConfiguration
SetVaultAccessPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
SetVaultAccessPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-