Interface GetVaultAccessPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetVaultAccessPolicyResponse.Builder,,GetVaultAccessPolicyResponse> GlacierResponse.Builder,SdkBuilder<GetVaultAccessPolicyResponse.Builder,,GetVaultAccessPolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetVaultAccessPolicyResponse
public static interface GetVaultAccessPolicyResponse.Builder
extends GlacierResponse.Builder, SdkPojo, CopyableBuilder<GetVaultAccessPolicyResponse.Builder,GetVaultAccessPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpolicy(Consumer<VaultAccessPolicy.Builder> policy) Contains the returned vault access policy as a JSON string.policy(VaultAccessPolicy policy) Contains the returned vault access policy as a JSON string.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.glacier.model.GlacierResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
policy
Contains the returned vault access policy as a JSON string.
- Parameters:
policy- Contains the returned vault access policy as a JSON string.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
Contains the returned 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:
-