Interface GetDataRetrievalPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetDataRetrievalPolicyResponse.Builder,,GetDataRetrievalPolicyResponse> GlacierResponse.Builder,SdkBuilder<GetDataRetrievalPolicyResponse.Builder,,GetDataRetrievalPolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetDataRetrievalPolicyResponse
public static interface GetDataRetrievalPolicyResponse.Builder
extends GlacierResponse.Builder, SdkPojo, CopyableBuilder<GetDataRetrievalPolicyResponse.Builder,GetDataRetrievalPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpolicy(Consumer<DataRetrievalPolicy.Builder> policy) Contains the returned data retrieval policy in JSON format.policy(DataRetrievalPolicy policy) Contains the returned data retrieval policy in JSON format.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 data retrieval policy in JSON format.
- Parameters:
policy- Contains the returned data retrieval policy in JSON format.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
Contains the returned data retrieval policy in JSON format.
This is a convenience method that creates an instance of theDataRetrievalPolicy.Builderavoiding the need to create one manually viaDataRetrievalPolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicy(DataRetrievalPolicy).- Parameters:
policy- a consumer that will call methods onDataRetrievalPolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-