Struct aws_sdk_robomaker::types::builders::DataSourceConfigBuilder
source · #[non_exhaustive]pub struct DataSourceConfigBuilder { /* private fields */ }Expand description
A builder for DataSourceConfig.
Implementations§
source§impl DataSourceConfigBuilder
impl DataSourceConfigBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the data source.
This field is required.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.
This field is required.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: impl Into<String>) -> Self
pub fn s3_keys(self, input: impl Into<String>) -> 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<String>>) -> Self
pub fn set_s3_keys(self, input: Option<Vec<String>>) -> Self
The list of S3 keys identifying the data source files.
sourcepub fn get_s3_keys(&self) -> &Option<Vec<String>>
pub fn get_s3_keys(&self) -> &Option<Vec<String>>
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) -> Result<DataSourceConfig, BuildError>
pub fn build(self) -> Result<DataSourceConfig, BuildError>
Consumes the builder and constructs a DataSourceConfig.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for DataSourceConfigBuilder
impl Clone for DataSourceConfigBuilder
source§fn clone(&self) -> DataSourceConfigBuilder
fn clone(&self) -> DataSourceConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for DataSourceConfigBuilder
impl Debug for DataSourceConfigBuilder
source§impl Default for DataSourceConfigBuilder
impl Default for DataSourceConfigBuilder
source§fn default() -> DataSourceConfigBuilder
fn default() -> DataSourceConfigBuilder
source§impl PartialEq for DataSourceConfigBuilder
impl PartialEq for DataSourceConfigBuilder
source§fn eq(&self, other: &DataSourceConfigBuilder) -> bool
fn eq(&self, other: &DataSourceConfigBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for DataSourceConfigBuilder
Auto Trait Implementations§
impl Freeze for DataSourceConfigBuilder
impl RefUnwindSafe for DataSourceConfigBuilder
impl Send for DataSourceConfigBuilder
impl Sync for DataSourceConfigBuilder
impl Unpin for DataSourceConfigBuilder
impl UnwindSafe for DataSourceConfigBuilder
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