Struct aws_sdk_comprehend::types::builders::DominantLanguageBuilder
source · #[non_exhaustive]pub struct DominantLanguageBuilder { /* private fields */ }Expand description
A builder for DominantLanguage.
Implementations§
source§impl DominantLanguageBuilder
impl DominantLanguageBuilder
sourcepub fn language_code(self, input: impl Into<String>) -> Self
pub fn language_code(self, input: impl Into<String>) -> Self
The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
sourcepub fn set_language_code(self, input: Option<String>) -> Self
pub fn set_language_code(self, input: Option<String>) -> Self
The RFC 5646 language code for the dominant language. For more information about RFC 5646, see Tags for Identifying Languages on the IETF Tools web site.
sourcepub fn score(self, input: f32) -> Self
pub fn score(self, input: f32) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
sourcepub fn set_score(self, input: Option<f32>) -> Self
pub fn set_score(self, input: Option<f32>) -> Self
The level of confidence that Amazon Comprehend has in the accuracy of the detection.
sourcepub fn build(self) -> DominantLanguage
pub fn build(self) -> DominantLanguage
Consumes the builder and constructs a DominantLanguage.
Trait Implementations§
source§impl Clone for DominantLanguageBuilder
impl Clone for DominantLanguageBuilder
source§fn clone(&self) -> DominantLanguageBuilder
fn clone(&self) -> DominantLanguageBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DominantLanguageBuilder
impl Debug for DominantLanguageBuilder
source§impl Default for DominantLanguageBuilder
impl Default for DominantLanguageBuilder
source§fn default() -> DominantLanguageBuilder
fn default() -> DominantLanguageBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<DominantLanguageBuilder> for DominantLanguageBuilder
impl PartialEq<DominantLanguageBuilder> for DominantLanguageBuilder
source§fn eq(&self, other: &DominantLanguageBuilder) -> bool
fn eq(&self, other: &DominantLanguageBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.