pub struct SendAnnouncement { /* private fields */ }
Expand description
Fluent builder constructing a request to SendAnnouncement
.
Triggers an asynchronous flow to send text, SSML, or audio announcements to rooms that are identified by a search or filter.
Implementations
sourceimpl SendAnnouncement
impl SendAnnouncement
sourcepub async fn send(
self
) -> Result<SendAnnouncementOutput, SdkError<SendAnnouncementError>>
pub async fn send(
self
) -> Result<SendAnnouncementOutput, SdkError<SendAnnouncementError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn room_filters(self, input: Filter) -> Self
pub fn room_filters(self, input: Filter) -> Self
Appends an item to RoomFilters
.
To override the contents of this collection use set_room_filters
.
The filters to use to send an announcement to a specified list of rooms. The supported filter keys are RoomName, ProfileName, RoomArn, and ProfileArn. To send to all rooms, specify an empty RoomFilters list.
sourcepub fn set_room_filters(self, input: Option<Vec<Filter>>) -> Self
pub fn set_room_filters(self, input: Option<Vec<Filter>>) -> Self
The filters to use to send an announcement to a specified list of rooms. The supported filter keys are RoomName, ProfileName, RoomArn, and ProfileArn. To send to all rooms, specify an empty RoomFilters list.
sourcepub fn content(self, input: Content) -> Self
pub fn content(self, input: Content) -> Self
The announcement content. This can contain only one of the three possible announcement types (text, SSML or audio).
sourcepub fn set_content(self, input: Option<Content>) -> Self
pub fn set_content(self, input: Option<Content>) -> Self
The announcement content. This can contain only one of the three possible announcement types (text, SSML or audio).
sourcepub fn time_to_live_in_seconds(self, input: i32) -> Self
pub fn time_to_live_in_seconds(self, input: i32) -> Self
The time to live for an announcement. Default is 300. If delivery doesn't occur within this time, the announcement is not delivered.
sourcepub fn set_time_to_live_in_seconds(self, input: Option<i32>) -> Self
pub fn set_time_to_live_in_seconds(self, input: Option<i32>) -> Self
The time to live for an announcement. Default is 300. If delivery doesn't occur within this time, the announcement is not delivered.
sourcepub fn client_request_token(self, input: impl Into<String>) -> Self
pub fn client_request_token(self, input: impl Into<String>) -> Self
The unique, user-specified identifier for the request that ensures idempotency.
sourcepub fn set_client_request_token(self, input: Option<String>) -> Self
pub fn set_client_request_token(self, input: Option<String>) -> Self
The unique, user-specified identifier for the request that ensures idempotency.
Trait Implementations
sourceimpl Clone for SendAnnouncement
impl Clone for SendAnnouncement
sourcefn clone(&self) -> SendAnnouncement
fn clone(&self) -> SendAnnouncement
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for SendAnnouncement
impl Send for SendAnnouncement
impl Sync for SendAnnouncement
impl Unpin for SendAnnouncement
impl !UnwindSafe for SendAnnouncement
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more