Struct aws_sdk_robomaker::types::builders::DataSourceBuilder
source · #[non_exhaustive]pub struct DataSourceBuilder { /* private fields */ }Expand description
A builder for DataSource.
Implementations§
source§impl DataSourceBuilder
impl DataSourceBuilder
sourcepub fn s3_bucket(self, input: impl Into<String>) -> Self
pub fn s3_bucket(self, input: impl Into<String>) -> Self
The S3 bucket where the data files are located.
sourcepub fn set_s3_bucket(self, input: Option<String>) -> Self
pub fn set_s3_bucket(self, input: Option<String>) -> Self
The S3 bucket where the data files are located.
sourcepub fn get_s3_bucket(&self) -> &Option<String>
pub fn get_s3_bucket(&self) -> &Option<String>
The S3 bucket where the data files are located.
sourcepub fn s3_keys(self, input: S3KeyOutput) -> Self
pub fn s3_keys(self, input: S3KeyOutput) -> Self
Appends an item to s3_keys.
To override the contents of this collection use set_s3_keys.
The list of S3 keys identifying the data source files.
sourcepub fn set_s3_keys(self, input: Option<Vec<S3KeyOutput>>) -> Self
pub fn set_s3_keys(self, input: Option<Vec<S3KeyOutput>>) -> Self
The list of S3 keys identifying the data source files.
sourcepub fn get_s3_keys(&self) -> &Option<Vec<S3KeyOutput>>
pub fn get_s3_keys(&self) -> &Option<Vec<S3KeyOutput>>
The list of S3 keys identifying the data source files.
sourcepub fn type(self, input: DataSourceType) -> Self
pub fn type(self, input: DataSourceType) -> Self
The data type for the data source that you're using for your container image or simulation job. You can use this field to specify whether your data source is an Archive, an Amazon S3 prefix, or a file.
If you don't specify a field, the default value is File.
sourcepub fn set_type(self, input: Option<DataSourceType>) -> Self
pub fn set_type(self, input: Option<DataSourceType>) -> Self
The data type for the data source that you're using for your container image or simulation job. You can use this field to specify whether your data source is an Archive, an Amazon S3 prefix, or a file.
If you don't specify a field, the default value is File.
sourcepub fn get_type(&self) -> &Option<DataSourceType>
pub fn get_type(&self) -> &Option<DataSourceType>
The data type for the data source that you're using for your container image or simulation job. You can use this field to specify whether your data source is an Archive, an Amazon S3 prefix, or a file.
If you don't specify a field, the default value is File.
sourcepub fn destination(self, input: impl Into<String>) -> Self
pub fn destination(self, input: impl Into<String>) -> Self
The location where your files are mounted in the container image.
If you've specified the type of the data source as an Archive, you must provide an Amazon S3 object key to your archive. The object key must point to either a .zip or .tar.gz file.
If you've specified the type of the data source as a Prefix, you provide the Amazon S3 prefix that points to the files that you are using for your data source.
If you've specified the type of the data source as a File, you provide the Amazon S3 path to the file that you're using as your data source.
sourcepub fn set_destination(self, input: Option<String>) -> Self
pub fn set_destination(self, input: Option<String>) -> Self
The location where your files are mounted in the container image.
If you've specified the type of the data source as an Archive, you must provide an Amazon S3 object key to your archive. The object key must point to either a .zip or .tar.gz file.
If you've specified the type of the data source as a Prefix, you provide the Amazon S3 prefix that points to the files that you are using for your data source.
If you've specified the type of the data source as a File, you provide the Amazon S3 path to the file that you're using as your data source.
sourcepub fn get_destination(&self) -> &Option<String>
pub fn get_destination(&self) -> &Option<String>
The location where your files are mounted in the container image.
If you've specified the type of the data source as an Archive, you must provide an Amazon S3 object key to your archive. The object key must point to either a .zip or .tar.gz file.
If you've specified the type of the data source as a Prefix, you provide the Amazon S3 prefix that points to the files that you are using for your data source.
If you've specified the type of the data source as a File, you provide the Amazon S3 path to the file that you're using as your data source.
sourcepub fn build(self) -> DataSource
pub fn build(self) -> DataSource
Consumes the builder and constructs a DataSource.
Trait Implementations§
source§impl Clone for DataSourceBuilder
impl Clone for DataSourceBuilder
source§fn clone(&self) -> DataSourceBuilder
fn clone(&self) -> DataSourceBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DataSourceBuilder
impl Debug for DataSourceBuilder
source§impl Default for DataSourceBuilder
impl Default for DataSourceBuilder
source§fn default() -> DataSourceBuilder
fn default() -> DataSourceBuilder
source§impl PartialEq for DataSourceBuilder
impl PartialEq for DataSourceBuilder
source§fn eq(&self, other: &DataSourceBuilder) -> bool
fn eq(&self, other: &DataSourceBuilder) -> bool
self and other values to be equal, and is used
by ==.