public class UpdateRuleRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Updates a rule for the specified Amazon Connect instance.
Use the Rules Function language to code conditions for the rule.
| Constructor and Description |
|---|
UpdateRuleRequest() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<RuleAction> |
getActions()
A list of actions to be run when the rule is triggered.
|
java.lang.String |
getFunction()
The conditions of the rule.
|
java.lang.String |
getInstanceId()
The identifier of the Amazon Connect instance.
|
java.lang.String |
getName()
The name of the rule.
|
java.lang.String |
getPublishStatus()
The publish status of the rule.
|
java.lang.String |
getRuleId()
A unique identifier for the rule.
|
int |
hashCode() |
void |
setActions(java.util.Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
|
void |
setFunction(java.lang.String function)
The conditions of the rule.
|
void |
setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
void |
setName(java.lang.String name)
The name of the rule.
|
void |
setPublishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
|
void |
setPublishStatus(java.lang.String publishStatus)
The publish status of the rule.
|
void |
setRuleId(java.lang.String ruleId)
A unique identifier for the rule.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
UpdateRuleRequest |
withActions(java.util.Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
|
UpdateRuleRequest |
withActions(RuleAction... actions)
A list of actions to be run when the rule is triggered.
|
UpdateRuleRequest |
withFunction(java.lang.String function)
The conditions of the rule.
|
UpdateRuleRequest |
withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
UpdateRuleRequest |
withName(java.lang.String name)
The name of the rule.
|
UpdateRuleRequest |
withPublishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
|
UpdateRuleRequest |
withPublishStatus(java.lang.String publishStatus)
The publish status of the rule.
|
UpdateRuleRequest |
withRuleId(java.lang.String ruleId)
A unique identifier for the rule.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic java.lang.String getRuleId()
A unique identifier for the rule.
Constraints:
Length: 1 - 256
A unique identifier for the rule.
public void setRuleId(java.lang.String ruleId)
A unique identifier for the rule.
Constraints:
Length: 1 - 256
ruleId - A unique identifier for the rule.
public UpdateRuleRequest withRuleId(java.lang.String ruleId)
A unique identifier for the rule.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 256
ruleId - A unique identifier for the rule.
public java.lang.String getInstanceId()
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public void setInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public UpdateRuleRequest withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 100
instanceId - The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
public java.lang.String getName()
The name of the rule. You can change the name only if
TriggerEventSource is one of the following values:
OnZendeskTicketCreate |
OnZendeskTicketStatusUpdate |
OnSalesforceCaseCreate
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
The name of the rule. You can change the name only if
TriggerEventSource is one of the following values:
OnZendeskTicketCreate |
OnZendeskTicketStatusUpdate |
OnSalesforceCaseCreate
public void setName(java.lang.String name)
The name of the rule. You can change the name only if
TriggerEventSource is one of the following values:
OnZendeskTicketCreate |
OnZendeskTicketStatusUpdate |
OnSalesforceCaseCreate
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
name -
The name of the rule. You can change the name only if
TriggerEventSource is one of the following
values: OnZendeskTicketCreate |
OnZendeskTicketStatusUpdate |
OnSalesforceCaseCreate
public UpdateRuleRequest withName(java.lang.String name)
The name of the rule. You can change the name only 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.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
name -
The name of the rule. You can change the name only if
TriggerEventSource is one of the following
values: OnZendeskTicketCreate |
OnZendeskTicketStatusUpdate |
OnSalesforceCaseCreate
public java.lang.String getFunction()
The conditions of the rule.
The conditions of the rule.
public void setFunction(java.lang.String function)
The conditions of the rule.
function - The conditions of the rule.
public UpdateRuleRequest withFunction(java.lang.String function)
The conditions of the rule.
Returns a reference to this object so that method calls can be chained together.
function - The conditions of the rule.
public java.util.List<RuleAction> getActions()
A list of actions to be run when the rule is triggered.
A list of actions to be run when the rule is triggered.
public void setActions(java.util.Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
actions - A list of actions to be run when the rule is triggered.
public UpdateRuleRequest withActions(RuleAction... actions)
A list of actions to be run when the rule is triggered.
Returns a reference to this object so that method calls can be chained together.
actions - A list of actions to be run when the rule is triggered.
public UpdateRuleRequest withActions(java.util.Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
Returns a reference to this object so that method calls can be chained together.
actions - A list of actions to be run when the rule is triggered.
public java.lang.String getPublishStatus()
The publish status of the rule.
Constraints:
Allowed Values: DRAFT, PUBLISHED
The publish status of the rule.
RulePublishStatuspublic void setPublishStatus(java.lang.String publishStatus)
The publish status of the rule.
Constraints:
Allowed Values: DRAFT, PUBLISHED
publishStatus - The publish status of the rule.
RulePublishStatuspublic UpdateRuleRequest withPublishStatus(java.lang.String publishStatus)
The publish status of the rule.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DRAFT, PUBLISHED
publishStatus - The publish status of the rule.
RulePublishStatuspublic void setPublishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
Constraints:
Allowed Values: DRAFT, PUBLISHED
publishStatus - The publish status of the rule.
RulePublishStatuspublic UpdateRuleRequest withPublishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: DRAFT, PUBLISHED
publishStatus - The publish status of the rule.
RulePublishStatuspublic 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