Interface SetVaultAccessPolicyRequest.Builder
- All Superinterfaces:
- AwsRequest.Builder,- Buildable,- CopyableBuilder<SetVaultAccessPolicyRequest.Builder,,- SetVaultAccessPolicyRequest> - GlacierRequest.Builder,- SdkBuilder<SetVaultAccessPolicyRequest.Builder,,- SetVaultAccessPolicyRequest> - SdkPojo,- SdkRequest.Builder
- Enclosing class:
- SetVaultAccessPolicyRequest
@Mutable
@NotThreadSafe
public static interface SetVaultAccessPolicyRequest.Builder
extends GlacierRequest.Builder, SdkPojo, CopyableBuilder<SetVaultAccessPolicyRequest.Builder,SetVaultAccessPolicyRequest> 
- 
Method SummaryModifier and TypeMethodDescriptionTheAccountIdvalue is the AWS account ID of the account that owns the vault.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policy(Consumer<VaultAccessPolicy.Builder> policy) The vault access policy as a JSON string.policy(VaultAccessPolicy policy) The vault access policy as a JSON string.The name of the vault.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.BuilderoverrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuildercopyMethods inherited from interface software.amazon.awssdk.services.glacier.model.GlacierRequest.BuilderbuildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilderapplyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojoequalsBySdkFields, sdkFieldNameToField, sdkFields
- 
Method Details- 
accountIdThe 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- 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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
 
- 
vaultNameThe 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.
 
- 
policyThe 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.
 
- 
policyThe 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 on- VaultAccessPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
 
- 
overrideConfigurationSetVaultAccessPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- overrideConfiguration- The override configuration.
- Returns:
- This object for method chaining.
 
- 
overrideConfigurationSetVaultAccessPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
- overrideConfigurationin interface- AwsRequest.Builder
- Parameters:
- builderConsumer- A- Consumerto which an empty- AwsRequestOverrideConfiguration.Builderwill be given.
- Returns:
- This object for method chaining.
 
 
-