Interface DescribeResiliencyPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<DescribeResiliencyPolicyResponse.Builder,
,DescribeResiliencyPolicyResponse> ResiliencehubResponse.Builder
,SdkBuilder<DescribeResiliencyPolicyResponse.Builder,
,DescribeResiliencyPolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
DescribeResiliencyPolicyResponse
public static interface DescribeResiliencyPolicyResponse.Builder
extends ResiliencehubResponse.Builder, SdkPojo, CopyableBuilder<DescribeResiliencyPolicyResponse.Builder,DescribeResiliencyPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpolicy
(Consumer<ResiliencyPolicy.Builder> policy) Information about the specific resiliency policy, returned as an object.policy
(ResiliencyPolicy policy) Information about the specific resiliency policy, returned as an object.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.resiliencehub.model.ResiliencehubResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
policy
Information about the specific resiliency policy, returned as an object. This object includes creation time, data location constraints, its name, description, tags, the recovery time objective (RTO) and recovery point objective (RPO) in seconds, and more.
- Parameters:
policy
- Information about the specific resiliency policy, returned as an object. This object includes creation time, data location constraints, its name, description, tags, the recovery time objective (RTO) and recovery point objective (RPO) in seconds, and more.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
Information about the specific resiliency policy, returned as an object. This object includes creation time, data location constraints, its name, description, tags, the recovery time objective (RTO) and recovery point objective (RPO) in seconds, and more.
This is a convenience method that creates an instance of theResiliencyPolicy.Builder
avoiding the need to create one manually viaResiliencyPolicy.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topolicy(ResiliencyPolicy)
.- Parameters:
policy
- a consumer that will call methods onResiliencyPolicy.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-