Class CfnRule.ActionsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnRule.ActionsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.ActionsProperty>
- Enclosing interface:
CfnRule.ActionsProperty
@Stability(Stable)
public static final class CfnRule.ActionsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.ActionsProperty>
A builder for
CfnRule.ActionsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignContactCategoryActions(List<? extends Object> assignContactCategoryActions) Sets the value ofCfnRule.ActionsProperty.getAssignContactCategoryActions()assignContactCategoryActions(IResolvable assignContactCategoryActions) Sets the value ofCfnRule.ActionsProperty.getAssignContactCategoryActions()build()Builds the configured instance.createCaseActions(List<? extends Object> createCaseActions) Sets the value ofCfnRule.ActionsProperty.getCreateCaseActions()createCaseActions(IResolvable createCaseActions) Sets the value ofCfnRule.ActionsProperty.getCreateCaseActions()endAssociatedTasksActions(List<? extends Object> endAssociatedTasksActions) Sets the value ofCfnRule.ActionsProperty.getEndAssociatedTasksActions()endAssociatedTasksActions(IResolvable endAssociatedTasksActions) Sets the value ofCfnRule.ActionsProperty.getEndAssociatedTasksActions()eventBridgeActions(List<? extends Object> eventBridgeActions) Sets the value ofCfnRule.ActionsProperty.getEventBridgeActions()eventBridgeActions(IResolvable eventBridgeActions) Sets the value ofCfnRule.ActionsProperty.getEventBridgeActions()sendNotificationActions(List<? extends Object> sendNotificationActions) Sets the value ofCfnRule.ActionsProperty.getSendNotificationActions()sendNotificationActions(IResolvable sendNotificationActions) Sets the value ofCfnRule.ActionsProperty.getSendNotificationActions()submitAutoEvaluationActions(List<? extends Object> submitAutoEvaluationActions) Sets the value ofCfnRule.ActionsProperty.getSubmitAutoEvaluationActions()submitAutoEvaluationActions(IResolvable submitAutoEvaluationActions) Sets the value ofCfnRule.ActionsProperty.getSubmitAutoEvaluationActions()taskActions(List<? extends Object> taskActions) Sets the value ofCfnRule.ActionsProperty.getTaskActions()taskActions(IResolvable taskActions) Sets the value ofCfnRule.ActionsProperty.getTaskActions()updateCaseActions(List<? extends Object> updateCaseActions) Sets the value ofCfnRule.ActionsProperty.getUpdateCaseActions()updateCaseActions(IResolvable updateCaseActions) Sets the value ofCfnRule.ActionsProperty.getUpdateCaseActions()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
assignContactCategoryActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder assignContactCategoryActions(List<? extends Object> assignContactCategoryActions) Sets the value ofCfnRule.ActionsProperty.getAssignContactCategoryActions()- Parameters:
assignContactCategoryActions- Information about the contact category action. The syntax can be empty, for example,{}.- Returns:
this
-
assignContactCategoryActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder assignContactCategoryActions(IResolvable assignContactCategoryActions) Sets the value ofCfnRule.ActionsProperty.getAssignContactCategoryActions()- Parameters:
assignContactCategoryActions- Information about the contact category action. The syntax can be empty, for example,{}.- Returns:
this
-
createCaseActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder createCaseActions(IResolvable createCaseActions) Sets the value ofCfnRule.ActionsProperty.getCreateCaseActions()- Parameters:
createCaseActions- This action will create a case when a rule is triggered.- Returns:
this
-
createCaseActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder createCaseActions(List<? extends Object> createCaseActions) Sets the value ofCfnRule.ActionsProperty.getCreateCaseActions()- Parameters:
createCaseActions- This action will create a case when a rule is triggered.- Returns:
this
-
endAssociatedTasksActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder endAssociatedTasksActions(List<? extends Object> endAssociatedTasksActions) Sets the value ofCfnRule.ActionsProperty.getEndAssociatedTasksActions()- Parameters:
endAssociatedTasksActions- This action will end associated tasks when a rule is triggered.- Returns:
this
-
endAssociatedTasksActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder endAssociatedTasksActions(IResolvable endAssociatedTasksActions) Sets the value ofCfnRule.ActionsProperty.getEndAssociatedTasksActions()- Parameters:
endAssociatedTasksActions- This action will end associated tasks when a rule is triggered.- Returns:
this
-
eventBridgeActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder eventBridgeActions(IResolvable eventBridgeActions) Sets the value ofCfnRule.ActionsProperty.getEventBridgeActions()- Parameters:
eventBridgeActions- Information about the EventBridge action.- Returns:
this
-
eventBridgeActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder eventBridgeActions(List<? extends Object> eventBridgeActions) Sets the value ofCfnRule.ActionsProperty.getEventBridgeActions()- Parameters:
eventBridgeActions- Information about the EventBridge action.- Returns:
this
-
sendNotificationActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder sendNotificationActions(IResolvable sendNotificationActions) Sets the value ofCfnRule.ActionsProperty.getSendNotificationActions()- Parameters:
sendNotificationActions- Information about the send notification action.- Returns:
this
-
sendNotificationActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder sendNotificationActions(List<? extends Object> sendNotificationActions) Sets the value ofCfnRule.ActionsProperty.getSendNotificationActions()- Parameters:
sendNotificationActions- Information about the send notification action.- Returns:
this
-
submitAutoEvaluationActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder submitAutoEvaluationActions(IResolvable submitAutoEvaluationActions) Sets the value ofCfnRule.ActionsProperty.getSubmitAutoEvaluationActions()- Parameters:
submitAutoEvaluationActions- This action will submit an auto contact evaluation when a rule is triggered.- Returns:
this
-
submitAutoEvaluationActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder submitAutoEvaluationActions(List<? extends Object> submitAutoEvaluationActions) Sets the value ofCfnRule.ActionsProperty.getSubmitAutoEvaluationActions()- Parameters:
submitAutoEvaluationActions- This action will submit an auto contact evaluation when a rule is triggered.- Returns:
this
-
taskActions
Sets the value ofCfnRule.ActionsProperty.getTaskActions()- Parameters:
taskActions- Information about the task action. This field is required ifTriggerEventSourceis one of the following values:OnZendeskTicketCreate|OnZendeskTicketStatusUpdate|OnSalesforceCaseCreate- Returns:
this
-
taskActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder taskActions(List<? extends Object> taskActions) Sets the value ofCfnRule.ActionsProperty.getTaskActions()- Parameters:
taskActions- Information about the task action. This field is required ifTriggerEventSourceis one of the following values:OnZendeskTicketCreate|OnZendeskTicketStatusUpdate|OnSalesforceCaseCreate- Returns:
this
-
updateCaseActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder updateCaseActions(IResolvable updateCaseActions) Sets the value ofCfnRule.ActionsProperty.getUpdateCaseActions()- Parameters:
updateCaseActions- This action will update a case when a rule is triggered.- Returns:
this
-
updateCaseActions
@Stability(Stable) public CfnRule.ActionsProperty.Builder updateCaseActions(List<? extends Object> updateCaseActions) Sets the value ofCfnRule.ActionsProperty.getUpdateCaseActions()- Parameters:
updateCaseActions- This action will update a case when a rule is triggered.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRule.ActionsProperty>- Returns:
- a new instance of
CfnRule.ActionsProperty - Throws:
NullPointerException- if any required attribute was not provided
-