Class NotificationRuleOptions.Builder
java.lang.Object
software.amazon.awscdk.services.codestarnotifications.NotificationRuleOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NotificationRuleOptions>
- Enclosing interface:
NotificationRuleOptions
@Stability(Stable)
public static final class NotificationRuleOptions.Builder
extends Object
implements software.amazon.jsii.Builder<NotificationRuleOptions>
A builder for
NotificationRuleOptions
-
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()
notificationRuleName
(String notificationRuleName) Sets the value ofNotificationRuleOptions.getNotificationRuleName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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 NotificationRuleOptions.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<NotificationRuleOptions>
- Returns:
- a new instance of
NotificationRuleOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-