Class CfnMailManagerRuleSet.DeliverToQBusinessActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ses.CfnMailManagerRuleSet.DeliverToQBusinessActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMailManagerRuleSet.DeliverToQBusinessActionProperty>
- Enclosing interface:
CfnMailManagerRuleSet.DeliverToQBusinessActionProperty
@Stability(Stable)
public static final class CfnMailManagerRuleSet.DeliverToQBusinessActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMailManagerRuleSet.DeliverToQBusinessActionProperty>
A builder for
CfnMailManagerRuleSet.DeliverToQBusinessActionProperty
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionFailurePolicy
(String actionFailurePolicy) applicationId
(String applicationId) build()
Builds the configured instance.Sets the value ofCfnMailManagerRuleSet.DeliverToQBusinessActionProperty.getIndexId()
Sets the value ofCfnMailManagerRuleSet.DeliverToQBusinessActionProperty.getRoleArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationId
@Stability(Stable) public CfnMailManagerRuleSet.DeliverToQBusinessActionProperty.Builder applicationId(String applicationId) - Parameters:
applicationId
- The unique identifier of the Amazon Q Business application instance where the email content will be delivered. This parameter is required.- Returns:
this
-
indexId
@Stability(Stable) public CfnMailManagerRuleSet.DeliverToQBusinessActionProperty.Builder indexId(String indexId) Sets the value ofCfnMailManagerRuleSet.DeliverToQBusinessActionProperty.getIndexId()
- Parameters:
indexId
- The identifier of the knowledge base index within the Amazon Q Business application where the email content will be stored and indexed. This parameter is required.- Returns:
this
-
roleArn
@Stability(Stable) public CfnMailManagerRuleSet.DeliverToQBusinessActionProperty.Builder roleArn(String roleArn) Sets the value ofCfnMailManagerRuleSet.DeliverToQBusinessActionProperty.getRoleArn()
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of the IAM Role to use while delivering to Amazon Q Business. This parameter is required. This role must have access to theqbusiness:BatchPutDocument
API for the given application and index.- Returns:
this
-
actionFailurePolicy
@Stability(Stable) public CfnMailManagerRuleSet.DeliverToQBusinessActionProperty.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 application has been deleted or the role lacks necessary permissions to call theqbusiness:BatchPutDocument
API.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnMailManagerRuleSet.DeliverToQBusinessActionProperty>
- Returns:
- a new instance of
CfnMailManagerRuleSet.DeliverToQBusinessActionProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-