Interface GetLifecyclePolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetLifecyclePolicyResponse.Builder,,GetLifecyclePolicyResponse> DlmResponse.Builder,SdkBuilder<GetLifecyclePolicyResponse.Builder,,GetLifecyclePolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetLifecyclePolicyResponse
public static interface GetLifecyclePolicyResponse.Builder
extends DlmResponse.Builder, SdkPojo, CopyableBuilder<GetLifecyclePolicyResponse.Builder,GetLifecyclePolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpolicy(Consumer<LifecyclePolicy.Builder> policy) Detailed information about the lifecycle policy.policy(LifecyclePolicy policy) Detailed information about the lifecycle policy.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.dlm.model.DlmResponse.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
Detailed information about the lifecycle policy.
- Parameters:
policy- Detailed information about the lifecycle policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
Detailed information about the lifecycle policy.
This is a convenience method that creates an instance of theLifecyclePolicy.Builderavoiding the need to create one manually viaLifecyclePolicy.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topolicy(LifecyclePolicy).- Parameters:
policy- a consumer that will call methods onLifecyclePolicy.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-