/** * 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 #include namespace Aws { namespace Translate { namespace Model { /** */ class ImportTerminologyRequest : public TranslateRequest { public: AWS_TRANSLATE_API ImportTerminologyRequest(); // 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 "ImportTerminology"; } AWS_TRANSLATE_API Aws::String SerializePayload() const override; AWS_TRANSLATE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the custom terminology being imported.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the custom terminology being imported.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the custom terminology being imported.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the custom terminology being imported.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the custom terminology being imported.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the custom terminology being imported.

*/ inline ImportTerminologyRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the custom terminology being imported.

*/ inline ImportTerminologyRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the custom terminology being imported.

*/ inline ImportTerminologyRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The merge strategy of the custom terminology being imported. Currently, only * the OVERWRITE merge strategy is supported. In this case, the imported * terminology will overwrite an existing terminology of the same name.

*/ inline const MergeStrategy& GetMergeStrategy() const{ return m_mergeStrategy; } /** *

The merge strategy of the custom terminology being imported. Currently, only * the OVERWRITE merge strategy is supported. In this case, the imported * terminology will overwrite an existing terminology of the same name.

*/ inline bool MergeStrategyHasBeenSet() const { return m_mergeStrategyHasBeenSet; } /** *

The merge strategy of the custom terminology being imported. Currently, only * the OVERWRITE merge strategy is supported. In this case, the imported * terminology will overwrite an existing terminology of the same name.

*/ inline void SetMergeStrategy(const MergeStrategy& value) { m_mergeStrategyHasBeenSet = true; m_mergeStrategy = value; } /** *

The merge strategy of the custom terminology being imported. Currently, only * the OVERWRITE merge strategy is supported. In this case, the imported * terminology will overwrite an existing terminology of the same name.

*/ inline void SetMergeStrategy(MergeStrategy&& value) { m_mergeStrategyHasBeenSet = true; m_mergeStrategy = std::move(value); } /** *

The merge strategy of the custom terminology being imported. Currently, only * the OVERWRITE merge strategy is supported. In this case, the imported * terminology will overwrite an existing terminology of the same name.

*/ inline ImportTerminologyRequest& WithMergeStrategy(const MergeStrategy& value) { SetMergeStrategy(value); return *this;} /** *

The merge strategy of the custom terminology being imported. Currently, only * the OVERWRITE merge strategy is supported. In this case, the imported * terminology will overwrite an existing terminology of the same name.

*/ inline ImportTerminologyRequest& WithMergeStrategy(MergeStrategy&& value) { SetMergeStrategy(std::move(value)); return *this;} /** *

The description of the custom terminology being imported.

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

The description of the custom terminology being imported.

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

The description of the custom terminology being imported.

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

The description of the custom terminology being imported.

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

The description of the custom terminology being imported.

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

The description of the custom terminology being imported.

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

The description of the custom terminology being imported.

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

The description of the custom terminology being imported.

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

The terminology data for the custom terminology being imported.

*/ inline const TerminologyData& GetTerminologyData() const{ return m_terminologyData; } /** *

The terminology data for the custom terminology being imported.

*/ inline bool TerminologyDataHasBeenSet() const { return m_terminologyDataHasBeenSet; } /** *

The terminology data for the custom terminology being imported.

*/ inline void SetTerminologyData(const TerminologyData& value) { m_terminologyDataHasBeenSet = true; m_terminologyData = value; } /** *

The terminology data for the custom terminology being imported.

*/ inline void SetTerminologyData(TerminologyData&& value) { m_terminologyDataHasBeenSet = true; m_terminologyData = std::move(value); } /** *

The terminology data for the custom terminology being imported.

*/ inline ImportTerminologyRequest& WithTerminologyData(const TerminologyData& value) { SetTerminologyData(value); return *this;} /** *

The terminology data for the custom terminology being imported.

*/ inline ImportTerminologyRequest& WithTerminologyData(TerminologyData&& value) { SetTerminologyData(std::move(value)); return *this;} /** *

The encryption key for the custom terminology being imported.

*/ inline const EncryptionKey& GetEncryptionKey() const{ return m_encryptionKey; } /** *

The encryption key for the custom terminology being imported.

*/ inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; } /** *

The encryption key for the custom terminology being imported.

*/ inline void SetEncryptionKey(const EncryptionKey& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; } /** *

The encryption key for the custom terminology being imported.

*/ inline void SetEncryptionKey(EncryptionKey&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); } /** *

The encryption key for the custom terminology being imported.

*/ inline ImportTerminologyRequest& WithEncryptionKey(const EncryptionKey& value) { SetEncryptionKey(value); return *this;} /** *

The encryption key for the custom terminology being imported.

*/ inline ImportTerminologyRequest& WithEncryptionKey(EncryptionKey&& value) { SetEncryptionKey(std::move(value)); return *this;} /** *

Tags to be associated with this resource. A tag is a key-value pair that adds * metadata to a resource. Each tag key for the resource must be unique. For more * information, see Tagging * your resources.

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

Tags to be associated with this resource. A tag is a key-value pair that adds * metadata to a resource. Each tag key for the resource must be unique. For more * information, see Tagging * your resources.

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

Tags to be associated with this resource. A tag is a key-value pair that adds * metadata to a resource. Each tag key for the resource must be unique. For more * information, see Tagging * your resources.

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

Tags to be associated with this resource. A tag is a key-value pair that adds * metadata to a resource. Each tag key for the resource must be unique. For more * information, see Tagging * your resources.

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

Tags to be associated with this resource. A tag is a key-value pair that adds * metadata to a resource. Each tag key for the resource must be unique. For more * information, see Tagging * your resources.

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

Tags to be associated with this resource. A tag is a key-value pair that adds * metadata to a resource. Each tag key for the resource must be unique. For more * information, see Tagging * your resources.

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

Tags to be associated with this resource. A tag is a key-value pair that adds * metadata to a resource. Each tag key for the resource must be unique. For more * information, see Tagging * your resources.

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

Tags to be associated with this resource. A tag is a key-value pair that adds * metadata to a resource. Each tag key for the resource must be unique. For more * information, see Tagging * your resources.

*/ inline ImportTerminologyRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; MergeStrategy m_mergeStrategy; bool m_mergeStrategyHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; TerminologyData m_terminologyData; bool m_terminologyDataHasBeenSet = false; EncryptionKey m_encryptionKey; bool m_encryptionKeyHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Translate } // namespace Aws