Interface UpdateRuleSetRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<UpdateRuleSetRequest.Builder,
,UpdateRuleSetRequest> MailManagerRequest.Builder
,SdkBuilder<UpdateRuleSetRequest.Builder,
,UpdateRuleSetRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
UpdateRuleSetRequest
@Mutable
@NotThreadSafe
public static interface UpdateRuleSetRequest.Builder
extends MailManagerRequest.Builder, SdkPojo, CopyableBuilder<UpdateRuleSetRequest.Builder,UpdateRuleSetRequest>
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.rules
(Collection<Rule> rules) A new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set.rules
(Consumer<Rule.Builder>... rules) A new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set.A new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set.The identifier of a rule set you want to update.ruleSetName
(String ruleSetName) A user-friendly name for the rule set resource.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.mailmanager.model.MailManagerRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
ruleSetId
The identifier of a rule set you want to update.
- Parameters:
ruleSetId
- The identifier of a rule set you want to update.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleSetName
A user-friendly name for the rule set resource.
- Parameters:
ruleSetName
- A user-friendly name for the rule set resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
A new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set.
- Parameters:
rules
- A new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
A new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set.
- Parameters:
rules
- A new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rules
A new set of rules to replace the current rules of the rule set—these rules will override all the rules of the rule set.
This is a convenience method that creates an instance of theRule.Builder
avoiding the need to create one manually viaRule.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torules(List<Rule>)
.- Parameters:
rules
- a consumer that will call methods onRule.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateRuleSetRequest.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
UpdateRuleSetRequest.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.
-