#[non_exhaustive]pub struct GetTerminologyInputBuilder { /* private fields */ }Expand description
A builder for GetTerminologyInput.
Implementations§
source§impl GetTerminologyInputBuilder
impl GetTerminologyInputBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the custom terminology being retrieved.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the custom terminology being retrieved.
sourcepub fn terminology_data_format(self, input: TerminologyDataFormat) -> Self
pub fn terminology_data_format(self, input: TerminologyDataFormat) -> Self
The data format of the custom terminology being retrieved.
If you don't specify this parameter, Amazon Translate returns a file with the same format as the file that was imported to create the terminology.
If you specify this parameter when you retrieve a multi-directional terminology resource, you must specify the same format as the input file that was imported to create it. Otherwise, Amazon Translate throws an error.
sourcepub fn set_terminology_data_format(
self,
input: Option<TerminologyDataFormat>
) -> Self
pub fn set_terminology_data_format( self, input: Option<TerminologyDataFormat> ) -> Self
The data format of the custom terminology being retrieved.
If you don't specify this parameter, Amazon Translate returns a file with the same format as the file that was imported to create the terminology.
If you specify this parameter when you retrieve a multi-directional terminology resource, you must specify the same format as the input file that was imported to create it. Otherwise, Amazon Translate throws an error.
sourcepub fn get_terminology_data_format(&self) -> &Option<TerminologyDataFormat>
pub fn get_terminology_data_format(&self) -> &Option<TerminologyDataFormat>
The data format of the custom terminology being retrieved.
If you don't specify this parameter, Amazon Translate returns a file with the same format as the file that was imported to create the terminology.
If you specify this parameter when you retrieve a multi-directional terminology resource, you must specify the same format as the input file that was imported to create it. Otherwise, Amazon Translate throws an error.
sourcepub fn build(self) -> Result<GetTerminologyInput, BuildError>
pub fn build(self) -> Result<GetTerminologyInput, BuildError>
Consumes the builder and constructs a GetTerminologyInput.
source§impl GetTerminologyInputBuilder
impl GetTerminologyInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<GetTerminologyOutput, SdkError<GetTerminologyError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<GetTerminologyOutput, SdkError<GetTerminologyError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for GetTerminologyInputBuilder
impl Clone for GetTerminologyInputBuilder
source§fn clone(&self) -> GetTerminologyInputBuilder
fn clone(&self) -> GetTerminologyInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetTerminologyInputBuilder
impl Debug for GetTerminologyInputBuilder
source§impl Default for GetTerminologyInputBuilder
impl Default for GetTerminologyInputBuilder
source§fn default() -> GetTerminologyInputBuilder
fn default() -> GetTerminologyInputBuilder
source§impl PartialEq for GetTerminologyInputBuilder
impl PartialEq for GetTerminologyInputBuilder
source§fn eq(&self, other: &GetTerminologyInputBuilder) -> bool
fn eq(&self, other: &GetTerminologyInputBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for GetTerminologyInputBuilder
Auto Trait Implementations§
impl Freeze for GetTerminologyInputBuilder
impl RefUnwindSafe for GetTerminologyInputBuilder
impl Send for GetTerminologyInputBuilder
impl Sync for GetTerminologyInputBuilder
impl Unpin for GetTerminologyInputBuilder
impl UnwindSafe for GetTerminologyInputBuilder
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