public static final class NotificationRuleProps.Builder
extends java.lang.Object
NotificationRuleProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
NotificationRuleProps |
build()
Builds the configured instance.
|
NotificationRuleProps.Builder |
detailType(DetailType detailType)
Sets the value of
NotificationRuleOptions.getDetailType() |
NotificationRuleProps.Builder |
enabled(java.lang.Boolean enabled)
Sets the value of
NotificationRuleOptions.getEnabled() |
NotificationRuleProps.Builder |
events(java.util.List<java.lang.String> events)
Sets the value of
NotificationRuleProps.getEvents() |
NotificationRuleProps.Builder |
notificationRuleName(java.lang.String notificationRuleName)
Sets the value of
NotificationRuleOptions.getNotificationRuleName() |
NotificationRuleProps.Builder |
source(INotificationRuleSource source)
Sets the value of
NotificationRuleProps.getSource() |
NotificationRuleProps.Builder |
targets(java.util.List<? extends INotificationRuleTarget> targets)
Sets the value of
NotificationRuleProps.getTargets() |
public NotificationRuleProps.Builder events(java.util.List<java.lang.String> events)
NotificationRuleProps.getEvents()
events
- A list of event types associated with this notification rule. This parameter is required.
For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide.this
public NotificationRuleProps.Builder source(INotificationRuleSource source)
NotificationRuleProps.getSource()
source
- The Amazon Resource Name (ARN) of the resource to associate with the notification rule. This parameter is required.
Currently, Supported sources include pipelines in AWS CodePipeline, build projects in AWS CodeBuild, and repositories in AWS CodeCommit in this L2 constructor.this
public NotificationRuleProps.Builder targets(java.util.List<? extends INotificationRuleTarget> targets)
NotificationRuleProps.getTargets()
targets
- The targets to register for the notification destination.this
public NotificationRuleProps.Builder detailType(DetailType detailType)
NotificationRuleOptions.getDetailType()
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.this
public NotificationRuleProps.Builder enabled(java.lang.Boolean enabled)
NotificationRuleOptions.getEnabled()
enabled
- The status of the notification rule.
If the enabled is set to DISABLED, notifications aren't sent for the notification rule.this
public NotificationRuleProps.Builder notificationRuleName(java.lang.String notificationRuleName)
NotificationRuleOptions.getNotificationRuleName()
notificationRuleName
- The name for the notification rule.
Notification rule names must be unique in your AWS account.this
public NotificationRuleProps build()
NotificationRuleProps
java.lang.NullPointerException
- if any required attribute was not provided