Class CfnMailManagerRuleSetPropsMixin.RelayActionProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.ses.CfnMailManagerRuleSetPropsMixin.RelayActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.RelayActionProperty>
- Enclosing interface:
CfnMailManagerRuleSetPropsMixin.RelayActionProperty
@Stability(Stable)
public static final class CfnMailManagerRuleSetPropsMixin.RelayActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.RelayActionProperty>
A builder for
CfnMailManagerRuleSetPropsMixin.RelayActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionFailurePolicy(String actionFailurePolicy) build()Builds the configured instance.Sets the value ofCfnMailManagerRuleSetPropsMixin.RelayActionProperty.getMailFrom()Sets the value ofCfnMailManagerRuleSetPropsMixin.RelayActionProperty.getRelay()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actionFailurePolicy
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RelayActionProperty.Builder actionFailurePolicy(String actionFailurePolicy) - Parameters:
actionFailurePolicy- A policy that states what to do in the case of failure. The action will fail if there are configuration errors. For example, the specified relay has been deleted.- Returns:
this
-
mailFrom
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RelayActionProperty.Builder mailFrom(String mailFrom) Sets the value ofCfnMailManagerRuleSetPropsMixin.RelayActionProperty.getMailFrom()- Parameters:
mailFrom- This action specifies whether to preserve or replace original mail from address while relaying received emails to a destination server.- Returns:
this
-
relay
@Stability(Stable) public CfnMailManagerRuleSetPropsMixin.RelayActionProperty.Builder relay(String relay) Sets the value ofCfnMailManagerRuleSetPropsMixin.RelayActionProperty.getRelay()- Parameters:
relay- The identifier of the relay resource to be used when relaying an email.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMailManagerRuleSetPropsMixin.RelayActionProperty>- Returns:
- a new instance of
CfnMailManagerRuleSetPropsMixin.RelayActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-