#[non_exhaustive]pub struct ParallelDataDataLocationBuilder { /* private fields */ }
Expand description
A builder for ParallelDataDataLocation
.
Implementations§
source§impl ParallelDataDataLocationBuilder
impl ParallelDataDataLocationBuilder
sourcepub fn repository_type(self, input: impl Into<String>) -> Self
pub fn repository_type(self, input: impl Into<String>) -> Self
Describes the repository that contains the parallel data input file.
This field is required.sourcepub fn set_repository_type(self, input: Option<String>) -> Self
pub fn set_repository_type(self, input: Option<String>) -> Self
Describes the repository that contains the parallel data input file.
sourcepub fn get_repository_type(&self) -> &Option<String>
pub fn get_repository_type(&self) -> &Option<String>
Describes the repository that contains the parallel data input file.
sourcepub fn location(self, input: impl Into<String>) -> Self
pub fn location(self, input: impl Into<String>) -> Self
The Amazon S3 location of the parallel data input file. The location is returned as a presigned URL to 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 parallel data input file. The location is returned as a presigned URL to 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 parallel data input file. The location is returned as a presigned URL to 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<ParallelDataDataLocation, BuildError>
pub fn build(self) -> Result<ParallelDataDataLocation, BuildError>
Consumes the builder and constructs a ParallelDataDataLocation
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ParallelDataDataLocationBuilder
impl Clone for ParallelDataDataLocationBuilder
source§fn clone(&self) -> ParallelDataDataLocationBuilder
fn clone(&self) -> ParallelDataDataLocationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ParallelDataDataLocationBuilder
impl Default for ParallelDataDataLocationBuilder
source§fn default() -> ParallelDataDataLocationBuilder
fn default() -> ParallelDataDataLocationBuilder
source§impl PartialEq for ParallelDataDataLocationBuilder
impl PartialEq for ParallelDataDataLocationBuilder
source§fn eq(&self, other: &ParallelDataDataLocationBuilder) -> bool
fn eq(&self, other: &ParallelDataDataLocationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.