Struct aws_sdk_translate::operation::import_terminology::builders::ImportTerminologyFluentBuilder
source · pub struct ImportTerminologyFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to ImportTerminology
.
Creates or updates a custom terminology, depending on whether one already exists for the given terminology name. Importing a terminology with the same name as an existing one will merge the terminologies based on the chosen merge strategy. The only supported merge strategy is OVERWRITE, where the imported terminology overwrites the existing terminology of the same name.
If you import a terminology that overwrites an existing one, the new terminology takes up to 10 minutes to fully propagate. After that, translations have access to the new terminology.
Implementations§
source§impl ImportTerminologyFluentBuilder
impl ImportTerminologyFluentBuilder
sourcepub fn as_input(&self) -> &ImportTerminologyInputBuilder
pub fn as_input(&self) -> &ImportTerminologyInputBuilder
Access the ImportTerminology as a reference.
sourcepub async fn send(
self
) -> Result<ImportTerminologyOutput, SdkError<ImportTerminologyError, HttpResponse>>
pub async fn send( self ) -> Result<ImportTerminologyOutput, SdkError<ImportTerminologyError, 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<ImportTerminologyOutput, ImportTerminologyError, Self>
pub fn customize( self ) -> CustomizableOperation<ImportTerminologyOutput, ImportTerminologyError, 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 imported.
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 imported.
sourcepub fn merge_strategy(self, input: MergeStrategy) -> Self
pub fn merge_strategy(self, input: MergeStrategy) -> Self
The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
sourcepub fn set_merge_strategy(self, input: Option<MergeStrategy>) -> Self
pub fn set_merge_strategy(self, input: Option<MergeStrategy>) -> Self
The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
sourcepub fn get_merge_strategy(&self) -> &Option<MergeStrategy>
pub fn get_merge_strategy(&self) -> &Option<MergeStrategy>
The merge strategy of the custom terminology being imported. Currently, only the OVERWRITE merge strategy is supported. In this case, the imported terminology will overwrite an existing terminology of the same name.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the custom terminology being imported.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the custom terminology being imported.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the custom terminology being imported.
sourcepub fn terminology_data(self, input: TerminologyData) -> Self
pub fn terminology_data(self, input: TerminologyData) -> Self
The terminology data for the custom terminology being imported.
sourcepub fn set_terminology_data(self, input: Option<TerminologyData>) -> Self
pub fn set_terminology_data(self, input: Option<TerminologyData>) -> Self
The terminology data for the custom terminology being imported.
sourcepub fn get_terminology_data(&self) -> &Option<TerminologyData>
pub fn get_terminology_data(&self) -> &Option<TerminologyData>
The terminology data for the custom terminology being imported.
sourcepub fn encryption_key(self, input: EncryptionKey) -> Self
pub fn encryption_key(self, input: EncryptionKey) -> Self
The encryption key for the custom terminology being imported.
sourcepub fn set_encryption_key(self, input: Option<EncryptionKey>) -> Self
pub fn set_encryption_key(self, input: Option<EncryptionKey>) -> Self
The encryption key for the custom terminology being imported.
sourcepub fn get_encryption_key(&self) -> &Option<EncryptionKey>
pub fn get_encryption_key(&self) -> &Option<EncryptionKey>
The encryption key for the custom terminology being imported.
Appends an item to Tags
.
To override the contents of this collection use set_tags
.
Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each tag key for the resource must be unique. For more information, see Tagging your resources.
Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each tag key for the resource must be unique. For more information, see Tagging your resources.
Tags to be associated with this resource. A tag is a key-value pair that adds metadata to a resource. Each tag key for the resource must be unique. For more information, see Tagging your resources.
Trait Implementations§
source§impl Clone for ImportTerminologyFluentBuilder
impl Clone for ImportTerminologyFluentBuilder
source§fn clone(&self) -> ImportTerminologyFluentBuilder
fn clone(&self) -> ImportTerminologyFluentBuilder
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 ImportTerminologyFluentBuilder
impl !RefUnwindSafe for ImportTerminologyFluentBuilder
impl Send for ImportTerminologyFluentBuilder
impl Sync for ImportTerminologyFluentBuilder
impl Unpin for ImportTerminologyFluentBuilder
impl !UnwindSafe for ImportTerminologyFluentBuilder
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