Interface CreateReceiptRuleRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateReceiptRuleRequest.Builder,,CreateReceiptRuleRequest> SdkBuilder<CreateReceiptRuleRequest.Builder,,CreateReceiptRuleRequest> SdkPojo,SdkRequest.Builder,SesRequest.Builder
- Enclosing class:
CreateReceiptRuleRequest
public static interface CreateReceiptRuleRequest.Builder
extends SesRequest.Builder, SdkPojo, CopyableBuilder<CreateReceiptRuleRequest.Builder,CreateReceiptRuleRequest>
-
Method Summary
Modifier and TypeMethodDescriptionThe name of an existing rule after which the new rule is placed.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.default CreateReceiptRuleRequest.Builderrule(Consumer<ReceiptRule.Builder> rule) A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.rule(ReceiptRule rule) A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.ruleSetName(String ruleSetName) The name of the rule set where the receipt rule is added.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.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.services.ses.model.SesRequest.Builder
build
-
Method Details
-
ruleSetName
The name of the rule set where the receipt rule is added.
- Parameters:
ruleSetName- The name of the rule set where the receipt rule is added.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
after
The name of an existing rule after which the new rule is placed. If this parameter is null, the new rule is inserted at the beginning of the rule list.
- Parameters:
after- The name of an existing rule after which the new rule is placed. If this parameter is null, the new rule is inserted at the beginning of the rule list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
- Parameters:
rule- A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rule
A data structure that contains the specified rule's name, actions, recipients, domains, enabled status, scan status, and TLS policy.
This is a convenience method that creates an instance of theReceiptRule.Builderavoiding the need to create one manually viaReceiptRule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torule(ReceiptRule).- Parameters:
rule- a consumer that will call methods onReceiptRule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateReceiptRuleRequest.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
CreateReceiptRuleRequest.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.
-