aws_sdk_lookoutvision/client/start_model_packaging_job.rs
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`StartModelPackagingJob`](crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`project_name(impl Into<String>)`](crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder::project_name) / [`set_project_name(Option<String>)`](crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder::set_project_name):<br>required: **true**<br><p>The name of the project which contains the version of the model that you want to package.</p><br>
/// - [`model_version(impl Into<String>)`](crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder::model_version) / [`set_model_version(Option<String>)`](crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder::set_model_version):<br>required: **true**<br><p>The version of the model within the project that you want to package.</p><br>
/// - [`job_name(impl Into<String>)`](crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder::job_name) / [`set_job_name(Option<String>)`](crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder::set_job_name):<br>required: **false**<br><p>A name for the model packaging job. If you don't supply a value, the service creates a job name for you.</p><br>
/// - [`configuration(ModelPackagingConfiguration)`](crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder::configuration) / [`set_configuration(Option<ModelPackagingConfiguration>)`](crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder::set_configuration):<br>required: **true**<br><p>The configuration for the model packaging job.</p><br>
/// - [`description(impl Into<String>)`](crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder::set_description):<br>required: **false**<br><p>A description for the model packaging job.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder::set_client_token):<br>required: **false**<br><p>ClientToken is an idempotency token that ensures a call to <code>StartModelPackagingJob</code> completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from <code>StartModelPackagingJob</code>. In this case, safely retry your call to <code>StartModelPackagingJob</code> by using the same <code>ClientToken</code> parameter value.</p> <p>If you don't supply a value for <code>ClientToken</code>, the AWS SDK you are using inserts a value for you. This prevents retries after a network error from making multiple dataset creation requests. You'll need to provide your own value for other use cases.</p> <p>An error occurs if the other input parameters are not the same as in the first request. Using a different value for <code>ClientToken</code> is considered a new call to <code>StartModelPackagingJob</code>. An idempotency token is active for 8 hours.</p><br>
/// - On success, responds with [`StartModelPackagingJobOutput`](crate::operation::start_model_packaging_job::StartModelPackagingJobOutput) with field(s):
/// - [`job_name(Option<String>)`](crate::operation::start_model_packaging_job::StartModelPackagingJobOutput::job_name): <p>The job name for the model packaging job. If you don't supply a job name in the <code>JobName</code> input parameter, the service creates a job name for you.</p>
/// - On failure, responds with [`SdkError<StartModelPackagingJobError>`](crate::operation::start_model_packaging_job::StartModelPackagingJobError)
pub fn start_model_packaging_job(&self) -> crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder {
crate::operation::start_model_packaging_job::builders::StartModelPackagingJobFluentBuilder::new(self.handle.clone())
}
}