pub struct Builder { /* private fields */ }Expand description
A builder for BatchDetectDominantLanguageItemResult.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_index(self, input: Option<i32>) -> Self
pub fn set_index(self, input: Option<i32>) -> Self
The zero-based index of the document in the input list.
sourcepub fn languages(self, input: DominantLanguage) -> Self
pub fn languages(self, input: DominantLanguage) -> Self
Appends an item to languages.
To override the contents of this collection use set_languages.
One or more DominantLanguage objects describing the dominant languages in the document.
sourcepub fn set_languages(self, input: Option<Vec<DominantLanguage>>) -> Self
pub fn set_languages(self, input: Option<Vec<DominantLanguage>>) -> Self
One or more DominantLanguage objects describing the dominant languages in the document.
sourcepub fn build(self) -> BatchDetectDominantLanguageItemResult
pub fn build(self) -> BatchDetectDominantLanguageItemResult
Consumes the builder and constructs a BatchDetectDominantLanguageItemResult.