#[non_exhaustive]pub struct AppliedTerminologyBuilder { /* private fields */ }Expand description
A builder for AppliedTerminology.
Implementations§
source§impl AppliedTerminologyBuilder
impl AppliedTerminologyBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the custom terminology applied to the input text by Amazon Translate for the translated text response.
sourcepub fn terms(self, input: Term) -> Self
pub fn terms(self, input: Term) -> Self
Appends an item to terms.
To override the contents of this collection use set_terms.
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
sourcepub fn set_terms(self, input: Option<Vec<Term>>) -> Self
pub fn set_terms(self, input: Option<Vec<Term>>) -> Self
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
sourcepub fn get_terms(&self) -> &Option<Vec<Term>>
pub fn get_terms(&self) -> &Option<Vec<Term>>
The specific terms of the custom terminology applied to the input text by Amazon Translate for the translated text response. A maximum of 250 terms will be returned, and the specific terms applied will be the first 250 terms in the source text.
sourcepub fn build(self) -> AppliedTerminology
pub fn build(self) -> AppliedTerminology
Consumes the builder and constructs a AppliedTerminology.
Trait Implementations§
source§impl Clone for AppliedTerminologyBuilder
impl Clone for AppliedTerminologyBuilder
source§fn clone(&self) -> AppliedTerminologyBuilder
fn clone(&self) -> AppliedTerminologyBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AppliedTerminologyBuilder
impl Debug for AppliedTerminologyBuilder
source§impl Default for AppliedTerminologyBuilder
impl Default for AppliedTerminologyBuilder
source§fn default() -> AppliedTerminologyBuilder
fn default() -> AppliedTerminologyBuilder
source§impl PartialEq<AppliedTerminologyBuilder> for AppliedTerminologyBuilder
impl PartialEq<AppliedTerminologyBuilder> for AppliedTerminologyBuilder
source§fn eq(&self, other: &AppliedTerminologyBuilder) -> bool
fn eq(&self, other: &AppliedTerminologyBuilder) -> bool
self and other values to be equal, and is used
by ==.