Class PipelineNotifyOnOptions.Builder
java.lang.Object
software.amazon.awscdk.services.codepipeline.PipelineNotifyOnOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<PipelineNotifyOnOptions>
- Enclosing interface:
PipelineNotifyOnOptions
@Stability(Stable)
public static final class PipelineNotifyOnOptions.Builder
extends Object
implements software.amazon.jsii.Builder<PipelineNotifyOnOptions>
A builder for
PipelineNotifyOnOptions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofNotificationRuleOptions.getCreatedBy()
detailType
(DetailType detailType) Sets the value ofNotificationRuleOptions.getDetailType()
Sets the value ofNotificationRuleOptions.getEnabled()
events
(List<? extends PipelineNotificationEvents> events) Sets the value ofPipelineNotifyOnOptions.getEvents()
notificationRuleName
(String notificationRuleName) Sets the value ofNotificationRuleOptions.getNotificationRuleName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
events
@Stability(Stable) public PipelineNotifyOnOptions.Builder events(List<? extends PipelineNotificationEvents> events) Sets the value ofPipelineNotifyOnOptions.getEvents()
- Parameters:
events
- A list of event types associated with this notification rule for CodePipeline Pipeline. This parameter is required. For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide.- Returns:
this
-
createdBy
Sets the value ofNotificationRuleOptions.getCreatedBy()
- Parameters:
createdBy
- The name or email alias of the person who created the notification rule. If not specified, it means that the creator's alias is not provided.- Returns:
this
-
detailType
Sets the value ofNotificationRuleOptions.getDetailType()
- Parameters:
detailType
- The level of detail to include in the notifications for this resource. BASIC will include only the contents of the event as it would appear in AWS CloudWatch. FULL will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.- Returns:
this
-
enabled
Sets the value ofNotificationRuleOptions.getEnabled()
- Parameters:
enabled
- The status of the notification rule. If the enabled is set to DISABLED, notifications aren't sent for the notification rule.- Returns:
this
-
notificationRuleName
@Stability(Stable) public PipelineNotifyOnOptions.Builder notificationRuleName(String notificationRuleName) Sets the value ofNotificationRuleOptions.getNotificationRuleName()
- Parameters:
notificationRuleName
- The name for the notification rule. Notification rule names must be unique in your AWS account.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<PipelineNotifyOnOptions>
- Returns:
- a new instance of
PipelineNotifyOnOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-