#[non_exhaustive]pub struct SendNotificationActionDefinitionBuilder { /* private fields */ }
Expand description
A builder for SendNotificationActionDefinition
.
Implementations§
source§impl SendNotificationActionDefinitionBuilder
impl SendNotificationActionDefinitionBuilder
sourcepub fn delivery_method(self, input: NotificationDeliveryType) -> Self
pub fn delivery_method(self, input: NotificationDeliveryType) -> Self
Notification delivery method.
This field is required.sourcepub fn set_delivery_method(
self,
input: Option<NotificationDeliveryType>
) -> Self
pub fn set_delivery_method( self, input: Option<NotificationDeliveryType> ) -> Self
Notification delivery method.
sourcepub fn get_delivery_method(&self) -> &Option<NotificationDeliveryType>
pub fn get_delivery_method(&self) -> &Option<NotificationDeliveryType>
Notification delivery method.
sourcepub fn subject(self, input: impl Into<String>) -> Self
pub fn subject(self, input: impl Into<String>) -> Self
The subject of the email if the delivery method is EMAIL
. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide.
sourcepub fn set_subject(self, input: Option<String>) -> Self
pub fn set_subject(self, input: Option<String>) -> Self
The subject of the email if the delivery method is EMAIL
. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide.
sourcepub fn get_subject(&self) -> &Option<String>
pub fn get_subject(&self) -> &Option<String>
The subject of the email if the delivery method is EMAIL
. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide.
sourcepub fn content(self, input: impl Into<String>) -> Self
pub fn content(self, input: impl Into<String>) -> Self
Notification content. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide.
This field is required.sourcepub fn set_content(self, input: Option<String>) -> Self
pub fn set_content(self, input: Option<String>) -> Self
Notification content. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide.
sourcepub fn get_content(&self) -> &Option<String>
pub fn get_content(&self) -> &Option<String>
Notification content. Supports variable injection. For more information, see JSONPath reference in the Amazon Connect Administrators Guide.
sourcepub fn content_type(self, input: NotificationContentType) -> Self
pub fn content_type(self, input: NotificationContentType) -> Self
Content type format.
This field is required.sourcepub fn set_content_type(self, input: Option<NotificationContentType>) -> Self
pub fn set_content_type(self, input: Option<NotificationContentType>) -> Self
Content type format.
sourcepub fn get_content_type(&self) -> &Option<NotificationContentType>
pub fn get_content_type(&self) -> &Option<NotificationContentType>
Content type format.
sourcepub fn recipient(self, input: NotificationRecipientType) -> Self
pub fn recipient(self, input: NotificationRecipientType) -> Self
Notification recipient.
This field is required.sourcepub fn set_recipient(self, input: Option<NotificationRecipientType>) -> Self
pub fn set_recipient(self, input: Option<NotificationRecipientType>) -> Self
Notification recipient.
sourcepub fn get_recipient(&self) -> &Option<NotificationRecipientType>
pub fn get_recipient(&self) -> &Option<NotificationRecipientType>
Notification recipient.
sourcepub fn build(self) -> Result<SendNotificationActionDefinition, BuildError>
pub fn build(self) -> Result<SendNotificationActionDefinition, BuildError>
Consumes the builder and constructs a SendNotificationActionDefinition
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SendNotificationActionDefinitionBuilder
impl Clone for SendNotificationActionDefinitionBuilder
source§fn clone(&self) -> SendNotificationActionDefinitionBuilder
fn clone(&self) -> SendNotificationActionDefinitionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SendNotificationActionDefinitionBuilder
impl Default for SendNotificationActionDefinitionBuilder
source§fn default() -> SendNotificationActionDefinitionBuilder
fn default() -> SendNotificationActionDefinitionBuilder
source§impl PartialEq for SendNotificationActionDefinitionBuilder
impl PartialEq for SendNotificationActionDefinitionBuilder
source§fn eq(&self, other: &SendNotificationActionDefinitionBuilder) -> bool
fn eq(&self, other: &SendNotificationActionDefinitionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.