Class NotificationRuleTargetConfig.Builder
java.lang.Object
software.amazon.awscdk.services.codestarnotifications.NotificationRuleTargetConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NotificationRuleTargetConfig>
- Enclosing interface:
NotificationRuleTargetConfig
@Stability(Stable)
public static final class NotificationRuleTargetConfig.Builder
extends Object
implements software.amazon.jsii.Builder<NotificationRuleTargetConfig>
A builder for
NotificationRuleTargetConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.targetAddress
(String targetAddress) Sets the value ofNotificationRuleTargetConfig.getTargetAddress()
targetType
(String targetType) Sets the value ofNotificationRuleTargetConfig.getTargetType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetAddress
Sets the value ofNotificationRuleTargetConfig.getTargetAddress()
- Parameters:
targetAddress
- The Amazon Resource Name (ARN) of the Amazon SNS topic or AWS Chatbot client. This parameter is required.- Returns:
this
-
targetType
Sets the value ofNotificationRuleTargetConfig.getTargetType()
- Parameters:
targetType
- The target type. This parameter is required. Can be an Amazon SNS topic or AWS Chatbot client.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<NotificationRuleTargetConfig>
- Returns:
- a new instance of
NotificationRuleTargetConfig
- Throws:
NullPointerException
- if any required attribute was not provided
-