Struct aws_sdk_translate::types::builders::TerminologyDataBuilder
source · #[non_exhaustive]pub struct TerminologyDataBuilder { /* private fields */ }
Expand description
A builder for TerminologyData
.
Implementations§
source§impl TerminologyDataBuilder
impl TerminologyDataBuilder
sourcepub fn file(self, input: Blob) -> Self
pub fn file(self, input: Blob) -> Self
The file containing the custom terminology data. Your version of the AWS SDK performs a Base64-encoding on this field before sending a request to the AWS service. Users of the SDK should not perform Base64-encoding themselves.
This field is required.sourcepub fn set_file(self, input: Option<Blob>) -> Self
pub fn set_file(self, input: Option<Blob>) -> Self
The file containing the custom terminology data. Your version of the AWS SDK performs a Base64-encoding on this field before sending a request to the AWS service. Users of the SDK should not perform Base64-encoding themselves.
sourcepub fn get_file(&self) -> &Option<Blob>
pub fn get_file(&self) -> &Option<Blob>
The file containing the custom terminology data. Your version of the AWS SDK performs a Base64-encoding on this field before sending a request to the AWS service. Users of the SDK should not perform Base64-encoding themselves.
sourcepub fn format(self, input: TerminologyDataFormat) -> Self
pub fn format(self, input: TerminologyDataFormat) -> Self
The data format of the custom terminology.
This field is required.sourcepub fn set_format(self, input: Option<TerminologyDataFormat>) -> Self
pub fn set_format(self, input: Option<TerminologyDataFormat>) -> Self
The data format of the custom terminology.
sourcepub fn get_format(&self) -> &Option<TerminologyDataFormat>
pub fn get_format(&self) -> &Option<TerminologyDataFormat>
The data format of the custom terminology.
sourcepub fn directionality(self, input: Directionality) -> Self
pub fn directionality(self, input: Directionality) -> Self
The directionality of your terminology resource indicates whether it has one source language (uni-directional) or multiple (multi-directional).
- UNI
-
The terminology resource has one source language (for example, the first column in a CSV file), and all of its other languages are target languages.
- MULTI
-
Any language in the terminology resource can be the source language or a target language. A single multi-directional terminology resource can be used for jobs that translate different language pairs. For example, if the terminology contains English and Spanish terms, it can be used for jobs that translate English to Spanish and Spanish to English.
When you create a custom terminology resource without specifying the directionality, it behaves as uni-directional terminology, although this parameter will have a null value.
sourcepub fn set_directionality(self, input: Option<Directionality>) -> Self
pub fn set_directionality(self, input: Option<Directionality>) -> Self
The directionality of your terminology resource indicates whether it has one source language (uni-directional) or multiple (multi-directional).
- UNI
-
The terminology resource has one source language (for example, the first column in a CSV file), and all of its other languages are target languages.
- MULTI
-
Any language in the terminology resource can be the source language or a target language. A single multi-directional terminology resource can be used for jobs that translate different language pairs. For example, if the terminology contains English and Spanish terms, it can be used for jobs that translate English to Spanish and Spanish to English.
When you create a custom terminology resource without specifying the directionality, it behaves as uni-directional terminology, although this parameter will have a null value.
sourcepub fn get_directionality(&self) -> &Option<Directionality>
pub fn get_directionality(&self) -> &Option<Directionality>
The directionality of your terminology resource indicates whether it has one source language (uni-directional) or multiple (multi-directional).
- UNI
-
The terminology resource has one source language (for example, the first column in a CSV file), and all of its other languages are target languages.
- MULTI
-
Any language in the terminology resource can be the source language or a target language. A single multi-directional terminology resource can be used for jobs that translate different language pairs. For example, if the terminology contains English and Spanish terms, it can be used for jobs that translate English to Spanish and Spanish to English.
When you create a custom terminology resource without specifying the directionality, it behaves as uni-directional terminology, although this parameter will have a null value.
sourcepub fn build(self) -> Result<TerminologyData, BuildError>
pub fn build(self) -> Result<TerminologyData, BuildError>
Consumes the builder and constructs a TerminologyData
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TerminologyDataBuilder
impl Clone for TerminologyDataBuilder
source§fn clone(&self) -> TerminologyDataBuilder
fn clone(&self) -> TerminologyDataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TerminologyDataBuilder
impl Debug for TerminologyDataBuilder
source§impl Default for TerminologyDataBuilder
impl Default for TerminologyDataBuilder
source§fn default() -> TerminologyDataBuilder
fn default() -> TerminologyDataBuilder
source§impl PartialEq for TerminologyDataBuilder
impl PartialEq for TerminologyDataBuilder
source§fn eq(&self, other: &TerminologyDataBuilder) -> bool
fn eq(&self, other: &TerminologyDataBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TerminologyDataBuilder
Auto Trait Implementations§
impl Freeze for TerminologyDataBuilder
impl RefUnwindSafe for TerminologyDataBuilder
impl Send for TerminologyDataBuilder
impl Sync for TerminologyDataBuilder
impl Unpin for TerminologyDataBuilder
impl UnwindSafe for TerminologyDataBuilder
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