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