/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace LookoutforVision { namespace Model { /** */ class StartModelPackagingJobRequest : public LookoutforVisionRequest { public: AWS_LOOKOUTFORVISION_API StartModelPackagingJobRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartModelPackagingJob"; } AWS_LOOKOUTFORVISION_API Aws::String SerializePayload() const override; AWS_LOOKOUTFORVISION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the project which contains the version of the model that you * want to package.

*/ inline const Aws::String& GetProjectName() const{ return m_projectName; } /** *

The name of the project which contains the version of the model that you * want to package.

*/ inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; } /** *

The name of the project which contains the version of the model that you * want to package.

*/ inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; } /** *

The name of the project which contains the version of the model that you * want to package.

*/ inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); } /** *

The name of the project which contains the version of the model that you * want to package.

*/ inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); } /** *

The name of the project which contains the version of the model that you * want to package.

*/ inline StartModelPackagingJobRequest& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;} /** *

The name of the project which contains the version of the model that you * want to package.

*/ inline StartModelPackagingJobRequest& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;} /** *

The name of the project which contains the version of the model that you * want to package.

*/ inline StartModelPackagingJobRequest& WithProjectName(const char* value) { SetProjectName(value); return *this;} /** *

The version of the model within the project that you want to package.

*/ inline const Aws::String& GetModelVersion() const{ return m_modelVersion; } /** *

The version of the model within the project that you want to package.

*/ inline bool ModelVersionHasBeenSet() const { return m_modelVersionHasBeenSet; } /** *

The version of the model within the project that you want to package.

*/ inline void SetModelVersion(const Aws::String& value) { m_modelVersionHasBeenSet = true; m_modelVersion = value; } /** *

The version of the model within the project that you want to package.

*/ inline void SetModelVersion(Aws::String&& value) { m_modelVersionHasBeenSet = true; m_modelVersion = std::move(value); } /** *

The version of the model within the project that you want to package.

*/ inline void SetModelVersion(const char* value) { m_modelVersionHasBeenSet = true; m_modelVersion.assign(value); } /** *

The version of the model within the project that you want to package.

*/ inline StartModelPackagingJobRequest& WithModelVersion(const Aws::String& value) { SetModelVersion(value); return *this;} /** *

The version of the model within the project that you want to package.

*/ inline StartModelPackagingJobRequest& WithModelVersion(Aws::String&& value) { SetModelVersion(std::move(value)); return *this;} /** *

The version of the model within the project that you want to package.

*/ inline StartModelPackagingJobRequest& WithModelVersion(const char* value) { SetModelVersion(value); return *this;} /** *

A name for the model packaging job. If you don't supply a value, the service * creates a job name for you.

*/ inline const Aws::String& GetJobName() const{ return m_jobName; } /** *

A name for the model packaging job. If you don't supply a value, the service * creates a job name for you.

*/ inline bool JobNameHasBeenSet() const { return m_jobNameHasBeenSet; } /** *

A name for the model packaging job. If you don't supply a value, the service * creates a job name for you.

*/ inline void SetJobName(const Aws::String& value) { m_jobNameHasBeenSet = true; m_jobName = value; } /** *

A name for the model packaging job. If you don't supply a value, the service * creates a job name for you.

*/ inline void SetJobName(Aws::String&& value) { m_jobNameHasBeenSet = true; m_jobName = std::move(value); } /** *

A name for the model packaging job. If you don't supply a value, the service * creates a job name for you.

*/ inline void SetJobName(const char* value) { m_jobNameHasBeenSet = true; m_jobName.assign(value); } /** *

A name for the model packaging job. If you don't supply a value, the service * creates a job name for you.

*/ inline StartModelPackagingJobRequest& WithJobName(const Aws::String& value) { SetJobName(value); return *this;} /** *

A name for the model packaging job. If you don't supply a value, the service * creates a job name for you.

*/ inline StartModelPackagingJobRequest& WithJobName(Aws::String&& value) { SetJobName(std::move(value)); return *this;} /** *

A name for the model packaging job. If you don't supply a value, the service * creates a job name for you.

*/ inline StartModelPackagingJobRequest& WithJobName(const char* value) { SetJobName(value); return *this;} /** *

The configuration for the model packaging job.

*/ inline const ModelPackagingConfiguration& GetConfiguration() const{ return m_configuration; } /** *

The configuration for the model packaging job.

*/ inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } /** *

The configuration for the model packaging job.

*/ inline void SetConfiguration(const ModelPackagingConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; } /** *

The configuration for the model packaging job.

*/ inline void SetConfiguration(ModelPackagingConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } /** *

The configuration for the model packaging job.

*/ inline StartModelPackagingJobRequest& WithConfiguration(const ModelPackagingConfiguration& value) { SetConfiguration(value); return *this;} /** *

The configuration for the model packaging job.

*/ inline StartModelPackagingJobRequest& WithConfiguration(ModelPackagingConfiguration&& value) { SetConfiguration(std::move(value)); return *this;} /** *

A description for the model packaging job.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description for the model packaging job.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description for the model packaging job.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description for the model packaging job.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description for the model packaging job.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description for the model packaging job.

*/ inline StartModelPackagingJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description for the model packaging job.

*/ inline StartModelPackagingJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description for the model packaging job.

*/ inline StartModelPackagingJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

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.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

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.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

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.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

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.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

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.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

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.

*/ inline StartModelPackagingJobRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

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.

*/ inline StartModelPackagingJobRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

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.

*/ inline StartModelPackagingJobRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_projectName; bool m_projectNameHasBeenSet = false; Aws::String m_modelVersion; bool m_modelVersionHasBeenSet = false; Aws::String m_jobName; bool m_jobNameHasBeenSet = false; ModelPackagingConfiguration m_configuration; bool m_configurationHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace LookoutforVision } // namespace Aws