pub struct GetTerminologyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetTerminology
.
Retrieves a custom terminology.
Implementations§
source§impl GetTerminologyFluentBuilder
impl GetTerminologyFluentBuilder
sourcepub fn as_input(&self) -> &GetTerminologyInputBuilder
pub fn as_input(&self) -> &GetTerminologyInputBuilder
Access the GetTerminology as a reference.
sourcepub async fn send(
self
) -> Result<GetTerminologyOutput, SdkError<GetTerminologyError, HttpResponse>>
pub async fn send( self ) -> Result<GetTerminologyOutput, SdkError<GetTerminologyError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<GetTerminologyOutput, GetTerminologyError, Self>
pub fn customize( self ) -> CustomizableOperation<GetTerminologyOutput, GetTerminologyError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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.
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.
Trait Implementations§
source§impl Clone for GetTerminologyFluentBuilder
impl Clone for GetTerminologyFluentBuilder
source§fn clone(&self) -> GetTerminologyFluentBuilder
fn clone(&self) -> GetTerminologyFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GetTerminologyFluentBuilder
impl !RefUnwindSafe for GetTerminologyFluentBuilder
impl Send for GetTerminologyFluentBuilder
impl Sync for GetTerminologyFluentBuilder
impl Unpin for GetTerminologyFluentBuilder
impl !UnwindSafe for GetTerminologyFluentBuilder
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