Class CfnNotificationRule.TargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codestarnotifications.CfnNotificationRule.TargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnNotificationRule.TargetProperty>
- Enclosing interface:
CfnNotificationRule.TargetProperty
@Stability(Stable)
public static final class CfnNotificationRule.TargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnNotificationRule.TargetProperty>
A builder for
CfnNotificationRule.TargetProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.targetAddress(String targetAddress) Sets the value ofCfnNotificationRule.TargetProperty.getTargetAddress()targetType(String targetType) Sets the value ofCfnNotificationRule.TargetProperty.getTargetType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetAddress
@Stability(Stable) public CfnNotificationRule.TargetProperty.Builder targetAddress(String targetAddress) Sets the value ofCfnNotificationRule.TargetProperty.getTargetAddress()- Parameters:
targetAddress- The Amazon Resource Name (ARN) of the topic or client. This parameter is required.- Returns:
this
-
targetType
Sets the value ofCfnNotificationRule.TargetProperty.getTargetType()- Parameters:
targetType- The target type. Can be an Amazon Simple Notification Service topic or client. This parameter is required.- 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<CfnNotificationRule.TargetProperty>- Returns:
- a new instance of
CfnNotificationRule.TargetProperty - Throws:
NullPointerException- if any required attribute was not provided
-