Struct aws_sdk_lookoutvision::operation::start_model_packaging_job::builders::StartModelPackagingJobInputBuilder
source · #[non_exhaustive]pub struct StartModelPackagingJobInputBuilder { /* private fields */ }Expand description
A builder for StartModelPackagingJobInput.
Implementations§
source§impl StartModelPackagingJobInputBuilder
impl StartModelPackagingJobInputBuilder
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 which contains the version of the model that you want to package.
This field is required.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 which contains the version of the model that you want to package.
sourcepub fn get_project_name(&self) -> &Option<String>
pub fn get_project_name(&self) -> &Option<String>
The name of the project which contains the version of the model that you want to package.
sourcepub fn model_version(self, input: impl Into<String>) -> Self
pub fn model_version(self, input: impl Into<String>) -> Self
The version of the model within the project that you want to package.
This field is required.sourcepub fn set_model_version(self, input: Option<String>) -> Self
pub fn set_model_version(self, input: Option<String>) -> Self
The version of the model within the project that you want to package.
sourcepub fn get_model_version(&self) -> &Option<String>
pub fn get_model_version(&self) -> &Option<String>
The version of the model within the project that you want to package.
sourcepub fn job_name(self, input: impl Into<String>) -> Self
pub fn job_name(self, input: impl Into<String>) -> Self
A name for the model packaging job. If you don't supply a value, the service creates a job name for you.
sourcepub fn set_job_name(self, input: Option<String>) -> Self
pub fn set_job_name(self, input: Option<String>) -> Self
A name for the model packaging job. If you don't supply a value, the service creates a job name for you.
sourcepub fn get_job_name(&self) -> &Option<String>
pub fn get_job_name(&self) -> &Option<String>
A name for the model packaging job. If you don't supply a value, the service creates a job name for you.
sourcepub fn configuration(self, input: ModelPackagingConfiguration) -> Self
pub fn configuration(self, input: ModelPackagingConfiguration) -> Self
The configuration for the model packaging job.
This field is required.sourcepub fn set_configuration(
self,
input: Option<ModelPackagingConfiguration>
) -> Self
pub fn set_configuration( self, input: Option<ModelPackagingConfiguration> ) -> Self
The configuration for the model packaging job.
sourcepub fn get_configuration(&self) -> &Option<ModelPackagingConfiguration>
pub fn get_configuration(&self) -> &Option<ModelPackagingConfiguration>
The configuration for the model packaging job.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for the model packaging job.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for the model packaging job.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description for the model packaging job.
sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
ClientToken is an idempotency token that ensures a call to StartModelPackagingJob completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from StartModelPackagingJob. In this case, safely retry your call to StartModelPackagingJob by using the same ClientToken parameter value.
If you don't supply a value for ClientToken, 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.
An error occurs if the other input parameters are not the same as in the first request. Using a different value for ClientToken is considered a new call to StartModelPackagingJob. An idempotency token is active for 8 hours.
sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
ClientToken is an idempotency token that ensures a call to StartModelPackagingJob completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from StartModelPackagingJob. In this case, safely retry your call to StartModelPackagingJob by using the same ClientToken parameter value.
If you don't supply a value for ClientToken, 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.
An error occurs if the other input parameters are not the same as in the first request. Using a different value for ClientToken is considered a new call to StartModelPackagingJob. An idempotency token is active for 8 hours.
sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
ClientToken is an idempotency token that ensures a call to StartModelPackagingJob completes only once. You choose the value to pass. For example, An issue might prevent you from getting a response from StartModelPackagingJob. In this case, safely retry your call to StartModelPackagingJob by using the same ClientToken parameter value.
If you don't supply a value for ClientToken, 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.
An error occurs if the other input parameters are not the same as in the first request. Using a different value for ClientToken is considered a new call to StartModelPackagingJob. An idempotency token is active for 8 hours.
sourcepub fn build(self) -> Result<StartModelPackagingJobInput, BuildError>
pub fn build(self) -> Result<StartModelPackagingJobInput, BuildError>
Consumes the builder and constructs a StartModelPackagingJobInput.
source§impl StartModelPackagingJobInputBuilder
impl StartModelPackagingJobInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<StartModelPackagingJobOutput, SdkError<StartModelPackagingJobError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<StartModelPackagingJobOutput, SdkError<StartModelPackagingJobError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for StartModelPackagingJobInputBuilder
impl Clone for StartModelPackagingJobInputBuilder
source§fn clone(&self) -> StartModelPackagingJobInputBuilder
fn clone(&self) -> StartModelPackagingJobInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for StartModelPackagingJobInputBuilder
impl Default for StartModelPackagingJobInputBuilder
source§fn default() -> StartModelPackagingJobInputBuilder
fn default() -> StartModelPackagingJobInputBuilder
source§impl PartialEq for StartModelPackagingJobInputBuilder
impl PartialEq for StartModelPackagingJobInputBuilder
source§fn eq(&self, other: &StartModelPackagingJobInputBuilder) -> bool
fn eq(&self, other: &StartModelPackagingJobInputBuilder) -> bool
self and other values to be equal, and is used
by ==.