#[non_exhaustive]pub struct DetectSyntaxInputBuilder { /* private fields */ }
Expand description
A builder for DetectSyntaxInput
.
Implementations§
source§impl DetectSyntaxInputBuilder
impl DetectSyntaxInputBuilder
sourcepub fn text(self, input: impl Into<String>) -> Self
pub fn text(self, input: impl Into<String>) -> Self
A UTF-8 string. The maximum string size is 5 KB.
This field is required.sourcepub fn set_text(self, input: Option<String>) -> Self
pub fn set_text(self, input: Option<String>) -> Self
A UTF-8 string. The maximum string size is 5 KB.
sourcepub fn language_code(self, input: SyntaxLanguageCode) -> Self
pub fn language_code(self, input: SyntaxLanguageCode) -> Self
The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
This field is required.sourcepub fn set_language_code(self, input: Option<SyntaxLanguageCode>) -> Self
pub fn set_language_code(self, input: Option<SyntaxLanguageCode>) -> Self
The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
sourcepub fn get_language_code(&self) -> &Option<SyntaxLanguageCode>
pub fn get_language_code(&self) -> &Option<SyntaxLanguageCode>
The language code of the input documents. You can specify any of the following languages supported by Amazon Comprehend: German ("de"), English ("en"), Spanish ("es"), French ("fr"), Italian ("it"), or Portuguese ("pt").
sourcepub fn build(self) -> Result<DetectSyntaxInput, BuildError>
pub fn build(self) -> Result<DetectSyntaxInput, BuildError>
Consumes the builder and constructs a DetectSyntaxInput
.
source§impl DetectSyntaxInputBuilder
impl DetectSyntaxInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<DetectSyntaxOutput, SdkError<DetectSyntaxError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<DetectSyntaxOutput, SdkError<DetectSyntaxError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for DetectSyntaxInputBuilder
impl Clone for DetectSyntaxInputBuilder
source§fn clone(&self) -> DetectSyntaxInputBuilder
fn clone(&self) -> DetectSyntaxInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DetectSyntaxInputBuilder
impl Debug for DetectSyntaxInputBuilder
source§impl Default for DetectSyntaxInputBuilder
impl Default for DetectSyntaxInputBuilder
source§fn default() -> DetectSyntaxInputBuilder
fn default() -> DetectSyntaxInputBuilder
source§impl PartialEq for DetectSyntaxInputBuilder
impl PartialEq for DetectSyntaxInputBuilder
source§fn eq(&self, other: &DetectSyntaxInputBuilder) -> bool
fn eq(&self, other: &DetectSyntaxInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.