#[non_exhaustive]pub struct TerminologyDataLocationBuilder { /* private fields */ }
Expand description
A builder for TerminologyDataLocation
.
Implementations§
source§impl TerminologyDataLocationBuilder
impl TerminologyDataLocationBuilder
sourcepub fn repository_type(self, input: impl Into<String>) -> Self
pub fn repository_type(self, input: impl Into<String>) -> Self
The repository type for the custom terminology data.
This field is required.sourcepub fn set_repository_type(self, input: Option<String>) -> Self
pub fn set_repository_type(self, input: Option<String>) -> Self
The repository type for the custom terminology data.
sourcepub fn get_repository_type(&self) -> &Option<String>
pub fn get_repository_type(&self) -> &Option<String>
The repository type for the custom terminology data.
sourcepub fn location(self, input: impl Into<String>) -> Self
pub fn location(self, input: impl Into<String>) -> Self
The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration .
Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.
CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.
sourcepub fn set_location(self, input: Option<String>) -> Self
pub fn set_location(self, input: Option<String>) -> Self
The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration .
Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.
CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.
sourcepub fn get_location(&self) -> &Option<String>
pub fn get_location(&self) -> &Option<String>
The Amazon S3 location of the most recent custom terminology input file that was successfully imported into Amazon Translate. The location is returned as a presigned URL that has a 30-minute expiration .
Amazon Translate doesn't scan all input files for the risk of CSV injection attacks.
CSV injection occurs when a .csv or .tsv file is altered so that a record contains malicious code. The record begins with a special character, such as =, +, -, or @. When the file is opened in a spreadsheet program, the program might interpret the record as a formula and run the code within it.
Before you download an input file from Amazon S3, ensure that you recognize the file and trust its creator.
sourcepub fn build(self) -> Result<TerminologyDataLocation, BuildError>
pub fn build(self) -> Result<TerminologyDataLocation, BuildError>
Consumes the builder and constructs a TerminologyDataLocation
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TerminologyDataLocationBuilder
impl Clone for TerminologyDataLocationBuilder
source§fn clone(&self) -> TerminologyDataLocationBuilder
fn clone(&self) -> TerminologyDataLocationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for TerminologyDataLocationBuilder
impl Default for TerminologyDataLocationBuilder
source§fn default() -> TerminologyDataLocationBuilder
fn default() -> TerminologyDataLocationBuilder
source§impl PartialEq for TerminologyDataLocationBuilder
impl PartialEq for TerminologyDataLocationBuilder
source§fn eq(&self, other: &TerminologyDataLocationBuilder) -> bool
fn eq(&self, other: &TerminologyDataLocationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TerminologyDataLocationBuilder
Auto Trait Implementations§
impl Freeze for TerminologyDataLocationBuilder
impl RefUnwindSafe for TerminologyDataLocationBuilder
impl Send for TerminologyDataLocationBuilder
impl Sync for TerminologyDataLocationBuilder
impl Unpin for TerminologyDataLocationBuilder
impl UnwindSafe for TerminologyDataLocationBuilder
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