#[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 ==.