Struct aws_sdk_alexaforbusiness::operation::send_announcement::builders::SendAnnouncementFluentBuilder
source · pub struct SendAnnouncementFluentBuilder { /* 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§
source§impl SendAnnouncementFluentBuilder
impl SendAnnouncementFluentBuilder
sourcepub fn as_input(&self) -> &SendAnnouncementInputBuilder
pub fn as_input(&self) -> &SendAnnouncementInputBuilder
Access the SendAnnouncement as a reference.
sourcepub async fn send(
self
) -> Result<SendAnnouncementOutput, SdkError<SendAnnouncementError, HttpResponse>>
pub async fn send( self ) -> Result<SendAnnouncementOutput, SdkError<SendAnnouncementError, HttpResponse>>
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 customize(
self
) -> CustomizableOperation<SendAnnouncementOutput, SendAnnouncementError, Self>
pub fn customize( self ) -> CustomizableOperation<SendAnnouncementOutput, SendAnnouncementError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 get_room_filters(&self) -> &Option<Vec<Filter>>
pub fn get_room_filters(&self) -> &Option<Vec<Filter>>
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 get_content(&self) -> &Option<Content>
pub fn get_content(&self) -> &Option<Content>
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 get_time_to_live_in_seconds(&self) -> &Option<i32>
pub fn get_time_to_live_in_seconds(&self) -> &Option<i32>
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.
sourcepub fn get_client_request_token(&self) -> &Option<String>
pub fn get_client_request_token(&self) -> &Option<String>
The unique, user-specified identifier for the request that ensures idempotency.
Trait Implementations§
source§impl Clone for SendAnnouncementFluentBuilder
impl Clone for SendAnnouncementFluentBuilder
source§fn clone(&self) -> SendAnnouncementFluentBuilder
fn clone(&self) -> SendAnnouncementFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for SendAnnouncementFluentBuilder
impl !RefUnwindSafe for SendAnnouncementFluentBuilder
impl Send for SendAnnouncementFluentBuilder
impl Sync for SendAnnouncementFluentBuilder
impl Unpin for SendAnnouncementFluentBuilder
impl !UnwindSafe for SendAnnouncementFluentBuilder
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> 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