Interface CreateSafetyRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateSafetyRuleRequest.Builder,,CreateSafetyRuleRequest> Route53RecoveryControlConfigRequest.Builder,SdkBuilder<CreateSafetyRuleRequest.Builder,,CreateSafetyRuleRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateSafetyRuleRequest
@Mutable
@NotThreadSafe
public static interface CreateSafetyRuleRequest.Builder
extends Route53RecoveryControlConfigRequest.Builder, SdkPojo, CopyableBuilder<CreateSafetyRuleRequest.Builder,CreateSafetyRuleRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault CreateSafetyRuleRequest.BuilderassertionRule(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.BuildergatingRule(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
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.route53recoverycontrolconfig.model.Route53RecoveryControlConfigRequest.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
-
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.Builderavoiding the need to create one manually viaNewAssertionRule.builder().When the
Consumercompletes,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.Builderavoiding the need to create one manually viaNewGatingRule.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.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.
-