#[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 ==.impl StructuralPartialEq for SendNotificationActionDefinitionBuilder
Auto Trait Implementations§
impl Freeze for SendNotificationActionDefinitionBuilder
impl RefUnwindSafe for SendNotificationActionDefinitionBuilder
impl Send for SendNotificationActionDefinitionBuilder
impl Sync for SendNotificationActionDefinitionBuilder
impl Unpin for SendNotificationActionDefinitionBuilder
impl UnwindSafe for SendNotificationActionDefinitionBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more