Class CfnRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRuleProps>
- Enclosing interface:
CfnRuleProps
@Stability(Stable)
public static final class CfnRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRuleProps>
A builder for
CfnRuleProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionactions
(IResolvable actions) Sets the value ofCfnRuleProps.getActions()
actions
(CfnRule.ActionsProperty actions) Sets the value ofCfnRuleProps.getActions()
build()
Builds the configured instance.Sets the value ofCfnRuleProps.getFunction()
instanceArn
(String instanceArn) Sets the value ofCfnRuleProps.getInstanceArn()
Sets the value ofCfnRuleProps.getName()
publishStatus
(String publishStatus) Sets the value ofCfnRuleProps.getPublishStatus()
Sets the value ofCfnRuleProps.getTags()
triggerEventSource
(IResolvable triggerEventSource) Sets the value ofCfnRuleProps.getTriggerEventSource()
triggerEventSource
(CfnRule.RuleTriggerEventSourceProperty triggerEventSource) Sets the value ofCfnRuleProps.getTriggerEventSource()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Sets the value ofCfnRuleProps.getActions()
- Parameters:
actions
- A list of actions to be run when the rule is triggered. This parameter is required.- Returns:
this
-
actions
Sets the value ofCfnRuleProps.getActions()
- Parameters:
actions
- A list of actions to be run when the rule is triggered. This parameter is required.- Returns:
this
-
function
Sets the value ofCfnRuleProps.getFunction()
- Parameters:
function
- The conditions of the rule. This parameter is required.- Returns:
this
-
instanceArn
Sets the value ofCfnRuleProps.getInstanceArn()
- Parameters:
instanceArn
- The Amazon Resource Name (ARN) of the instance. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnRuleProps.getName()
- Parameters:
name
- The name of the rule. This parameter is required.- Returns:
this
-
publishStatus
Sets the value ofCfnRuleProps.getPublishStatus()
- Parameters:
publishStatus
- The publish status of the rule. This parameter is required. Allowed values :DRAFT
|PUBLISHED
- Returns:
this
-
triggerEventSource
Sets the value ofCfnRuleProps.getTriggerEventSource()
- Parameters:
triggerEventSource
- The event source to trigger the rule. This parameter is required.- Returns:
this
-
triggerEventSource
@Stability(Stable) public CfnRuleProps.Builder triggerEventSource(CfnRule.RuleTriggerEventSourceProperty triggerEventSource) Sets the value ofCfnRuleProps.getTriggerEventSource()
- Parameters:
triggerEventSource
- The event source to trigger the rule. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnRuleProps.getTags()
- Parameters:
tags
- The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRuleProps>
- Returns:
- a new instance of
CfnRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-