Struct aws_sdk_machinelearning::operation::create_data_source_from_s3::builders::CreateDataSourceFromS3InputBuilder
source · #[non_exhaustive]pub struct CreateDataSourceFromS3InputBuilder { /* private fields */ }
Expand description
A builder for CreateDataSourceFromS3Input
.
Implementations§
source§impl CreateDataSourceFromS3InputBuilder
impl CreateDataSourceFromS3InputBuilder
sourcepub fn data_source_id(self, input: impl Into<String>) -> Self
pub fn data_source_id(self, input: impl Into<String>) -> Self
A user-supplied identifier that uniquely identifies the DataSource
.
sourcepub fn set_data_source_id(self, input: Option<String>) -> Self
pub fn set_data_source_id(self, input: Option<String>) -> Self
A user-supplied identifier that uniquely identifies the DataSource
.
sourcepub fn get_data_source_id(&self) -> &Option<String>
pub fn get_data_source_id(&self) -> &Option<String>
A user-supplied identifier that uniquely identifies the DataSource
.
sourcepub fn data_source_name(self, input: impl Into<String>) -> Self
pub fn data_source_name(self, input: impl Into<String>) -> Self
A user-supplied name or description of the DataSource
.
sourcepub fn set_data_source_name(self, input: Option<String>) -> Self
pub fn set_data_source_name(self, input: Option<String>) -> Self
A user-supplied name or description of the DataSource
.
sourcepub fn get_data_source_name(&self) -> &Option<String>
pub fn get_data_source_name(&self) -> &Option<String>
A user-supplied name or description of the DataSource
.
sourcepub fn data_spec(self, input: S3DataSpec) -> Self
pub fn data_spec(self, input: S3DataSpec) -> Self
The data specification of a DataSource
:
-
DataLocationS3 - The Amazon S3 location of the observation data.
-
DataSchemaLocationS3 - The Amazon S3 location of the
DataSchema
. -
DataSchema - A JSON string representing the schema. This is not required if
DataSchemaUri
is specified. -
DataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the
Datasource
.Sample -
"{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
sourcepub fn set_data_spec(self, input: Option<S3DataSpec>) -> Self
pub fn set_data_spec(self, input: Option<S3DataSpec>) -> Self
The data specification of a DataSource
:
-
DataLocationS3 - The Amazon S3 location of the observation data.
-
DataSchemaLocationS3 - The Amazon S3 location of the
DataSchema
. -
DataSchema - A JSON string representing the schema. This is not required if
DataSchemaUri
is specified. -
DataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the
Datasource
.Sample -
"{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
sourcepub fn get_data_spec(&self) -> &Option<S3DataSpec>
pub fn get_data_spec(&self) -> &Option<S3DataSpec>
The data specification of a DataSource
:
-
DataLocationS3 - The Amazon S3 location of the observation data.
-
DataSchemaLocationS3 - The Amazon S3 location of the
DataSchema
. -
DataSchema - A JSON string representing the schema. This is not required if
DataSchemaUri
is specified. -
DataRearrangement - A JSON string that represents the splitting and rearrangement requirements for the
Datasource
.Sample -
"{\"splitting\":{\"percentBegin\":10,\"percentEnd\":60}}"
sourcepub fn compute_statistics(self, input: bool) -> Self
pub fn compute_statistics(self, input: bool) -> Self
The compute statistics for a DataSource
. The statistics are generated from the observation data referenced by a DataSource
. Amazon ML uses the statistics internally during MLModel
training. This parameter must be set to true
if the DataSource
needs to be used for
MLModel
training.
sourcepub fn set_compute_statistics(self, input: Option<bool>) -> Self
pub fn set_compute_statistics(self, input: Option<bool>) -> Self
The compute statistics for a DataSource
. The statistics are generated from the observation data referenced by a DataSource
. Amazon ML uses the statistics internally during MLModel
training. This parameter must be set to true
if the DataSource
needs to be used for
MLModel
training.
sourcepub fn get_compute_statistics(&self) -> &Option<bool>
pub fn get_compute_statistics(&self) -> &Option<bool>
The compute statistics for a DataSource
. The statistics are generated from the observation data referenced by a DataSource
. Amazon ML uses the statistics internally during MLModel
training. This parameter must be set to true
if the DataSource
needs to be used for
MLModel
training.
sourcepub fn build(self) -> Result<CreateDataSourceFromS3Input, BuildError>
pub fn build(self) -> Result<CreateDataSourceFromS3Input, BuildError>
Consumes the builder and constructs a CreateDataSourceFromS3Input
.
source§impl CreateDataSourceFromS3InputBuilder
impl CreateDataSourceFromS3InputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDataSourceFromS3Output, SdkError<CreateDataSourceFromS3Error, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDataSourceFromS3Output, SdkError<CreateDataSourceFromS3Error, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDataSourceFromS3InputBuilder
impl Clone for CreateDataSourceFromS3InputBuilder
source§fn clone(&self) -> CreateDataSourceFromS3InputBuilder
fn clone(&self) -> CreateDataSourceFromS3InputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateDataSourceFromS3InputBuilder
impl Default for CreateDataSourceFromS3InputBuilder
source§fn default() -> CreateDataSourceFromS3InputBuilder
fn default() -> CreateDataSourceFromS3InputBuilder
source§impl PartialEq for CreateDataSourceFromS3InputBuilder
impl PartialEq for CreateDataSourceFromS3InputBuilder
source§fn eq(&self, other: &CreateDataSourceFromS3InputBuilder) -> bool
fn eq(&self, other: &CreateDataSourceFromS3InputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.