Interface CreatePolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreatePolicyRequest.Builder,,CreatePolicyRequest> Resiliencehubv2Request.Builder,SdkBuilder<CreatePolicyRequest.Builder,,CreatePolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreatePolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreatePolicyRequest.BuilderavailabilitySlo(Consumer<AvailabilitySlo.Builder> availabilitySlo) The availability SLO for the resilience policy.availabilitySlo(AvailabilitySlo availabilitySlo) The availability SLO for the resilience policy.clientToken(String clientToken) Sets the value of the ClientToken property for this object.default CreatePolicyRequest.BuilderdataRecovery(Consumer<DataRecoveryTargets.Builder> dataRecovery) The data recovery targets for the resilience policy.dataRecovery(DataRecoveryTargets dataRecovery) The data recovery targets for the resilience policy.description(String description) Sets the value of the Description property for this object.Sets the value of the KmsKeyId property for this object.default CreatePolicyRequest.BuildermultiAz(Consumer<MultiAzTargets.Builder> multiAz) The multi-AZ disaster recovery targets for the resilience policy.multiAz(MultiAzTargets multiAz) The multi-AZ disaster recovery targets for the resilience policy.default CreatePolicyRequest.BuildermultiRegion(Consumer<MultiRegionTargets.Builder> multiRegion) The multi-Region disaster recovery targets for the resilience policy.multiRegion(MultiRegionTargets multiRegion) The multi-Region disaster recovery targets for the resilience policy.Sets the value of the Name property for this object.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 Tags 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
-
name
Sets the value of the Name property for this object.- Parameters:
name- The new value for the Name 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 availability SLO for the resilience policy.
- Parameters:
availabilitySlo- The availability SLO for the resilience policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
availabilitySlo
default CreatePolicyRequest.Builder availabilitySlo(Consumer<AvailabilitySlo.Builder> availabilitySlo) The availability SLO for the resilience 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 multi-AZ disaster recovery targets for the resilience policy.
- Parameters:
multiAz- The multi-AZ disaster recovery targets for the resilience policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
multiAz
The multi-AZ disaster recovery targets for the resilience 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 multi-Region disaster recovery targets for the resilience policy.
- Parameters:
multiRegion- The multi-Region disaster recovery targets for the resilience policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
multiRegion
The multi-Region disaster recovery targets for the resilience 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 data recovery targets for the resilience policy.
- Parameters:
dataRecovery- The data recovery targets for the resilience policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dataRecovery
default CreatePolicyRequest.Builder dataRecovery(Consumer<DataRecoveryTargets.Builder> dataRecovery) The data recovery targets for the resilience 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:
-
kmsKeyId
Sets the value of the KmsKeyId property for this object.- Parameters:
kmsKeyId- The new value for the KmsKeyId property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object.- Parameters:
tags- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
Sets the value of the ClientToken property for this object.- Parameters:
clientToken- The new value for the ClientToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreatePolicyRequest.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
CreatePolicyRequest.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.
-