#[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 ==.