Class CfnTriggerMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.devopsagent.CfnTriggerMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTriggerMixinProps>
- Enclosing interface:
CfnTriggerMixinProps
@Stability(Stable)
public static final class CfnTriggerMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTriggerMixinProps>
A builder for
CfnTriggerMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnTriggerMixinProps.getAction()agentSpaceId(String agentSpaceId) Sets the value ofCfnTriggerMixinProps.getAgentSpaceId()build()Builds the configured instance.condition(CfnTriggerPropsMixin.ConditionProperty condition) Sets the value ofCfnTriggerMixinProps.getCondition()condition(IResolvable condition) Sets the value ofCfnTriggerMixinProps.getCondition()Sets the value ofCfnTriggerMixinProps.getStatus()Sets the value ofCfnTriggerMixinProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
action
Sets the value ofCfnTriggerMixinProps.getAction()- Parameters:
action- The action to perform when the trigger fires. A JSON object containing actionType and task.- Returns:
this
-
agentSpaceId
Sets the value ofCfnTriggerMixinProps.getAgentSpaceId()- Parameters:
agentSpaceId- The unique identifier of the parent Agent Space.- Returns:
this
-
condition
Sets the value ofCfnTriggerMixinProps.getCondition()- Parameters:
condition- The condition that causes the trigger to fire.- Returns:
this
-
condition
@Stability(Stable) public CfnTriggerMixinProps.Builder condition(CfnTriggerPropsMixin.ConditionProperty condition) Sets the value ofCfnTriggerMixinProps.getCondition()- Parameters:
condition- The condition that causes the trigger to fire.- Returns:
this
-
status
Sets the value ofCfnTriggerMixinProps.getStatus()- Parameters:
status- The status of the trigger. Active triggers fire on schedule; Inactive triggers are paused.- Returns:
this
-
type
Sets the value ofCfnTriggerMixinProps.getType()- Parameters:
type- The type of trigger.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnTriggerMixinProps>- Returns:
- a new instance of
CfnTriggerMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-