#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for SendAnnouncementInput
Implementations
sourceimpl Builder
impl Builder
sourcepub fn room_filters(self, input: Filter) -> Self
pub fn room_filters(self, input: Filter) -> Self
Appends an item to room_filters
.
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.
sourcepub fn build(self) -> Result<SendAnnouncementInput, BuildError>
pub fn build(self) -> Result<SendAnnouncementInput, BuildError>
Consumes the builder and constructs a SendAnnouncementInput
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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