public static final class ProjectNotifyOnOptions.Builder
extends java.lang.Object
ProjectNotifyOnOptions
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ProjectNotifyOnOptions |
build()
Builds the configured instance.
|
ProjectNotifyOnOptions.Builder |
detailType(DetailType detailType)
Sets the value of
NotificationRuleOptions.getDetailType() |
ProjectNotifyOnOptions.Builder |
enabled(java.lang.Boolean enabled)
Sets the value of
NotificationRuleOptions.getEnabled() |
ProjectNotifyOnOptions.Builder |
events(java.util.List<? extends ProjectNotificationEvents> events)
Sets the value of
ProjectNotifyOnOptions.getEvents() |
ProjectNotifyOnOptions.Builder |
notificationRuleName(java.lang.String notificationRuleName)
Sets the value of
NotificationRuleOptions.getNotificationRuleName() |
public ProjectNotifyOnOptions.Builder events(java.util.List<? extends ProjectNotificationEvents> events)
ProjectNotifyOnOptions.getEvents()
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.this
public ProjectNotifyOnOptions.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 ProjectNotifyOnOptions.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 ProjectNotifyOnOptions.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 ProjectNotifyOnOptions build()
ProjectNotifyOnOptions
java.lang.NullPointerException
- if any required attribute was not provided