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