Class ProjectNotifyOnOptions.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.ProjectNotifyOnOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ProjectNotifyOnOptions>
- Enclosing interface:
ProjectNotifyOnOptions
@Stability(Stable)
public static final class ProjectNotifyOnOptions.Builder
extends Object
implements software.amazon.jsii.Builder<ProjectNotifyOnOptions>
A builder for
ProjectNotifyOnOptions
-
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 ProjectNotificationEvents> events) Sets the value ofProjectNotifyOnOptions.getEvents()
notificationRuleName
(String notificationRuleName) Sets the value ofNotificationRuleOptions.getNotificationRuleName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
events
@Stability(Stable) public ProjectNotifyOnOptions.Builder events(List<? extends ProjectNotificationEvents> events) Sets the value ofProjectNotifyOnOptions.getEvents()
- Parameters:
events
- A list of event types associated with this notification rule for CodeBuild Project. 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 ProjectNotifyOnOptions.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<ProjectNotifyOnOptions>
- Returns:
- a new instance of
ProjectNotifyOnOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-