#[non_exhaustive]pub struct MessageReviewHandlerBuilder { /* private fields */ }Expand description
A builder for MessageReviewHandler.
Implementations§
source§impl MessageReviewHandlerBuilder
impl MessageReviewHandlerBuilder
sourcepub fn uri(self, input: impl Into<String>) -> Self
pub fn uri(self, input: impl Into<String>) -> Self
Identifier of the message review handler. Currently this must be an ARN of a lambda function.
sourcepub fn set_uri(self, input: Option<String>) -> Self
pub fn set_uri(self, input: Option<String>) -> Self
Identifier of the message review handler. Currently this must be an ARN of a lambda function.
sourcepub fn get_uri(&self) -> &Option<String>
pub fn get_uri(&self) -> &Option<String>
Identifier of the message review handler. Currently this must be an ARN of a lambda function.
sourcepub fn fallback_result(self, input: FallbackResult) -> Self
pub fn fallback_result(self, input: FallbackResult) -> Self
Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If allowed, the message is delivered with returned content to all users connected to the room. If denied, the message is not delivered to any user. Default: ALLOW.
sourcepub fn set_fallback_result(self, input: Option<FallbackResult>) -> Self
pub fn set_fallback_result(self, input: Option<FallbackResult>) -> Self
Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If allowed, the message is delivered with returned content to all users connected to the room. If denied, the message is not delivered to any user. Default: ALLOW.
sourcepub fn get_fallback_result(&self) -> &Option<FallbackResult>
pub fn get_fallback_result(&self) -> &Option<FallbackResult>
Specifies the fallback behavior (whether the message is allowed or denied) if the handler does not return a valid response, encounters an error, or times out. (For the timeout period, see Service Quotas.) If allowed, the message is delivered with returned content to all users connected to the room. If denied, the message is not delivered to any user. Default: ALLOW.
sourcepub fn build(self) -> MessageReviewHandler
pub fn build(self) -> MessageReviewHandler
Consumes the builder and constructs a MessageReviewHandler.
Trait Implementations§
source§impl Clone for MessageReviewHandlerBuilder
impl Clone for MessageReviewHandlerBuilder
source§fn clone(&self) -> MessageReviewHandlerBuilder
fn clone(&self) -> MessageReviewHandlerBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MessageReviewHandlerBuilder
impl Debug for MessageReviewHandlerBuilder
source§impl Default for MessageReviewHandlerBuilder
impl Default for MessageReviewHandlerBuilder
source§fn default() -> MessageReviewHandlerBuilder
fn default() -> MessageReviewHandlerBuilder
source§impl PartialEq for MessageReviewHandlerBuilder
impl PartialEq for MessageReviewHandlerBuilder
source§fn eq(&self, other: &MessageReviewHandlerBuilder) -> bool
fn eq(&self, other: &MessageReviewHandlerBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MessageReviewHandlerBuilder
Auto Trait Implementations§
impl Freeze for MessageReviewHandlerBuilder
impl RefUnwindSafe for MessageReviewHandlerBuilder
impl Send for MessageReviewHandlerBuilder
impl Sync for MessageReviewHandlerBuilder
impl Unpin for MessageReviewHandlerBuilder
impl UnwindSafe for MessageReviewHandlerBuilder
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