Interface CreateSafetyRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateSafetyRuleRequest.Builder,
,CreateSafetyRuleRequest> Route53RecoveryControlConfigRequest.Builder
,SdkBuilder<CreateSafetyRuleRequest.Builder,
,CreateSafetyRuleRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateSafetyRuleRequest
public static interface CreateSafetyRuleRequest.Builder
extends Route53RecoveryControlConfigRequest.Builder, SdkPojo, CopyableBuilder<CreateSafetyRuleRequest.Builder,CreateSafetyRuleRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateSafetyRuleRequest.Builder
assertionRule
(Consumer<NewAssertionRule.Builder> assertionRule) The assertion rule requested.assertionRule
(NewAssertionRule assertionRule) The assertion rule requested.clientToken
(String clientToken) A unique, case-sensitive string of up to 64 ASCII characters.default CreateSafetyRuleRequest.Builder
gatingRule
(Consumer<NewGatingRule.Builder> gatingRule) The gating rule requested.gatingRule
(NewGatingRule gatingRule) The gating rule requested.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The tags associated with the safety rule.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.route53recoverycontrolconfig.model.Route53RecoveryControlConfigRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
assertionRule
The assertion rule requested.
- Parameters:
assertionRule
- The assertion rule requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
assertionRule
default CreateSafetyRuleRequest.Builder assertionRule(Consumer<NewAssertionRule.Builder> assertionRule) The assertion rule requested.
This is a convenience method that creates an instance of theNewAssertionRule.Builder
avoiding the need to create one manually viaNewAssertionRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toassertionRule(NewAssertionRule)
.- Parameters:
assertionRule
- a consumer that will call methods onNewAssertionRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, specify a client token in the request.
- Parameters:
clientToken
- A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, specify a client token in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gatingRule
The gating rule requested.
- Parameters:
gatingRule
- The gating rule requested.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gatingRule
The gating rule requested.
This is a convenience method that creates an instance of theNewGatingRule.Builder
avoiding the need to create one manually viaNewGatingRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togatingRule(NewGatingRule)
.- Parameters:
gatingRule
- a consumer that will call methods onNewGatingRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
The tags associated with the safety rule.
- Parameters:
tags
- The tags associated with the safety rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateSafetyRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateSafetyRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-