#[non_exhaustive]pub struct CreateDatasetInputBuilder { /* private fields */ }Expand description
A builder for CreateDatasetInput.
Implementations§
source§impl CreateDatasetInputBuilder
impl CreateDatasetInputBuilder
sourcepub fn dataset_source(self, input: DatasetSource) -> Self
pub fn dataset_source(self, input: DatasetSource) -> Self
The source files for the dataset. You can specify the ARN of an existing dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format manifest file. If you don't specify datasetSource, an empty dataset is created. To add labeled images to the dataset, You can use the console or call UpdateDatasetEntries.
sourcepub fn set_dataset_source(self, input: Option<DatasetSource>) -> Self
pub fn set_dataset_source(self, input: Option<DatasetSource>) -> Self
The source files for the dataset. You can specify the ARN of an existing dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format manifest file. If you don't specify datasetSource, an empty dataset is created. To add labeled images to the dataset, You can use the console or call UpdateDatasetEntries.
sourcepub fn get_dataset_source(&self) -> &Option<DatasetSource>
pub fn get_dataset_source(&self) -> &Option<DatasetSource>
The source files for the dataset. You can specify the ARN of an existing dataset or specify the Amazon S3 bucket location of an Amazon Sagemaker format manifest file. If you don't specify datasetSource, an empty dataset is created. To add labeled images to the dataset, You can use the console or call UpdateDatasetEntries.
sourcepub fn dataset_type(self, input: DatasetType) -> Self
pub fn dataset_type(self, input: DatasetType) -> Self
The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.
sourcepub fn set_dataset_type(self, input: Option<DatasetType>) -> Self
pub fn set_dataset_type(self, input: Option<DatasetType>) -> Self
The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.
sourcepub fn get_dataset_type(&self) -> &Option<DatasetType>
pub fn get_dataset_type(&self) -> &Option<DatasetType>
The type of the dataset. Specify TRAIN to create a training dataset. Specify TEST to create a test dataset.
sourcepub fn project_arn(self, input: impl Into<String>) -> Self
pub fn project_arn(self, input: impl Into<String>) -> Self
The ARN of the Amazon Rekognition Custom Labels project to which you want to asssign the dataset.
This field is required.sourcepub fn set_project_arn(self, input: Option<String>) -> Self
pub fn set_project_arn(self, input: Option<String>) -> Self
The ARN of the Amazon Rekognition Custom Labels project to which you want to asssign the dataset.
sourcepub fn get_project_arn(&self) -> &Option<String>
pub fn get_project_arn(&self) -> &Option<String>
The ARN of the Amazon Rekognition Custom Labels project to which you want to asssign the dataset.
sourcepub fn build(self) -> Result<CreateDatasetInput, BuildError>
pub fn build(self) -> Result<CreateDatasetInput, BuildError>
Consumes the builder and constructs a CreateDatasetInput.
source§impl CreateDatasetInputBuilder
impl CreateDatasetInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateDatasetOutput, SdkError<CreateDatasetError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateDatasetOutput, SdkError<CreateDatasetError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateDatasetInputBuilder
impl Clone for CreateDatasetInputBuilder
source§fn clone(&self) -> CreateDatasetInputBuilder
fn clone(&self) -> CreateDatasetInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CreateDatasetInputBuilder
impl Debug for CreateDatasetInputBuilder
source§impl Default for CreateDatasetInputBuilder
impl Default for CreateDatasetInputBuilder
source§fn default() -> CreateDatasetInputBuilder
fn default() -> CreateDatasetInputBuilder
source§impl PartialEq for CreateDatasetInputBuilder
impl PartialEq for CreateDatasetInputBuilder
source§fn eq(&self, other: &CreateDatasetInputBuilder) -> bool
fn eq(&self, other: &CreateDatasetInputBuilder) -> bool
self and other values to be equal, and is used
by ==.