/** * 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 namespace Aws { namespace Rekognition { namespace Model { /** */ class AWS_REKOGNITION_API CreateProjectVersionRequest : public RekognitionRequest { public: CreateProjectVersionRequest(); // 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 "CreateProjectVersion"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the Amazon Rekognition Custom Labels project that manages the * model that you want to train.

*/ inline const Aws::String& GetProjectArn() const{ return m_projectArn; } /** *

The ARN of the Amazon Rekognition Custom Labels project that manages the * model that you want to train.

*/ inline bool ProjectArnHasBeenSet() const { return m_projectArnHasBeenSet; } /** *

The ARN of the Amazon Rekognition Custom Labels project that manages the * model that you want to train.

*/ inline void SetProjectArn(const Aws::String& value) { m_projectArnHasBeenSet = true; m_projectArn = value; } /** *

The ARN of the Amazon Rekognition Custom Labels project that manages the * model that you want to train.

*/ inline void SetProjectArn(Aws::String&& value) { m_projectArnHasBeenSet = true; m_projectArn = std::move(value); } /** *

The ARN of the Amazon Rekognition Custom Labels project that manages the * model that you want to train.

*/ inline void SetProjectArn(const char* value) { m_projectArnHasBeenSet = true; m_projectArn.assign(value); } /** *

The ARN of the Amazon Rekognition Custom Labels project that manages the * model that you want to train.

*/ inline CreateProjectVersionRequest& WithProjectArn(const Aws::String& value) { SetProjectArn(value); return *this;} /** *

The ARN of the Amazon Rekognition Custom Labels project that manages the * model that you want to train.

*/ inline CreateProjectVersionRequest& WithProjectArn(Aws::String&& value) { SetProjectArn(std::move(value)); return *this;} /** *

The ARN of the Amazon Rekognition Custom Labels project that manages the * model that you want to train.

*/ inline CreateProjectVersionRequest& WithProjectArn(const char* value) { SetProjectArn(value); return *this;} /** *

A name for the version of the model. This value must be unique.

*/ inline const Aws::String& GetVersionName() const{ return m_versionName; } /** *

A name for the version of the model. This value must be unique.

*/ inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; } /** *

A name for the version of the model. This value must be unique.

*/ inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; } /** *

A name for the version of the model. This value must be unique.

*/ inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); } /** *

A name for the version of the model. This value must be unique.

*/ inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); } /** *

A name for the version of the model. This value must be unique.

*/ inline CreateProjectVersionRequest& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;} /** *

A name for the version of the model. This value must be unique.

*/ inline CreateProjectVersionRequest& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;} /** *

A name for the version of the model. This value must be unique.

*/ inline CreateProjectVersionRequest& WithVersionName(const char* value) { SetVersionName(value); return *this;} /** *

The Amazon S3 location to store the results of training.

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

The Amazon S3 location to store the results of training.

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

The Amazon S3 location to store the results of training.

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

The Amazon S3 location to store the results of training.

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

The Amazon S3 location to store the results of training.

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

The Amazon S3 location to store the results of training.

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

The dataset to use for training.

*/ inline const TrainingData& GetTrainingData() const{ return m_trainingData; } /** *

The dataset to use for training.

*/ inline bool TrainingDataHasBeenSet() const { return m_trainingDataHasBeenSet; } /** *

The dataset to use for training.

*/ inline void SetTrainingData(const TrainingData& value) { m_trainingDataHasBeenSet = true; m_trainingData = value; } /** *

The dataset to use for training.

*/ inline void SetTrainingData(TrainingData&& value) { m_trainingDataHasBeenSet = true; m_trainingData = std::move(value); } /** *

The dataset to use for training.

*/ inline CreateProjectVersionRequest& WithTrainingData(const TrainingData& value) { SetTrainingData(value); return *this;} /** *

The dataset to use for training.

*/ inline CreateProjectVersionRequest& WithTrainingData(TrainingData&& value) { SetTrainingData(std::move(value)); return *this;} /** *

The dataset to use for testing.

*/ inline const TestingData& GetTestingData() const{ return m_testingData; } /** *

The dataset to use for testing.

*/ inline bool TestingDataHasBeenSet() const { return m_testingDataHasBeenSet; } /** *

The dataset to use for testing.

*/ inline void SetTestingData(const TestingData& value) { m_testingDataHasBeenSet = true; m_testingData = value; } /** *

The dataset to use for testing.

*/ inline void SetTestingData(TestingData&& value) { m_testingDataHasBeenSet = true; m_testingData = std::move(value); } /** *

The dataset to use for testing.

*/ inline CreateProjectVersionRequest& WithTestingData(const TestingData& value) { SetTestingData(value); return *this;} /** *

The dataset to use for testing.

*/ inline CreateProjectVersionRequest& WithTestingData(TestingData&& value) { SetTestingData(std::move(value)); return *this;} private: Aws::String m_projectArn; bool m_projectArnHasBeenSet; Aws::String m_versionName; bool m_versionNameHasBeenSet; OutputConfig m_outputConfig; bool m_outputConfigHasBeenSet; TrainingData m_trainingData; bool m_trainingDataHasBeenSet; TestingData m_testingData; bool m_testingDataHasBeenSet; }; } // namespace Model } // namespace Rekognition } // namespace Aws