Class CfnRule.SendNotificationActionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.connect.CfnRule.SendNotificationActionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.SendNotificationActionProperty>
- Enclosing interface:
- CfnRule.SendNotificationActionProperty
@Stability(Stable)
public static final class CfnRule.SendNotificationActionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.SendNotificationActionProperty>
A builder for
CfnRule.SendNotificationActionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnRule.SendNotificationActionProperty.getContent()contentType(String contentType) Sets the value ofCfnRule.SendNotificationActionProperty.getContentType()deliveryMethod(String deliveryMethod) Sets the value ofCfnRule.SendNotificationActionProperty.getDeliveryMethod()recipient(IResolvable recipient) Sets the value ofCfnRule.SendNotificationActionProperty.getRecipient()Sets the value ofCfnRule.SendNotificationActionProperty.getRecipient()Sets the value ofCfnRule.SendNotificationActionProperty.getSubject()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
content
Sets the value ofCfnRule.SendNotificationActionProperty.getContent()- Parameters:
content- Notification content. This parameter is required. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide .- Returns:
this
-
contentType
@Stability(Stable) public CfnRule.SendNotificationActionProperty.Builder contentType(String contentType) Sets the value ofCfnRule.SendNotificationActionProperty.getContentType()- Parameters:
contentType- Content type format. This parameter is required. Allowed value :PLAIN_TEXT- Returns:
this
-
deliveryMethod
@Stability(Stable) public CfnRule.SendNotificationActionProperty.Builder deliveryMethod(String deliveryMethod) Sets the value ofCfnRule.SendNotificationActionProperty.getDeliveryMethod()- Parameters:
deliveryMethod- Notification delivery method. This parameter is required. Allowed value :EMAIL- Returns:
this
-
recipient
@Stability(Stable) public CfnRule.SendNotificationActionProperty.Builder recipient(IResolvable recipient) Sets the value ofCfnRule.SendNotificationActionProperty.getRecipient()- Parameters:
recipient- Notification recipient. This parameter is required.- Returns:
this
-
recipient
@Stability(Stable) public CfnRule.SendNotificationActionProperty.Builder recipient(CfnRule.NotificationRecipientTypeProperty recipient) Sets the value ofCfnRule.SendNotificationActionProperty.getRecipient()- Parameters:
recipient- Notification recipient. This parameter is required.- Returns:
this
-
subject
Sets the value ofCfnRule.SendNotificationActionProperty.getSubject()- Parameters:
subject- The subject of the email if the delivery method isEMAIL. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnRule.SendNotificationActionProperty>- Returns:
- a new instance of
CfnRule.SendNotificationActionProperty - Throws:
NullPointerException- if any required attribute was not provided
-