Interface UpdateResiliencyPolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<UpdateResiliencyPolicyResponse.Builder,
,UpdateResiliencyPolicyResponse> ResiliencehubResponse.Builder
,SdkBuilder<UpdateResiliencyPolicyResponse.Builder,
,UpdateResiliencyPolicyResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
UpdateResiliencyPolicyResponse
public static interface UpdateResiliencyPolicyResponse.Builder
extends ResiliencehubResponse.Builder, SdkPojo, CopyableBuilder<UpdateResiliencyPolicyResponse.Builder,UpdateResiliencyPolicyResponse>
-
Method Summary
Modifier and TypeMethodDescriptionpolicy
(Consumer<ResiliencyPolicy.Builder> policy) The type of resiliency policy that was updated, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.policy
(ResiliencyPolicy policy) The type of resiliency policy that was updated, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.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
The type of resiliency policy that was updated, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.
- Parameters:
policy
- The type of resiliency policy that was updated, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policy
The type of resiliency policy that was updated, including the recovery time objective (RTO) and recovery point objective (RPO) in seconds.
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:
-