public class CreateRuleRequest
extends com.amazonaws.AmazonWebServiceRequest
implements java.io.Serializable
Creates a rule for the specified Amazon Connect instance.
Use the Rules Function language to code conditions for the rule.
| Constructor and Description |
|---|
CreateRuleRequest() |
| 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 |
getClientToken()
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
java.lang.String |
getFunction()
The conditions of the rule.
|
java.lang.String |
getInstanceId()
The identifier of the Amazon Connect instance.
|
java.lang.String |
getName()
A unique name for the rule.
|
java.lang.String |
getPublishStatus()
The publish status of the rule.
|
RuleTriggerEventSource |
getTriggerEventSource()
The event source to trigger the rule.
|
int |
hashCode() |
void |
setActions(java.util.Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
|
void |
setClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
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)
A unique name for 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 |
setTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateRuleRequest |
withActions(java.util.Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
|
CreateRuleRequest |
withActions(RuleAction... actions)
A list of actions to be run when the rule is triggered.
|
CreateRuleRequest |
withClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the
idempotency of the request.
|
CreateRuleRequest |
withFunction(java.lang.String function)
The conditions of the rule.
|
CreateRuleRequest |
withInstanceId(java.lang.String instanceId)
The identifier of the Amazon Connect instance.
|
CreateRuleRequest |
withName(java.lang.String name)
A unique name for the rule.
|
CreateRuleRequest |
withPublishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
|
CreateRuleRequest |
withPublishStatus(java.lang.String publishStatus)
The publish status of the rule.
|
CreateRuleRequest |
withTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
|
clone, copyBaseTo, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollectorpublic 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 CreateRuleRequest 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()
A unique name for the rule.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
A unique name for the rule.
public void setName(java.lang.String name)
A unique name for the rule.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
name - A unique name for the rule.
public CreateRuleRequest withName(java.lang.String name)
A unique name for the rule.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 200
Pattern: ^[0-9a-zA-Z._-]+
name - A unique name for the rule.
public RuleTriggerEventSource getTriggerEventSource()
The event source to trigger the rule.
The event source to trigger the rule.
public void setTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
triggerEventSource - The event source to trigger the rule.
public CreateRuleRequest withTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
Returns a reference to this object so that method calls can be chained together.
triggerEventSource - The event source to trigger the rule.
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 CreateRuleRequest 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 CreateRuleRequest 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 CreateRuleRequest 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 CreateRuleRequest 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 CreateRuleRequest 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 getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Constraints:
Length: - 500
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
public void setClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Constraints:
Length: - 500
clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
public CreateRuleRequest withClientToken(java.lang.String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: - 500
clientToken - A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the Amazon Web Services SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.
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