/** * 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 LexModelsV2 { namespace Model { /** */ class StartTestSetGenerationRequest : public LexModelsV2Request { public: AWS_LEXMODELSV2_API StartTestSetGenerationRequest(); // 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 "StartTestSetGeneration"; } AWS_LEXMODELSV2_API Aws::String SerializePayload() const override; /** *

The test set name for the test set generation request.

*/ inline const Aws::String& GetTestSetName() const{ return m_testSetName; } /** *

The test set name for the test set generation request.

*/ inline bool TestSetNameHasBeenSet() const { return m_testSetNameHasBeenSet; } /** *

The test set name for the test set generation request.

*/ inline void SetTestSetName(const Aws::String& value) { m_testSetNameHasBeenSet = true; m_testSetName = value; } /** *

The test set name for the test set generation request.

*/ inline void SetTestSetName(Aws::String&& value) { m_testSetNameHasBeenSet = true; m_testSetName = std::move(value); } /** *

The test set name for the test set generation request.

*/ inline void SetTestSetName(const char* value) { m_testSetNameHasBeenSet = true; m_testSetName.assign(value); } /** *

The test set name for the test set generation request.

*/ inline StartTestSetGenerationRequest& WithTestSetName(const Aws::String& value) { SetTestSetName(value); return *this;} /** *

The test set name for the test set generation request.

*/ inline StartTestSetGenerationRequest& WithTestSetName(Aws::String&& value) { SetTestSetName(std::move(value)); return *this;} /** *

The test set name for the test set generation request.

*/ inline StartTestSetGenerationRequest& WithTestSetName(const char* value) { SetTestSetName(value); return *this;} /** *

The test set description for the test set generation request.

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

The test set description for the test set generation request.

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

The test set description for the test set generation request.

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

The test set description for the test set generation request.

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

The test set description for the test set generation request.

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

The test set description for the test set generation request.

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

The test set description for the test set generation request.

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

The test set description for the test set generation request.

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

The Amazon S3 storage location for the test set generation.

*/ inline const TestSetStorageLocation& GetStorageLocation() const{ return m_storageLocation; } /** *

The Amazon S3 storage location for the test set generation.

*/ inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; } /** *

The Amazon S3 storage location for the test set generation.

*/ inline void SetStorageLocation(const TestSetStorageLocation& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; } /** *

The Amazon S3 storage location for the test set generation.

*/ inline void SetStorageLocation(TestSetStorageLocation&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::move(value); } /** *

The Amazon S3 storage location for the test set generation.

*/ inline StartTestSetGenerationRequest& WithStorageLocation(const TestSetStorageLocation& value) { SetStorageLocation(value); return *this;} /** *

The Amazon S3 storage location for the test set generation.

*/ inline StartTestSetGenerationRequest& WithStorageLocation(TestSetStorageLocation&& value) { SetStorageLocation(std::move(value)); return *this;} /** *

The data source for the test set generation.

*/ inline const TestSetGenerationDataSource& GetGenerationDataSource() const{ return m_generationDataSource; } /** *

The data source for the test set generation.

*/ inline bool GenerationDataSourceHasBeenSet() const { return m_generationDataSourceHasBeenSet; } /** *

The data source for the test set generation.

*/ inline void SetGenerationDataSource(const TestSetGenerationDataSource& value) { m_generationDataSourceHasBeenSet = true; m_generationDataSource = value; } /** *

The data source for the test set generation.

*/ inline void SetGenerationDataSource(TestSetGenerationDataSource&& value) { m_generationDataSourceHasBeenSet = true; m_generationDataSource = std::move(value); } /** *

The data source for the test set generation.

*/ inline StartTestSetGenerationRequest& WithGenerationDataSource(const TestSetGenerationDataSource& value) { SetGenerationDataSource(value); return *this;} /** *

The data source for the test set generation.

*/ inline StartTestSetGenerationRequest& WithGenerationDataSource(TestSetGenerationDataSource&& value) { SetGenerationDataSource(std::move(value)); return *this;} /** *

The roleARN used for any operation in the test set to access resources in the * Amazon Web Services account.

*/ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** *

The roleARN used for any operation in the test set to access resources in the * Amazon Web Services account.

*/ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** *

The roleARN used for any operation in the test set to access resources in the * Amazon Web Services account.

*/ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** *

The roleARN used for any operation in the test set to access resources in the * Amazon Web Services account.

*/ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** *

The roleARN used for any operation in the test set to access resources in the * Amazon Web Services account.

*/ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** *

The roleARN used for any operation in the test set to access resources in the * Amazon Web Services account.

*/ inline StartTestSetGenerationRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** *

The roleARN used for any operation in the test set to access resources in the * Amazon Web Services account.

*/ inline StartTestSetGenerationRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** *

The roleARN used for any operation in the test set to access resources in the * Amazon Web Services account.

