Struct aws_sdk_translate::operation::translate_document::builders::TranslateDocumentOutputBuilder
source · #[non_exhaustive]pub struct TranslateDocumentOutputBuilder { /* private fields */ }
Expand description
A builder for TranslateDocumentOutput
.
Implementations§
source§impl TranslateDocumentOutputBuilder
impl TranslateDocumentOutputBuilder
sourcepub fn translated_document(self, input: TranslatedDocument) -> Self
pub fn translated_document(self, input: TranslatedDocument) -> Self
The document containing the translated content. The document format matches the source document format.
This field is required.sourcepub fn set_translated_document(self, input: Option<TranslatedDocument>) -> Self
pub fn set_translated_document(self, input: Option<TranslatedDocument>) -> Self
The document containing the translated content. The document format matches the source document format.
sourcepub fn get_translated_document(&self) -> &Option<TranslatedDocument>
pub fn get_translated_document(&self) -> &Option<TranslatedDocument>
The document containing the translated content. The document format matches the source document format.
sourcepub fn source_language_code(self, input: impl Into<String>) -> Self
pub fn source_language_code(self, input: impl Into<String>) -> Self
The language code of the source document.
This field is required.sourcepub fn set_source_language_code(self, input: Option<String>) -> Self
pub fn set_source_language_code(self, input: Option<String>) -> Self
The language code of the source document.
sourcepub fn get_source_language_code(&self) -> &Option<String>
pub fn get_source_language_code(&self) -> &Option<String>
The language code of the source document.
sourcepub fn target_language_code(self, input: impl Into<String>) -> Self
pub fn target_language_code(self, input: impl Into<String>) -> Self
The language code of the translated document.
This field is required.sourcepub fn set_target_language_code(self, input: Option<String>) -> Self
pub fn set_target_language_code(self, input: Option<String>) -> Self
The language code of the translated document.
sourcepub fn get_target_language_code(&self) -> &Option<String>
pub fn get_target_language_code(&self) -> &Option<String>
The language code of the translated document.
sourcepub fn applied_terminologies(self, input: AppliedTerminology) -> Self
pub fn applied_terminologies(self, input: AppliedTerminology) -> Self
Appends an item to applied_terminologies
.
To override the contents of this collection use set_applied_terminologies
.
The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.
sourcepub fn set_applied_terminologies(
self,
input: Option<Vec<AppliedTerminology>>
) -> Self
pub fn set_applied_terminologies( self, input: Option<Vec<AppliedTerminology>> ) -> Self
The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.
sourcepub fn get_applied_terminologies(&self) -> &Option<Vec<AppliedTerminology>>
pub fn get_applied_terminologies(&self) -> &Option<Vec<AppliedTerminology>>
The names of the custom terminologies applied to the input text by Amazon Translate to produce the translated text document.
sourcepub fn applied_settings(self, input: TranslationSettings) -> Self
pub fn applied_settings(self, input: TranslationSettings) -> Self
Settings to configure your translation output. You can configure the following options:
-
Brevity: reduces the length of the translation output for most translations. Available for
TranslateText
only. -
Formality: sets the formality level of the translation output.
-
Profanity: masks profane words and phrases in the translation output.
sourcepub fn set_applied_settings(self, input: Option<TranslationSettings>) -> Self
pub fn set_applied_settings(self, input: Option<TranslationSettings>) -> Self
Settings to configure your translation output. You can configure the following options:
-
Brevity: reduces the length of the translation output for most translations. Available for
TranslateText
only. -
Formality: sets the formality level of the translation output.
-
Profanity: masks profane words and phrases in the translation output.
sourcepub fn get_applied_settings(&self) -> &Option<TranslationSettings>
pub fn get_applied_settings(&self) -> &Option<TranslationSettings>
Settings to configure your translation output. You can configure the following options:
-
Brevity: reduces the length of the translation output for most translations. Available for
TranslateText
only. -
Formality: sets the formality level of the translation output.
-
Profanity: masks profane words and phrases in the translation output.
sourcepub fn build(self) -> Result<TranslateDocumentOutput, BuildError>
pub fn build(self) -> Result<TranslateDocumentOutput, BuildError>
Consumes the builder and constructs a TranslateDocumentOutput
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TranslateDocumentOutputBuilder
impl Clone for TranslateDocumentOutputBuilder
source§fn clone(&self) -> TranslateDocumentOutputBuilder
fn clone(&self) -> TranslateDocumentOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TranslateDocumentOutputBuilder
impl Default for TranslateDocumentOutputBuilder
source§fn default() -> TranslateDocumentOutputBuilder
fn default() -> TranslateDocumentOutputBuilder
source§impl PartialEq for TranslateDocumentOutputBuilder
impl PartialEq for TranslateDocumentOutputBuilder
source§fn eq(&self, other: &TranslateDocumentOutputBuilder) -> bool
fn eq(&self, other: &TranslateDocumentOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TranslateDocumentOutputBuilder
Auto Trait Implementations§
impl Freeze for TranslateDocumentOutputBuilder
impl RefUnwindSafe for TranslateDocumentOutputBuilder
impl Send for TranslateDocumentOutputBuilder
impl Sync for TranslateDocumentOutputBuilder
impl Unpin for TranslateDocumentOutputBuilder
impl UnwindSafe for TranslateDocumentOutputBuilder
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