#[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.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
A set of tags (key-value pairs) that you want to attach to the dataset.
A set of tags (key-value pairs) that you want to attach to the dataset.
A set of tags (key-value pairs) that you want to attach to 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 ==.impl StructuralPartialEq for CreateDatasetInputBuilder
Auto Trait Implementations§
impl Freeze for CreateDatasetInputBuilder
impl RefUnwindSafe for CreateDatasetInputBuilder
impl Send for CreateDatasetInputBuilder
impl Sync for CreateDatasetInputBuilder
impl Unpin for CreateDatasetInputBuilder
impl UnwindSafe for CreateDatasetInputBuilder
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> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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