Struct aws_sdk_snowball::types::builders::NotificationBuilder
source · #[non_exhaustive]pub struct NotificationBuilder { /* private fields */ }
Expand description
A builder for Notification
.
Implementations§
source§impl NotificationBuilder
impl NotificationBuilder
sourcepub fn sns_topic_arn(self, input: impl Into<String>) -> Self
pub fn sns_topic_arn(self, input: impl Into<String>) -> Self
The new SNS TopicArn
that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.
You can subscribe email addresses to an Amazon SNS topic through the Amazon Web Services Management Console, or by using the Subscribe Amazon Simple Notification Service (Amazon SNS) API action.
sourcepub fn set_sns_topic_arn(self, input: Option<String>) -> Self
pub fn set_sns_topic_arn(self, input: Option<String>) -> Self
The new SNS TopicArn
that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.
You can subscribe email addresses to an Amazon SNS topic through the Amazon Web Services Management Console, or by using the Subscribe Amazon Simple Notification Service (Amazon SNS) API action.
sourcepub fn get_sns_topic_arn(&self) -> &Option<String>
pub fn get_sns_topic_arn(&self) -> &Option<String>
The new SNS TopicArn
that you want to associate with this job. You can create Amazon Resource Names (ARNs) for topics by using the CreateTopic Amazon SNS API action.
You can subscribe email addresses to an Amazon SNS topic through the Amazon Web Services Management Console, or by using the Subscribe Amazon Simple Notification Service (Amazon SNS) API action.
sourcepub fn job_states_to_notify(self, input: JobState) -> Self
pub fn job_states_to_notify(self, input: JobState) -> Self
Appends an item to job_states_to_notify
.
To override the contents of this collection use set_job_states_to_notify
.
The list of job states that will trigger a notification for this job.
sourcepub fn set_job_states_to_notify(self, input: Option<Vec<JobState>>) -> Self
pub fn set_job_states_to_notify(self, input: Option<Vec<JobState>>) -> Self
The list of job states that will trigger a notification for this job.
sourcepub fn get_job_states_to_notify(&self) -> &Option<Vec<JobState>>
pub fn get_job_states_to_notify(&self) -> &Option<Vec<JobState>>
The list of job states that will trigger a notification for this job.
sourcepub fn notify_all(self, input: bool) -> Self
pub fn notify_all(self, input: bool) -> Self
Any change in job state will trigger a notification for this job.
sourcepub fn set_notify_all(self, input: Option<bool>) -> Self
pub fn set_notify_all(self, input: Option<bool>) -> Self
Any change in job state will trigger a notification for this job.
sourcepub fn get_notify_all(&self) -> &Option<bool>
pub fn get_notify_all(&self) -> &Option<bool>
Any change in job state will trigger a notification for this job.
sourcepub fn device_pickup_sns_topic_arn(self, input: impl Into<String>) -> Self
pub fn device_pickup_sns_topic_arn(self, input: impl Into<String>) -> Self
Used to send SNS notifications for the person picking up the device (identified during job creation).
sourcepub fn set_device_pickup_sns_topic_arn(self, input: Option<String>) -> Self
pub fn set_device_pickup_sns_topic_arn(self, input: Option<String>) -> Self
Used to send SNS notifications for the person picking up the device (identified during job creation).
sourcepub fn get_device_pickup_sns_topic_arn(&self) -> &Option<String>
pub fn get_device_pickup_sns_topic_arn(&self) -> &Option<String>
Used to send SNS notifications for the person picking up the device (identified during job creation).
sourcepub fn build(self) -> Notification
pub fn build(self) -> Notification
Consumes the builder and constructs a Notification
.
Trait Implementations§
source§impl Clone for NotificationBuilder
impl Clone for NotificationBuilder
source§fn clone(&self) -> NotificationBuilder
fn clone(&self) -> NotificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NotificationBuilder
impl Debug for NotificationBuilder
source§impl Default for NotificationBuilder
impl Default for NotificationBuilder
source§fn default() -> NotificationBuilder
fn default() -> NotificationBuilder
source§impl PartialEq for NotificationBuilder
impl PartialEq for NotificationBuilder
source§fn eq(&self, other: &NotificationBuilder) -> bool
fn eq(&self, other: &NotificationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.