public class RuleAction
extends java.lang.Object
implements java.io.Serializable
Information about the action to be performed when a rule is triggered.
| Constructor and Description |
|---|
RuleAction() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getActionType()
The type of action that creates a rule.
|
AssignContactCategoryActionDefinition |
getAssignContactCategoryAction()
Information about the contact category action.
|
EventBridgeActionDefinition |
getEventBridgeAction()
Information about the EventBridge action.
|
SendNotificationActionDefinition |
getSendNotificationAction()
Information about the send notification action.
|
TaskActionDefinition |
getTaskAction()
Information about the task action.
|
int |
hashCode() |
void |
setActionType(ActionType actionType)
The type of action that creates a rule.
|
void |
setActionType(java.lang.String actionType)
The type of action that creates a rule.
|
void |
setAssignContactCategoryAction(AssignContactCategoryActionDefinition assignContactCategoryAction)
Information about the contact category action.
|
void |
setEventBridgeAction(EventBridgeActionDefinition eventBridgeAction)
Information about the EventBridge action.
|
void |
setSendNotificationAction(SendNotificationActionDefinition sendNotificationAction)
Information about the send notification action.
|
void |
setTaskAction(TaskActionDefinition taskAction)
Information about the task action.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
RuleAction |
withActionType(ActionType actionType)
The type of action that creates a rule.
|
RuleAction |
withActionType(java.lang.String actionType)
The type of action that creates a rule.
|
RuleAction |
withAssignContactCategoryAction(AssignContactCategoryActionDefinition assignContactCategoryAction)
Information about the contact category action.
|
RuleAction |
withEventBridgeAction(EventBridgeActionDefinition eventBridgeAction)
Information about the EventBridge action.
|
RuleAction |
withSendNotificationAction(SendNotificationActionDefinition sendNotificationAction)
Information about the send notification action.
|
RuleAction |
withTaskAction(TaskActionDefinition taskAction)
Information about the task action.
|
public java.lang.String getActionType()
The type of action that creates a rule.
Constraints:
Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY,
GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
The type of action that creates a rule.
ActionTypepublic void setActionType(java.lang.String actionType)
The type of action that creates a rule.
Constraints:
Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY,
GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
actionType - The type of action that creates a rule.
ActionTypepublic RuleAction withActionType(java.lang.String actionType)
The type of action that creates a rule.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY,
GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
actionType - The type of action that creates a rule.
ActionTypepublic void setActionType(ActionType actionType)
The type of action that creates a rule.
Constraints:
Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY,
GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
actionType - The type of action that creates a rule.
ActionTypepublic RuleAction withActionType(ActionType actionType)
The type of action that creates a rule.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: CREATE_TASK, ASSIGN_CONTACT_CATEGORY,
GENERATE_EVENTBRIDGE_EVENT, SEND_NOTIFICATION
actionType - The type of action that creates a rule.
ActionTypepublic TaskActionDefinition getTaskAction()
Information about the task action. This field is required if
TriggerEventSource is one of the following values:
OnZendeskTicketCreate |
OnZendeskTicketStatusUpdate |
OnSalesforceCaseCreate
Information about the task action. This field is required if
TriggerEventSource is one of the following values:
OnZendeskTicketCreate |
OnZendeskTicketStatusUpdate |
OnSalesforceCaseCreate
public void setTaskAction(TaskActionDefinition taskAction)
Information about the task action. This field is required if
TriggerEventSource is one of the following values:
OnZendeskTicketCreate |
OnZendeskTicketStatusUpdate |
OnSalesforceCaseCreate
taskAction -
Information about the task action. This field is required if
TriggerEventSource is one of the following
values: OnZendeskTicketCreate |
OnZendeskTicketStatusUpdate |
OnSalesforceCaseCreate
public RuleAction withTaskAction(TaskActionDefinition taskAction)
Information about the task action. This field is required if
TriggerEventSource is one of the following values:
OnZendeskTicketCreate |
OnZendeskTicketStatusUpdate |
OnSalesforceCaseCreate
Returns a reference to this object so that method calls can be chained together.
taskAction -
Information about the task action. This field is required if
TriggerEventSource is one of the following
values: OnZendeskTicketCreate |
OnZendeskTicketStatusUpdate |
OnSalesforceCaseCreate
public EventBridgeActionDefinition getEventBridgeAction()
Information about the EventBridge action.
Information about the EventBridge action.
public void setEventBridgeAction(EventBridgeActionDefinition eventBridgeAction)
Information about the EventBridge action.
eventBridgeAction - Information about the EventBridge action.
public RuleAction withEventBridgeAction(EventBridgeActionDefinition eventBridgeAction)
Information about the EventBridge action.
Returns a reference to this object so that method calls can be chained together.
eventBridgeAction - Information about the EventBridge action.
public AssignContactCategoryActionDefinition getAssignContactCategoryAction()
Information about the contact category action.
Information about the contact category action.
public void setAssignContactCategoryAction(AssignContactCategoryActionDefinition assignContactCategoryAction)
Information about the contact category action.
assignContactCategoryAction - Information about the contact category action.
public RuleAction withAssignContactCategoryAction(AssignContactCategoryActionDefinition assignContactCategoryAction)
Information about the contact category action.
Returns a reference to this object so that method calls can be chained together.
assignContactCategoryAction - Information about the contact category action.
public SendNotificationActionDefinition getSendNotificationAction()
Information about the send notification action.
Information about the send notification action.
public void setSendNotificationAction(SendNotificationActionDefinition sendNotificationAction)
Information about the send notification action.
sendNotificationAction - Information about the send notification action.
public RuleAction withSendNotificationAction(SendNotificationActionDefinition sendNotificationAction)
Information about the send notification action.
Returns a reference to this object so that method calls can be chained together.
sendNotificationAction - Information about the send notification action.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object