*/ inline StartTestSetGenerationRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} /** *

A list of tags to add to the test set. You can only add tags when you * import/generate a new test set. You can't use the UpdateTestSet * operation to update tags. To update tags, use the TagResource * operation.

*/ inline const Aws::Map& GetTestSetTags() const{ return m_testSetTags; } /** *

A list of tags to add to the test set. You can only add tags when you * import/generate a new test set. You can't use the UpdateTestSet * operation to update tags. To update tags, use the TagResource * operation.

*/ inline bool TestSetTagsHasBeenSet() const { return m_testSetTagsHasBeenSet; } /** *

A list of tags to add to the test set. You can only add tags when you * import/generate a new test set. You can't use the UpdateTestSet * operation to update tags. To update tags, use the TagResource * operation.

*/ inline void SetTestSetTags(const Aws::Map& value) { m_testSetTagsHasBeenSet = true; m_testSetTags = value; } /** *

A list of tags to add to the test set. You can only add tags when you * import/generate a new test set. You can't use the UpdateTestSet * operation to update tags. To update tags, use the TagResource * operation.

*/ inline void SetTestSetTags(Aws::Map&& value) { m_testSetTagsHasBeenSet = true; m_testSetTags = std::move(value); } /** *

A list of tags to add to the test set. You can only add tags when you * import/generate a new test set. You can't use the UpdateTestSet * operation to update tags. To update tags, use the TagResource * operation.

*/ inline StartTestSetGenerationRequest& WithTestSetTags(const Aws::Map& value) { SetTestSetTags(value); return *this;} /** *

A list of tags to add to the test set. You can only add tags when you * import/generate a new test set. You can't use the UpdateTestSet * operation to update tags. To update tags, use the TagResource * operation.

*/ inline StartTestSetGenerationRequest& WithTestSetTags(Aws::Map&& value) { SetTestSetTags(std::move(value)); return *this;} /** *

A list of tags to add to the test set. You can only add tags when you * import/generate a new test set. You can't use the UpdateTestSet * operation to update tags. To update tags, use the TagResource * operation.

*/ inline StartTestSetGenerationRequest& AddTestSetTags(const Aws::String& key, const Aws::String& value) { m_testSetTagsHasBeenSet = true; m_testSetTags.emplace(key, value); return *this; } /** *

A list of tags to add to the test set. You can only add tags when you * import/generate a new test set. You can't use the UpdateTestSet * operation to update tags. To update tags, use the TagResource * operation.

*/ inline StartTestSetGenerationRequest& AddTestSetTags(Aws::String&& key, const Aws::String& value) { m_testSetTagsHasBeenSet = true; m_testSetTags.emplace(std::move(key), value); return *this; } /** *

A list of tags to add to the test set. You can only add tags when you * import/generate a new test set. You can't use the UpdateTestSet * operation to update tags. To update tags, use the TagResource * operation.

*/ inline StartTestSetGenerationRequest& AddTestSetTags(const Aws::String& key, Aws::String&& value) { m_testSetTagsHasBeenSet = true; m_testSetTags.emplace(key, std::move(value)); return *this; } /** *

A list of tags to add to the test set. You can only add tags when you * import/generate a new test set. You can't use the UpdateTestSet * operation to update tags. To update tags, use the TagResource * operation.

*/ inline StartTestSetGenerationRequest& AddTestSetTags(Aws::String&& key, Aws::String&& value) { m_testSetTagsHasBeenSet = true; m_testSetTags.emplace(std::move(key), std::move(value)); return *this; } /** *

A list of tags to add to the test set. You can only add tags when you * import/generate a new test set. You can't use the UpdateTestSet * operation to update tags. To update tags, use the TagResource * operation.

*/ inline StartTestSetGenerationRequest& AddTestSetTags(const char* key, Aws::String&& value) { m_testSetTagsHasBeenSet = true; m_testSetTags.emplace(key, std::move(value)); return *this; } /** *

A list of tags to add to the test set. You can only add tags when you * import/generate a new test set. You can't use the UpdateTestSet * operation to update tags. To update tags, use the TagResource * operation.

*/ inline StartTestSetGenerationRequest& AddTestSetTags(Aws::String&& key, const char* value) { m_testSetTagsHasBeenSet = true; m_testSetTags.emplace(std::move(key), value); return *this; } /** *

A list of tags to add to the test set. You can only add tags when you * import/generate a new test set. You can't use the UpdateTestSet * operation to update tags. To update tags, use the TagResource * operation.

*/ inline StartTestSetGenerationRequest& AddTestSetTags(const char* key, const char* value) { m_testSetTagsHasBeenSet = true; m_testSetTags.emplace(key, value); return *this; } private: Aws::String m_testSetName; bool m_testSetNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; TestSetStorageLocation m_storageLocation; bool m_storageLocationHasBeenSet = false; TestSetGenerationDataSource m_generationDataSource; bool m_generationDataSourceHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; Aws::Map m_testSetTags; bool m_testSetTagsHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws