Struct aws_sdk_datazone::types::builders::NotificationOutputBuilder
source · #[non_exhaustive]pub struct NotificationOutputBuilder { /* private fields */ }Expand description
A builder for NotificationOutput.
Implementations§
source§impl NotificationOutputBuilder
impl NotificationOutputBuilder
sourcepub fn identifier(self, input: impl Into<String>) -> Self
pub fn identifier(self, input: impl Into<String>) -> Self
The identifier of the notification.
This field is required.sourcepub fn set_identifier(self, input: Option<String>) -> Self
pub fn set_identifier(self, input: Option<String>) -> Self
The identifier of the notification.
sourcepub fn get_identifier(&self) -> &Option<String>
pub fn get_identifier(&self) -> &Option<String>
The identifier of the notification.
sourcepub fn domain_identifier(self, input: impl Into<String>) -> Self
pub fn domain_identifier(self, input: impl Into<String>) -> Self
The identifier of a Amazon DataZone domain in which the notification exists.
This field is required.sourcepub fn set_domain_identifier(self, input: Option<String>) -> Self
pub fn set_domain_identifier(self, input: Option<String>) -> Self
The identifier of a Amazon DataZone domain in which the notification exists.
sourcepub fn get_domain_identifier(&self) -> &Option<String>
pub fn get_domain_identifier(&self) -> &Option<String>
The identifier of a Amazon DataZone domain in which the notification exists.
sourcepub fn type(self, input: NotificationType) -> Self
pub fn type(self, input: NotificationType) -> Self
The type of the notification.
This field is required.sourcepub fn set_type(self, input: Option<NotificationType>) -> Self
pub fn set_type(self, input: Option<NotificationType>) -> Self
The type of the notification.
sourcepub fn get_type(&self) -> &Option<NotificationType>
pub fn get_type(&self) -> &Option<NotificationType>
The type of the notification.
sourcepub fn topic(self, input: Topic) -> Self
pub fn topic(self, input: Topic) -> Self
The topic of the notification.
This field is required.sourcepub fn title(self, input: impl Into<String>) -> Self
pub fn title(self, input: impl Into<String>) -> Self
The title of the notification.
This field is required.sourcepub fn message(self, input: impl Into<String>) -> Self
pub fn message(self, input: impl Into<String>) -> Self
The message included in the notification.
This field is required.sourcepub fn set_message(self, input: Option<String>) -> Self
pub fn set_message(self, input: Option<String>) -> Self
The message included in the notification.
sourcepub fn get_message(&self) -> &Option<String>
pub fn get_message(&self) -> &Option<String>
The message included in the notification.
sourcepub fn status(self, input: TaskStatus) -> Self
pub fn status(self, input: TaskStatus) -> Self
The status included in the notification.
sourcepub fn set_status(self, input: Option<TaskStatus>) -> Self
pub fn set_status(self, input: Option<TaskStatus>) -> Self
The status included in the notification.
sourcepub fn get_status(&self) -> &Option<TaskStatus>
pub fn get_status(&self) -> &Option<TaskStatus>
The status included in the notification.
sourcepub fn action_link(self, input: impl Into<String>) -> Self
pub fn action_link(self, input: impl Into<String>) -> Self
The action link included in the notification.
This field is required.sourcepub fn set_action_link(self, input: Option<String>) -> Self
pub fn set_action_link(self, input: Option<String>) -> Self
The action link included in the notification.
sourcepub fn get_action_link(&self) -> &Option<String>
pub fn get_action_link(&self) -> &Option<String>
The action link included in the notification.
sourcepub fn creation_timestamp(self, input: DateTime) -> Self
pub fn creation_timestamp(self, input: DateTime) -> Self
The timestamp of when a notification was created.
This field is required.sourcepub fn set_creation_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_creation_timestamp(self, input: Option<DateTime>) -> Self
The timestamp of when a notification was created.
sourcepub fn get_creation_timestamp(&self) -> &Option<DateTime>
pub fn get_creation_timestamp(&self) -> &Option<DateTime>
The timestamp of when a notification was created.
sourcepub fn last_updated_timestamp(self, input: DateTime) -> Self
pub fn last_updated_timestamp(self, input: DateTime) -> Self
The timestamp of when the notification was last updated.
This field is required.sourcepub fn set_last_updated_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_last_updated_timestamp(self, input: Option<DateTime>) -> Self
The timestamp of when the notification was last updated.
sourcepub fn get_last_updated_timestamp(&self) -> &Option<DateTime>
pub fn get_last_updated_timestamp(&self) -> &Option<DateTime>
The timestamp of when the notification was last updated.
sourcepub fn metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn metadata(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to metadata.
To override the contents of this collection use set_metadata.
The metadata included in the notification.
sourcepub fn set_metadata(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_metadata(self, input: Option<HashMap<String, String>>) -> Self
The metadata included in the notification.
sourcepub fn get_metadata(&self) -> &Option<HashMap<String, String>>
pub fn get_metadata(&self) -> &Option<HashMap<String, String>>
The metadata included in the notification.
sourcepub fn build(self) -> Result<NotificationOutput, BuildError>
pub fn build(self) -> Result<NotificationOutput, BuildError>
Consumes the builder and constructs a NotificationOutput.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for NotificationOutputBuilder
impl Clone for NotificationOutputBuilder
source§fn clone(&self) -> NotificationOutputBuilder
fn clone(&self) -> NotificationOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for NotificationOutputBuilder
impl Debug for NotificationOutputBuilder
source§impl Default for NotificationOutputBuilder
impl Default for NotificationOutputBuilder
source§fn default() -> NotificationOutputBuilder
fn default() -> NotificationOutputBuilder
impl StructuralPartialEq for NotificationOutputBuilder
Auto Trait Implementations§
impl Freeze for NotificationOutputBuilder
impl RefUnwindSafe for NotificationOutputBuilder
impl Send for NotificationOutputBuilder
impl Sync for NotificationOutputBuilder
impl Unpin for NotificationOutputBuilder
impl UnwindSafe for NotificationOutputBuilder
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