/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace LookoutforVision { namespace Model { /** */ class CreateModelRequest : public LookoutforVisionRequest { public: AWS_LOOKOUTFORVISION_API CreateModelRequest(); // 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 "CreateModel"; } AWS_LOOKOUTFORVISION_API Aws::String SerializePayload() const override; AWS_LOOKOUTFORVISION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the project in which you want to create a model version.

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

The name of the project in which you want to create a model version.

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

The name of the project in which you want to create a model version.

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

The name of the project in which you want to create a model version.

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

The name of the project in which you want to create a model version.

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

The name of the project in which you want to create a model version.

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

The name of the project in which you want to create a model version.

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

The name of the project in which you want to create a model version.

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

A description for the version of the model.

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

A description for the version of the model.

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

A description for the version of the model.

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

A description for the version of the model.

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

A description for the version of the model.

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

A description for the version of the model.

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

A description for the version of the model.

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

A description for the version of the model.

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

ClientToken is an idempotency token that ensures a call to * CreateModel completes only once. You choose the value to pass. For * example, An issue might prevent you from getting a response from * CreateModel. In this case, safely retry your call to * CreateModel 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 starting multiple training jobs. 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 CreateModel. * 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 * CreateModel completes only once. You choose the value to pass. For * example, An issue might prevent you from getting a response from * CreateModel. In this case, safely retry your call to * CreateModel 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 starting multiple training jobs. 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 CreateModel. * 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 * CreateModel completes only once. You choose the value to pass. For * example, An issue might prevent you from getting a response from * CreateModel. In this case, safely retry your call to * CreateModel 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 starting multiple training jobs. 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 CreateModel. * 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 * CreateModel completes only once. You choose the value to pass. For * example, An issue might prevent you from getting a response from * CreateModel. In this case, safely retry your call to * CreateModel 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 starting multiple training jobs. 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 CreateModel. * 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 * CreateModel completes only once. You choose the value to pass. For * example, An issue might prevent you from getting a response from * CreateModel. In this case, safely retry your call to * CreateModel 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 starting multiple training jobs. 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 CreateModel. * 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 * CreateModel completes only once. You choose the value to pass. For * example, An issue might prevent you from getting a response from * CreateModel. In this case, safely retry your call to * CreateModel 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 starting multiple training jobs. 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 CreateModel. * An idempotency token is active for 8 hours.

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

ClientToken is an idempotency token that ensures a call to * CreateModel completes only once. You choose the value to pass. For * example, An issue might prevent you from getting a response from * CreateModel. In this case, safely retry your call to * CreateModel 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 starting multiple training jobs. 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 CreateModel. * An idempotency token is active for 8 hours.

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

ClientToken is an idempotency token that ensures a call to * CreateModel completes only once. You choose the value to pass. For * example, An issue might prevent you from getting a response from * CreateModel. In this case, safely retry your call to * CreateModel 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 starting multiple training jobs. 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 CreateModel. * An idempotency token is active for 8 hours.

*/ inline CreateModelRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The location where Amazon Lookout for Vision saves the training results.

*/ inline const OutputConfig& GetOutputConfig() const{ return m_outputConfig; } /** *

The location where Amazon Lookout for Vision saves the training results.

*/ inline bool OutputConfigHasBeenSet() const { return m_outputConfigHasBeenSet; } /** *

The location where Amazon Lookout for Vision saves the training results.

*/ inline void SetOutputConfig(const OutputConfig& value) { m_outputConfigHasBeenSet = true; m_outputConfig = value; } /** *

The location where Amazon Lookout for Vision saves the training results.

*/ inline void SetOutputConfig(OutputConfig&& value) { m_outputConfigHasBeenSet = true; m_outputConfig = std::move(value); } /** *

The location where Amazon Lookout for Vision saves the training results.

*/ inline CreateModelRequest& WithOutputConfig(const OutputConfig& value) { SetOutputConfig(value); return *this;} /** *

The location where Amazon Lookout for Vision saves the training results.

*/ inline CreateModelRequest& WithOutputConfig(OutputConfig&& value) { SetOutputConfig(std::move(value)); return *this;} /** *

The identifier for your AWS KMS key. The key is used to encrypt training and * test images copied into the service for model training. Your source images are * unaffected. If this parameter is not specified, the copied images are encrypted * by a key that AWS owns and manages.

*/ inline const Aws::String& GetKmsKeyId() const{ return m_kmsKeyId; } /** *

The identifier for your AWS KMS key. The key is used to encrypt training and * test images copied into the service for model training. Your source images are * unaffected. If this parameter is not specified, the copied images are encrypted * by a key that AWS owns and manages.

*/ inline bool KmsKeyIdHasBeenSet() const { return m_kmsKeyIdHasBeenSet; } /** *

The identifier for your AWS KMS key. The key is used to encrypt training and * test images copied into the service for model training. Your source images are * unaffected. If this parameter is not specified, the copied images are encrypted * by a key that AWS owns and manages.

*/ inline void SetKmsKeyId(const Aws::String& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = value; } /** *

The identifier for your AWS KMS key. The key is used to encrypt training and * test images copied into the service for model training. Your source images are * unaffected. If this parameter is not specified, the copied images are encrypted * by a key that AWS owns and manages.

*/ inline void SetKmsKeyId(Aws::String&& value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId = std::move(value); } /** *

The identifier for your AWS KMS key. The key is used to encrypt training and * test images copied into the service for model training. Your source images are * unaffected. If this parameter is not specified, the copied images are encrypted * by a key that AWS owns and manages.

*/ inline void SetKmsKeyId(const char* value) { m_kmsKeyIdHasBeenSet = true; m_kmsKeyId.assign(value); } /** *

The identifier for your AWS KMS key. The key is used to encrypt training and * test images copied into the service for model training. Your source images are * unaffected. If this parameter is not specified, the copied images are encrypted * by a key that AWS owns and manages.

*/ inline CreateModelRequest& WithKmsKeyId(const Aws::String& value) { SetKmsKeyId(value); return *this;} /** *

The identifier for your AWS KMS key. The key is used to encrypt training and * test images copied into the service for model training. Your source images are * unaffected. If this parameter is not specified, the copied images are encrypted * by a key that AWS owns and manages.

*/ inline CreateModelRequest& WithKmsKeyId(Aws::String&& value) { SetKmsKeyId(std::move(value)); return *this;} /** *

The identifier for your AWS KMS key. The key is used to encrypt training and * test images copied into the service for model training. Your source images are * unaffected. If this parameter is not specified, the copied images are encrypted * by a key that AWS owns and manages.

*/ inline CreateModelRequest& WithKmsKeyId(const char* value) { SetKmsKeyId(value); return *this;} /** *

A set of tags (key-value pairs) that you want to attach to the model.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A set of tags (key-value pairs) that you want to attach to the model.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A set of tags (key-value pairs) that you want to attach to the model.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A set of tags (key-value pairs) that you want to attach to the model.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A set of tags (key-value pairs) that you want to attach to the model.

*/ inline CreateModelRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A set of tags (key-value pairs) that you want to attach to the model.

*/ inline CreateModelRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A set of tags (key-value pairs) that you want to attach to the model.

*/ inline CreateModelRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A set of tags (key-value pairs) that you want to attach to the model.

*/ inline CreateModelRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_projectName; bool m_projectNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; OutputConfig m_outputConfig; bool m_outputConfigHasBeenSet = false; Aws::String m_kmsKeyId; bool m_kmsKeyIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace LookoutforVision } // namespace Aws