@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRuleRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP| Constructor and Description |
|---|
CreateRuleRequest() |
| Modifier and Type | Method and Description |
|---|---|
CreateRuleRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
List<RuleAction> |
getActions()
A list of actions to be run when the rule is triggered.
|
String |
getClientToken()
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
String |
getFunction()
The conditions of the rule.
|
String |
getInstanceId()
The identifier of the Amazon Connect instance.
|
String |
getName()
A unique name for the rule.
|
String |
getPublishStatus()
The publish status of the rule.
|
RuleTriggerEventSource |
getTriggerEventSource()
The event source to trigger the rule.
|
int |
hashCode() |
void |
setActions(Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
|
void |
setClientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
void |
setFunction(String function)
The conditions of the rule.
|
void |
setInstanceId(String instanceId)
The identifier of the Amazon Connect instance.
|
void |
setName(String name)
A unique name for the rule.
|
void |
setPublishStatus(String publishStatus)
The publish status of the rule.
|
void |
setTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
|
String |
toString()
Returns a string representation of this object.
|
CreateRuleRequest |
withActions(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(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateRuleRequest |
withFunction(String function)
The conditions of the rule.
|
CreateRuleRequest |
withInstanceId(String instanceId)
The identifier of the Amazon Connect instance.
|
CreateRuleRequest |
withName(String name)
A unique name for the rule.
|
CreateRuleRequest |
withPublishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
|
CreateRuleRequest |
withPublishStatus(String publishStatus)
The publish status of the rule.
|
CreateRuleRequest |
withTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeoutpublic void setInstanceId(String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
instanceId - The identifier of the Amazon Connect instance. You can find the instance
ID in the Amazon Resource Name (ARN) of the instance.public String getInstanceId()
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(String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
instanceId - The identifier of the Amazon Connect instance. You can find the instance
ID in the Amazon Resource Name (ARN) of the instance.public void setName(String name)
A unique name for the rule.
name - A unique name for the rule.public String getName()
A unique name for the rule.
public CreateRuleRequest withName(String name)
A unique name for the rule.
name - A unique name for the rule.public void setTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
triggerEventSource - The event source to trigger the rule.public RuleTriggerEventSource getTriggerEventSource()
The event source to trigger the rule.
public CreateRuleRequest withTriggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
triggerEventSource - The event source to trigger the rule.public void setFunction(String function)
The conditions of the rule.
function - The conditions of the rule.public String getFunction()
The conditions of the rule.
public CreateRuleRequest withFunction(String function)
The conditions of the rule.
function - The conditions of the rule.public List<RuleAction> getActions()
A list of actions to be run when the rule is triggered.
public void setActions(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.
NOTE: This method appends the values to the existing list (if any). Use
setActions(java.util.Collection) or withActions(java.util.Collection) if you want to override
the existing values.
actions - A list of actions to be run when the rule is triggered.public CreateRuleRequest withActions(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 void setPublishStatus(String publishStatus)
The publish status of the rule.
publishStatus - The publish status of the rule.RulePublishStatuspublic String getPublishStatus()
The publish status of the rule.
RulePublishStatuspublic CreateRuleRequest withPublishStatus(String publishStatus)
The publish status of the rule.
publishStatus - The publish status of the rule.RulePublishStatuspublic CreateRuleRequest withPublishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
publishStatus - The publish status of the rule.RulePublishStatuspublic void setClientToken(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.
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 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.
public CreateRuleRequest withClientToken(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.
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 String toString()
toString in class ObjectObject.toString()public CreateRuleRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()