public static interface CreateRuleRequest.Builder extends ConnectRequest.Builder, SdkPojo, CopyableBuilder<CreateRuleRequest.Builder,CreateRuleRequest>
| Modifier and Type | Method and Description |
|---|---|
CreateRuleRequest.Builder |
actions(Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
|
CreateRuleRequest.Builder |
actions(Consumer<RuleAction.Builder>... actions)
A list of actions to be run when the rule is triggered.
|
CreateRuleRequest.Builder |
actions(RuleAction... actions)
A list of actions to be run when the rule is triggered.
|
CreateRuleRequest.Builder |
clientToken(String clientToken)
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.
|
CreateRuleRequest.Builder |
function(String function)
The conditions of the rule.
|
CreateRuleRequest.Builder |
instanceId(String instanceId)
The identifier of the Amazon Connect instance.
|
CreateRuleRequest.Builder |
name(String name)
A unique name for the rule.
|
CreateRuleRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
CreateRuleRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
CreateRuleRequest.Builder |
publishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
|
CreateRuleRequest.Builder |
publishStatus(String publishStatus)
The publish status of the rule.
|
default CreateRuleRequest.Builder |
triggerEventSource(Consumer<RuleTriggerEventSource.Builder> triggerEventSource)
The event source to trigger the rule.
|
CreateRuleRequest.Builder |
triggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildCreateRuleRequest.Builder instanceId(String instanceId)
The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.
instanceId - The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.CreateRuleRequest.Builder name(String name)
A unique name for the rule.
name - A unique name for the rule.CreateRuleRequest.Builder triggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
triggerEventSource - The event source to trigger the rule.default CreateRuleRequest.Builder triggerEventSource(Consumer<RuleTriggerEventSource.Builder> triggerEventSource)
The event source to trigger the rule.
This is a convenience method that creates an instance of theRuleTriggerEventSource.Builder avoiding
the need to create one manually via RuleTriggerEventSource.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and
its result is passed to triggerEventSource(RuleTriggerEventSource).
triggerEventSource - a consumer that will call methods on RuleTriggerEventSource.BuildertriggerEventSource(RuleTriggerEventSource)CreateRuleRequest.Builder function(String function)
The conditions of the rule.
function - The conditions of the rule.CreateRuleRequest.Builder actions(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.CreateRuleRequest.Builder actions(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.CreateRuleRequest.Builder actions(Consumer<RuleAction.Builder>... actions)
A list of actions to be run when the rule is triggered.
This is a convenience method that creates an instance of theRuleAction.Builder avoiding the need to create one
manually via RuleAction.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and
its result is passed to #actions(List.
actions - a consumer that will call methods on
RuleAction.Builder#actions(java.util.Collection) CreateRuleRequest.Builder publishStatus(String publishStatus)
The publish status of the rule.
publishStatus - The publish status of the rule.RulePublishStatus,
RulePublishStatusCreateRuleRequest.Builder publishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
publishStatus - The publish status of the rule.RulePublishStatus,
RulePublishStatusCreateRuleRequest.Builder clientToken(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.CreateRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderCreateRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.