Class CfnNotificationRulePropsMixin.TargetProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.codestarnotifications.CfnNotificationRulePropsMixin.TargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNotificationRulePropsMixin.TargetProperty>
- Enclosing interface:
CfnNotificationRulePropsMixin.TargetProperty
@Stability(Stable)
public static final class CfnNotificationRulePropsMixin.TargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNotificationRulePropsMixin.TargetProperty>
A builder for
CfnNotificationRulePropsMixin.TargetProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.targetAddress(String targetAddress) Sets the value ofCfnNotificationRulePropsMixin.TargetProperty.getTargetAddress()targetAddress(ITopicRef targetAddress) Sets the value ofCfnNotificationRulePropsMixin.TargetProperty.getTargetAddress()targetType(String targetType) Sets the value ofCfnNotificationRulePropsMixin.TargetProperty.getTargetType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetAddress
@Stability(Stable) public CfnNotificationRulePropsMixin.TargetProperty.Builder targetAddress(String targetAddress) Sets the value ofCfnNotificationRulePropsMixin.TargetProperty.getTargetAddress()- Parameters:
targetAddress- The Amazon Resource Name (ARN) of the topic or client.- Returns:
this
-
targetAddress
@Stability(Stable) public CfnNotificationRulePropsMixin.TargetProperty.Builder targetAddress(ITopicRef targetAddress) Sets the value ofCfnNotificationRulePropsMixin.TargetProperty.getTargetAddress()- Parameters:
targetAddress- The Amazon Resource Name (ARN) of the topic or client.- Returns:
this
-
targetType
@Stability(Stable) public CfnNotificationRulePropsMixin.TargetProperty.Builder targetType(String targetType) Sets the value ofCfnNotificationRulePropsMixin.TargetProperty.getTargetType()- Parameters:
targetType- The target type. Can be an Amazon Simple Notification Service topic or client.- Amazon Simple Notification Service topics are specified as
SNS. - clients are specified as
AWSChatbotSlack. - clients for Microsoft Teams are specified as
AWSChatbotMicrosoftTeams.
- Amazon Simple Notification Service topics are specified as
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnNotificationRulePropsMixin.TargetProperty>- Returns:
- a new instance of
CfnNotificationRulePropsMixin.TargetProperty - Throws:
NullPointerException- if any required attribute was not provided
-