Class CfnNotificationRuleProps.Builder
java.lang.Object
software.amazon.awscdk.services.codestarnotifications.CfnNotificationRuleProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNotificationRuleProps>
- Enclosing interface:
CfnNotificationRuleProps
@Stability(Stable)
public static final class CfnNotificationRuleProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNotificationRuleProps>
A builder for
CfnNotificationRuleProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnNotificationRuleProps.getCreatedBy()
detailType
(String detailType) Sets the value ofCfnNotificationRuleProps.getDetailType()
eventTypeId
(String eventTypeId) Sets the value ofCfnNotificationRuleProps.getEventTypeId()
eventTypeIds
(List<String> eventTypeIds) Sets the value ofCfnNotificationRuleProps.getEventTypeIds()
Sets the value ofCfnNotificationRuleProps.getName()
Sets the value ofCfnNotificationRuleProps.getResource()
Sets the value ofCfnNotificationRuleProps.getStatus()
Sets the value ofCfnNotificationRuleProps.getTags()
targetAddress
(String targetAddress) Sets the value ofCfnNotificationRuleProps.getTargetAddress()
Sets the value ofCfnNotificationRuleProps.getTargets()
targets
(IResolvable targets) Sets the value ofCfnNotificationRuleProps.getTargets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
detailType
Sets the value ofCfnNotificationRuleProps.getDetailType()
- Parameters:
detailType
- The level of detail to include in the notifications for this resource. This parameter is required.BASIC
will include only the contents of the event as it would appear in Amazon 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
-
eventTypeIds
Sets the value ofCfnNotificationRuleProps.getEventTypeIds()
- Parameters:
eventTypeIds
- 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 .- Returns:
this
-
name
Sets the value ofCfnNotificationRuleProps.getName()
- Parameters:
name
- The name for the notification rule. This parameter is required. Notification rule names must be unique in your AWS account .- Returns:
this
-
resource
Sets the value ofCfnNotificationRuleProps.getResource()
- Parameters:
resource
- The Amazon Resource Name (ARN) of the resource to associate with the notification rule. This parameter is required. Supported resources include pipelines in AWS CodePipeline , repositories in AWS CodeCommit , and build projects in AWS CodeBuild .- Returns:
this
-
targets
Sets the value ofCfnNotificationRuleProps.getTargets()
- Parameters:
targets
- A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule. This parameter is required.- Returns:
this
-
targets
Sets the value ofCfnNotificationRuleProps.getTargets()
- Parameters:
targets
- A list of Amazon Resource Names (ARNs) of Amazon SNS topics and AWS Chatbot clients to associate with the notification rule. This parameter is required.- Returns:
this
-
createdBy
Sets the value ofCfnNotificationRuleProps.getCreatedBy()
- Parameters:
createdBy
- The name or email alias of the person who created the notification rule.- Returns:
this
-
eventTypeId
Sets the value ofCfnNotificationRuleProps.getEventTypeId()
- Parameters:
eventTypeId
- The event type associated with this notification rule. For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide .- Returns:
this
-
status
Sets the value ofCfnNotificationRuleProps.getStatus()
- Parameters:
status
- The status of the notification rule. The default value isENABLED
. If the status is set toDISABLED
, notifications aren't sent for the notification rule.- Returns:
this
-
tags
Sets the value ofCfnNotificationRuleProps.getTags()
- Parameters:
tags
- A list of tags to apply to this notification rule. Key names cannot start with "aws
".- Returns:
this
-
targetAddress
Sets the value ofCfnNotificationRuleProps.getTargetAddress()
- Parameters:
targetAddress
- The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnNotificationRuleProps>
- Returns:
- a new instance of
CfnNotificationRuleProps
- Throws:
NullPointerException
- if any required attribute was not provided
-