pub struct CreateProjectFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to CreateProject.
Creates a new Amazon Rekognition project. A project is a group of resources (datasets, model versions) that you use to create and manage a Amazon Rekognition Custom Labels Model or custom adapter. You can specify a feature to create the project with, if no feature is specified then Custom Labels is used by default. For adapters, you can also choose whether or not to have the project auto update by using the AutoUpdate argument. This operation requires permissions to perform the rekognition:CreateProject action.
Implementations§
source§impl CreateProjectFluentBuilder
impl CreateProjectFluentBuilder
sourcepub fn as_input(&self) -> &CreateProjectInputBuilder
pub fn as_input(&self) -> &CreateProjectInputBuilder
Access the CreateProject as a reference.
sourcepub async fn send(
self
) -> Result<CreateProjectOutput, SdkError<CreateProjectError, HttpResponse>>
pub async fn send( self ) -> Result<CreateProjectOutput, SdkError<CreateProjectError, 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<CreateProjectOutput, CreateProjectError, Self>
pub fn customize( self ) -> CustomizableOperation<CreateProjectOutput, CreateProjectError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn project_name(self, input: impl Into<String>) -> Self
pub fn project_name(self, input: impl Into<String>) -> Self
The name of the project to create.
sourcepub fn set_project_name(self, input: Option<String>) -> Self
pub fn set_project_name(self, input: Option<String>) -> Self
The name of the project to create.
sourcepub fn get_project_name(&self) -> &Option<String>
pub fn get_project_name(&self) -> &Option<String>
The name of the project to create.
sourcepub fn feature(self, input: CustomizationFeature) -> Self
pub fn feature(self, input: CustomizationFeature) -> Self
Specifies feature that is being customized. If no value is provided CUSTOM_LABELS is used as a default.
sourcepub fn set_feature(self, input: Option<CustomizationFeature>) -> Self
pub fn set_feature(self, input: Option<CustomizationFeature>) -> Self
Specifies feature that is being customized. If no value is provided CUSTOM_LABELS is used as a default.
sourcepub fn get_feature(&self) -> &Option<CustomizationFeature>
pub fn get_feature(&self) -> &Option<CustomizationFeature>
Specifies feature that is being customized. If no value is provided CUSTOM_LABELS is used as a default.
sourcepub fn auto_update(self, input: ProjectAutoUpdate) -> Self
pub fn auto_update(self, input: ProjectAutoUpdate) -> Self
Specifies whether automatic retraining should be attempted for the versions of the project. Automatic retraining is done as a best effort. Required argument for Content Moderation. Applicable only to adapters.
sourcepub fn set_auto_update(self, input: Option<ProjectAutoUpdate>) -> Self
pub fn set_auto_update(self, input: Option<ProjectAutoUpdate>) -> Self
Specifies whether automatic retraining should be attempted for the versions of the project. Automatic retraining is done as a best effort. Required argument for Content Moderation. Applicable only to adapters.
sourcepub fn get_auto_update(&self) -> &Option<ProjectAutoUpdate>
pub fn get_auto_update(&self) -> &Option<ProjectAutoUpdate>
Specifies whether automatic retraining should be attempted for the versions of the project. Automatic retraining is done as a best effort. Required argument for Content Moderation. Applicable only to adapters.
Trait Implementations§
source§impl Clone for CreateProjectFluentBuilder
impl Clone for CreateProjectFluentBuilder
source§fn clone(&self) -> CreateProjectFluentBuilder
fn clone(&self) -> CreateProjectFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more