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
-
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 AWS Chatbot topic or AWS Chatbot 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 AWS Chatbot client. This parameter is required.- Amazon Simple Notification Service topics are specified as
SNS
. - AWS Chatbot clients are specified as
AWSChatbotSlack
. - AWS Chatbot 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:
build
in interfacesoftware.amazon.jsii.Builder<CfnNotificationRule.TargetProperty>
- Returns:
- a new instance of
CfnNotificationRule.TargetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-