Struct aws_sdk_comprehend::operation::detect_toxic_content::builders::DetectToxicContentFluentBuilder
source · pub struct DetectToxicContentFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to DetectToxicContent.
Performs toxicity analysis on the list of text strings that you provide as input. The API response contains a results list that matches the size of the input list. For more information about toxicity detection, see Toxicity detection in the Amazon Comprehend Developer Guide.
Implementations§
source§impl DetectToxicContentFluentBuilder
impl DetectToxicContentFluentBuilder
sourcepub fn as_input(&self) -> &DetectToxicContentInputBuilder
pub fn as_input(&self) -> &DetectToxicContentInputBuilder
Access the DetectToxicContent as a reference.
sourcepub async fn send(
self
) -> Result<DetectToxicContentOutput, SdkError<DetectToxicContentError, HttpResponse>>
pub async fn send( self ) -> Result<DetectToxicContentOutput, SdkError<DetectToxicContentError, 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<DetectToxicContentOutput, DetectToxicContentError, Self>
pub fn customize( self ) -> CustomizableOperation<DetectToxicContentOutput, DetectToxicContentError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn text_segments(self, input: TextSegment) -> Self
pub fn text_segments(self, input: TextSegment) -> Self
Appends an item to TextSegments.
To override the contents of this collection use set_text_segments.
A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.
sourcepub fn set_text_segments(self, input: Option<Vec<TextSegment>>) -> Self
pub fn set_text_segments(self, input: Option<Vec<TextSegment>>) -> Self
A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.
sourcepub fn get_text_segments(&self) -> &Option<Vec<TextSegment>>
pub fn get_text_segments(&self) -> &Option<Vec<TextSegment>>
A list of up to 10 text strings. Each string has a maximum size of 1 KB, and the maximum size of the list is 10 KB.
sourcepub fn language_code(self, input: LanguageCode) -> Self
pub fn language_code(self, input: LanguageCode) -> Self
The language of the input text. Currently, English is the only supported language.
sourcepub fn set_language_code(self, input: Option<LanguageCode>) -> Self
pub fn set_language_code(self, input: Option<LanguageCode>) -> Self
The language of the input text. Currently, English is the only supported language.
sourcepub fn get_language_code(&self) -> &Option<LanguageCode>
pub fn get_language_code(&self) -> &Option<LanguageCode>
The language of the input text. Currently, English is the only supported language.
Trait Implementations§
source§impl Clone for DetectToxicContentFluentBuilder
impl Clone for DetectToxicContentFluentBuilder
source§fn clone(&self) -> DetectToxicContentFluentBuilder
fn clone(&self) -> DetectToxicContentFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more