Interface UpdatePolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdatePolicyRequest.Builder,,UpdatePolicyRequest> Resiliencehubv2Request.Builder,SdkBuilder<UpdatePolicyRequest.Builder,,UpdatePolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdatePolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault UpdatePolicyRequest.BuilderavailabilitySlo(Consumer<AvailabilitySlo.Builder> availabilitySlo) The updated availability SLO for the policy.availabilitySlo(AvailabilitySlo availabilitySlo) The updated availability SLO for the policy.default UpdatePolicyRequest.BuilderdataRecovery(Consumer<DataRecoveryTargets.Builder> dataRecovery) The updated data recovery targets for the policy.dataRecovery(DataRecoveryTargets dataRecovery) The updated data recovery targets for the policy.description(String description) Sets the value of the Description property for this object.default UpdatePolicyRequest.BuildermultiAz(Consumer<MultiAzTargets.Builder> multiAz) The updated multi-AZ disaster recovery targets for the policy.multiAz(MultiAzTargets multiAz) The updated multi-AZ disaster recovery targets for the policy.default UpdatePolicyRequest.BuildermultiRegion(Consumer<MultiRegionTargets.Builder> multiRegion) The updated multi-Region disaster recovery targets for the policy.multiRegion(MultiRegionTargets multiRegion) The updated multi-Region disaster recovery targets for the policy.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Sets the value of the PolicyArn property for this object.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.resiliencehubv2.model.Resiliencehubv2Request.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
policyArn
Sets the value of the PolicyArn property for this object.- Parameters:
policyArn- The new value for the PolicyArn property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
Sets the value of the Description property for this object.- Parameters:
description- The new value for the Description property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilitySlo
The updated availability SLO for the policy.
- Parameters:
availabilitySlo- The updated availability SLO for the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilitySlo
default UpdatePolicyRequest.Builder availabilitySlo(Consumer<AvailabilitySlo.Builder> availabilitySlo) The updated availability SLO for the policy.
This is a convenience method that creates an instance of theAvailabilitySlo.Builderavoiding the need to create one manually viaAvailabilitySlo.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toavailabilitySlo(AvailabilitySlo).- Parameters:
availabilitySlo- a consumer that will call methods onAvailabilitySlo.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
multiAz
The updated multi-AZ disaster recovery targets for the policy.
- Parameters:
multiAz- The updated multi-AZ disaster recovery targets for the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
multiAz
The updated multi-AZ disaster recovery targets for the policy.
This is a convenience method that creates an instance of theMultiAzTargets.Builderavoiding the need to create one manually viaMultiAzTargets.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomultiAz(MultiAzTargets).- Parameters:
multiAz- a consumer that will call methods onMultiAzTargets.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
multiRegion
The updated multi-Region disaster recovery targets for the policy.
- Parameters:
multiRegion- The updated multi-Region disaster recovery targets for the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
multiRegion
The updated multi-Region disaster recovery targets for the policy.
This is a convenience method that creates an instance of theMultiRegionTargets.Builderavoiding the need to create one manually viaMultiRegionTargets.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tomultiRegion(MultiRegionTargets).- Parameters:
multiRegion- a consumer that will call methods onMultiRegionTargets.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dataRecovery
The updated data recovery targets for the policy.
- Parameters:
dataRecovery- The updated data recovery targets for the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataRecovery
default UpdatePolicyRequest.Builder dataRecovery(Consumer<DataRecoveryTargets.Builder> dataRecovery) The updated data recovery targets for the policy.
This is a convenience method that creates an instance of theDataRecoveryTargets.Builderavoiding the need to create one manually viaDataRecoveryTargets.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todataRecovery(DataRecoveryTargets).- Parameters:
dataRecovery- a consumer that will call methods onDataRecoveryTargets.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdatePolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdatePolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-