#[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 ==
.impl StructuralPartialEq for DetectSyntaxInputBuilder
Auto Trait Implementations§
impl Freeze for DetectSyntaxInputBuilder
impl RefUnwindSafe for DetectSyntaxInputBuilder
impl Send for DetectSyntaxInputBuilder
impl Sync for DetectSyntaxInputBuilder
impl Unpin for DetectSyntaxInputBuilder
impl UnwindSafe for DetectSyntaxInputBuilder
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