Class CfnDeploymentGroup.TriggerConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codedeploy.CfnDeploymentGroup.TriggerConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDeploymentGroup.TriggerConfigProperty>
- Enclosing interface:
CfnDeploymentGroup.TriggerConfigProperty
@Stability(Stable)
public static final class CfnDeploymentGroup.TriggerConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDeploymentGroup.TriggerConfigProperty>
A builder for
CfnDeploymentGroup.TriggerConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.triggerEvents
(List<String> triggerEvents) Sets the value ofCfnDeploymentGroup.TriggerConfigProperty.getTriggerEvents()
triggerName
(String triggerName) Sets the value ofCfnDeploymentGroup.TriggerConfigProperty.getTriggerName()
triggerTargetArn
(String triggerTargetArn) Sets the value ofCfnDeploymentGroup.TriggerConfigProperty.getTriggerTargetArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
triggerEvents
@Stability(Stable) public CfnDeploymentGroup.TriggerConfigProperty.Builder triggerEvents(List<String> triggerEvents) Sets the value ofCfnDeploymentGroup.TriggerConfigProperty.getTriggerEvents()
- Parameters:
triggerEvents
- The event type or types that trigger notifications.- Returns:
this
-
triggerName
@Stability(Stable) public CfnDeploymentGroup.TriggerConfigProperty.Builder triggerName(String triggerName) Sets the value ofCfnDeploymentGroup.TriggerConfigProperty.getTriggerName()
- Parameters:
triggerName
- The name of the notification trigger.- Returns:
this
-
triggerTargetArn
@Stability(Stable) public CfnDeploymentGroup.TriggerConfigProperty.Builder triggerTargetArn(String triggerTargetArn) Sets the value ofCfnDeploymentGroup.TriggerConfigProperty.getTriggerTargetArn()
- Parameters:
triggerTargetArn
- The Amazon Resource Name (ARN) of the Amazon Simple Notification Service topic through which notifications about deployment or instance events are sent.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDeploymentGroup.TriggerConfigProperty>
- Returns:
- a new instance of
CfnDeploymentGroup.TriggerConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-