Struct aws_sdk_rekognition::input::create_dataset_input::Builder
source · [−]pub struct Builder { /* private fields */ }Expand description
A builder for CreateDatasetInput.
Implementations
sourceimpl Builder
impl Builder
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 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 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.
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 build(self) -> Result<CreateDatasetInput, BuildError>
pub fn build(self) -> Result<CreateDatasetInput, BuildError>
Consumes the builder and constructs a CreateDatasetInput.