Interface CreateRuleRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,ConnectRequest.Builder,CopyableBuilder<CreateRuleRequest.Builder,CreateRuleRequest>,SdkBuilder<CreateRuleRequest.Builder,CreateRuleRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateRuleRequest
public static interface CreateRuleRequest.Builder extends ConnectRequest.Builder, SdkPojo, CopyableBuilder<CreateRuleRequest.Builder,CreateRuleRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateRuleRequest.Builderactions(Collection<RuleAction> actions)A list of actions to be run when the rule is triggered.CreateRuleRequest.Builderactions(Consumer<RuleAction.Builder>... actions)A list of actions to be run when the rule is triggered.CreateRuleRequest.Builderactions(RuleAction... actions)A list of actions to be run when the rule is triggered.CreateRuleRequest.BuilderclientToken(String clientToken)A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.CreateRuleRequest.Builderfunction(String function)The conditions of the rule.CreateRuleRequest.BuilderinstanceId(String instanceId)The identifier of the Amazon Connect instance.CreateRuleRequest.Buildername(String name)A unique name for the rule.CreateRuleRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)CreateRuleRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)CreateRuleRequest.BuilderpublishStatus(String publishStatus)The publish status of the rule.CreateRuleRequest.BuilderpublishStatus(RulePublishStatus publishStatus)The publish status of the rule.default CreateRuleRequest.BuildertriggerEventSource(Consumer<RuleTriggerEventSource.Builder> triggerEventSource)The event source to trigger the rule.CreateRuleRequest.BuildertriggerEventSource(RuleTriggerEventSource triggerEventSource)The event source to trigger the rule.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.connect.model.ConnectRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
instanceId
CreateRuleRequest.Builder instanceId(String instanceId)
The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.
- Parameters:
instanceId- The identifier of the Amazon Connect instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
CreateRuleRequest.Builder name(String name)
A unique name for the rule.
- Parameters:
name- A unique name for the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggerEventSource
CreateRuleRequest.Builder triggerEventSource(RuleTriggerEventSource triggerEventSource)
The event source to trigger the rule.
- Parameters:
triggerEventSource- The event source to trigger the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
triggerEventSource
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.Builderavoiding the need to create one manually viaRuleTriggerEventSource.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totriggerEventSource(RuleTriggerEventSource).- Parameters:
triggerEventSource- a consumer that will call methods onRuleTriggerEventSource.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
triggerEventSource(RuleTriggerEventSource)
-
function
CreateRuleRequest.Builder function(String function)
The conditions of the rule.
- Parameters:
function- The conditions of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
CreateRuleRequest.Builder actions(Collection<RuleAction> actions)
A list of actions to be run when the rule is triggered.
- Parameters:
actions- A list of actions to be run when the rule is triggered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
CreateRuleRequest.Builder actions(RuleAction... actions)
A list of actions to be run when the rule is triggered.
- Parameters:
actions- A list of actions to be run when the rule is triggered.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
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.Builderavoiding the need to create one manually viaRuleAction.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#actions(List.) - Parameters:
actions- a consumer that will call methods onRuleAction.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#actions(java.util.Collection)
-
publishStatus
CreateRuleRequest.Builder publishStatus(String publishStatus)
The publish status of the rule.
- Parameters:
publishStatus- The publish status of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RulePublishStatus,RulePublishStatus
-
publishStatus
CreateRuleRequest.Builder publishStatus(RulePublishStatus publishStatus)
The publish status of the rule.
- Parameters:
publishStatus- The publish status of the rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RulePublishStatus,RulePublishStatus
-
clientToken
CreateRuleRequest.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.
- Parameters:
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:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
CreateRuleRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateRuleRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-