pub struct CreateDatasetFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateDataset
.
Creates an empty dataset and adds it to the specified dataset group. Use CreateDatasetImportJob to import your training data to a dataset.
There are three types of datasets:
-
Interactions
-
Items
-
Users
Each dataset type has an associated schema with required field types. Only the Interactions
dataset is required in order to train a model (also referred to as creating a solution).
A dataset can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
To get the status of the dataset, call DescribeDataset.
Related APIs
Implementations§
source§impl CreateDatasetFluentBuilder
impl CreateDatasetFluentBuilder
sourcepub fn as_input(&self) -> &CreateDatasetInputBuilder
pub fn as_input(&self) -> &CreateDatasetInputBuilder
Access the CreateDataset as a reference.
sourcepub async fn send(
self
) -> Result<CreateDatasetOutput, SdkError<CreateDatasetError, HttpResponse>>
pub async fn send( self ) -> Result<CreateDatasetOutput, SdkError<CreateDatasetError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<CreateDatasetOutput, CreateDatasetError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateDatasetOutput, CreateDatasetError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn schema_arn(self, input: impl Into<String>) -> Self
pub fn schema_arn(self, input: impl Into<String>) -> Self
The ARN of the schema to associate with the dataset. The schema defines the dataset fields.
sourcepub fn set_schema_arn(self, input: Option<String>) -> Self
pub fn set_schema_arn(self, input: Option<String>) -> Self
The ARN of the schema to associate with the dataset. The schema defines the dataset fields.
sourcepub fn get_schema_arn(&self) -> &Option<String>
pub fn get_schema_arn(&self) -> &Option<String>
The ARN of the schema to associate with the dataset. The schema defines the dataset fields.
sourcepub fn dataset_group_arn(self, input: impl Into<String>) -> Self
pub fn dataset_group_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the dataset group to add the dataset to.
sourcepub fn set_dataset_group_arn(self, input: Option<String>) -> Self
pub fn set_dataset_group_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the dataset group to add the dataset to.
sourcepub fn get_dataset_group_arn(&self) -> &Option<String>
pub fn get_dataset_group_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the dataset group to add the dataset to.
sourcepub fn dataset_type(self, input: impl Into<String>) -> Self
pub fn dataset_type(self, input: impl Into<String>) -> Self
The type of dataset.
One of the following (case insensitive) values:
-
Interactions
-
Items
-
Users
sourcepub fn set_dataset_type(self, input: Option<String>) -> Self
pub fn set_dataset_type(self, input: Option<String>) -> Self
The type of dataset.
One of the following (case insensitive) values:
-
Interactions
-
Items
-
Users
sourcepub fn get_dataset_type(&self) -> &Option<String>
pub fn get_dataset_type(&self) -> &Option<String>
The type of dataset.
One of the following (case insensitive) values:
-
Interactions
-
Items
-
Users
A list of tags to apply to the dataset.
A list of tags to apply to the dataset.
Trait Implementations§
source§impl Clone for CreateDatasetFluentBuilder
impl Clone for CreateDatasetFluentBuilder
source§fn clone(&self) -> CreateDatasetFluentBuilder
fn clone(&self) -> CreateDatasetFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more