Class CfnNotificationRuleMixinProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.codestarnotifications.mixins.CfnNotificationRuleMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNotificationRuleMixinProps>
- Enclosing interface:
CfnNotificationRuleMixinProps
@Stability(Stable)
public static final class CfnNotificationRuleMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNotificationRuleMixinProps>
A builder for
CfnNotificationRuleMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnNotificationRuleMixinProps.getCreatedBy()detailType(String detailType) Sets the value ofCfnNotificationRuleMixinProps.getDetailType()eventTypeId(String eventTypeId) Sets the value ofCfnNotificationRuleMixinProps.getEventTypeId()eventTypeIds(List<String> eventTypeIds) Sets the value ofCfnNotificationRuleMixinProps.getEventTypeIds()Sets the value ofCfnNotificationRuleMixinProps.getName()Sets the value ofCfnNotificationRuleMixinProps.getResource()Sets the value ofCfnNotificationRuleMixinProps.getStatus()Sets the value ofCfnNotificationRuleMixinProps.getTags()targetAddress(String targetAddress) Sets the value ofCfnNotificationRuleMixinProps.getTargetAddress()Sets the value ofCfnNotificationRuleMixinProps.getTargets()targets(IResolvable targets) Sets the value ofCfnNotificationRuleMixinProps.getTargets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
createdBy
Sets the value ofCfnNotificationRuleMixinProps.getCreatedBy()- Parameters:
createdBy- The name or email alias of the person who created the notification rule.- Returns:
this
-
detailType
Sets the value ofCfnNotificationRuleMixinProps.getDetailType()- Parameters:
detailType- The level of detail to include in the notifications for this resource.BASICwill include only the contents of the event as it would appear in Amazon CloudWatch.FULLwill include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.- Returns:
this
-
eventTypeId
Sets the value ofCfnNotificationRuleMixinProps.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
-
eventTypeIds
@Stability(Stable) public CfnNotificationRuleMixinProps.Builder eventTypeIds(List<String> eventTypeIds) Sets the value ofCfnNotificationRuleMixinProps.getEventTypeIds()- Parameters:
eventTypeIds- A list of event types 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
-
name
Sets the value ofCfnNotificationRuleMixinProps.getName()- Parameters:
name- The name for the notification rule. Notification rule names must be unique in your AWS account .- Returns:
this
-
resource
Sets the value ofCfnNotificationRuleMixinProps.getResource()- Parameters:
resource- The Amazon Resource Name (ARN) of the resource to associate with the notification rule. Supported resources include pipelines in AWS CodePipeline , repositories in AWS CodeCommit , and build projects in AWS CodeBuild .- Returns:
this
-
status
Sets the value ofCfnNotificationRuleMixinProps.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 ofCfnNotificationRuleMixinProps.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 ofCfnNotificationRuleMixinProps.getTargetAddress()- Parameters:
targetAddress- The Amazon Resource Name (ARN) of the Amazon topic or client.- Returns:
this
-
targets
Sets the value ofCfnNotificationRuleMixinProps.getTargets()- Parameters:
targets- A list of Amazon Resource Names (ARNs) of Amazon topics and clients to associate with the notification rule.- Returns:
this
-
targets
@Stability(Stable) public CfnNotificationRuleMixinProps.Builder targets(List<? extends Object> targets) Sets the value ofCfnNotificationRuleMixinProps.getTargets()- Parameters:
targets- A list of Amazon Resource Names (ARNs) of Amazon topics and clients to associate with the notification rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNotificationRuleMixinProps>- Returns:
- a new instance of
CfnNotificationRuleMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-