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 get_language_code(&self) -> &Option<String>
pub fn get_language_code(&self) -> &Option<String>
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 get_score(&self) -> &Option<f32>
pub fn get_score(&self) -> &Option<f32>
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for DominantLanguageBuilder
impl PartialEq for DominantLanguageBuilder
source§fn eq(&self, other: &DominantLanguageBuilder) -> bool
fn eq(&self, other: &DominantLanguageBuilder) -> bool
self and other values to be equal, and is used
by ==.