/** * 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 CreateParallelDataRequest : public TranslateRequest { public: AWS_TRANSLATE_API CreateParallelDataRequest(); // 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 "CreateParallelData"; } AWS_TRANSLATE_API Aws::String SerializePayload() const override; AWS_TRANSLATE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A custom name for the parallel data resource in Amazon Translate. You must * assign a name that is unique in the account and region.

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

A custom name for the parallel data resource in Amazon Translate. You must * assign a name that is unique in the account and region.

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

A custom name for the parallel data resource in Amazon Translate. You must * assign a name that is unique in the account and region.

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

A custom name for the parallel data resource in Amazon Translate. You must * assign a name that is unique in the account and region.

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

A custom name for the parallel data resource in Amazon Translate. You must * assign a name that is unique in the account and region.

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

A custom name for the parallel data resource in Amazon Translate. You must * assign a name that is unique in the account and region.

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

A custom name for the parallel data resource in Amazon Translate. You must * assign a name that is unique in the account and region.

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

A custom name for the parallel data resource in Amazon Translate. You must * assign a name that is unique in the account and region.

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

A custom description for the parallel data resource in Amazon Translate.

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

A custom description for the parallel data resource in Amazon Translate.

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

A custom description for the parallel data resource in Amazon Translate.

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

A custom description for the parallel data resource in Amazon Translate.

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

A custom description for the parallel data resource in Amazon Translate.

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

A custom description for the parallel data resource in Amazon Translate.

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

A custom description for the parallel data resource in Amazon Translate.

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

A custom description for the parallel data resource in Amazon Translate.

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

Specifies the format and S3 location of the parallel data input file.

*/ inline const ParallelDataConfig& GetParallelDataConfig() const{ return m_parallelDataConfig; } /** *

Specifies the format and S3 location of the parallel data input file.

*/ inline bool ParallelDataConfigHasBeenSet() const { return m_parallelDataConfigHasBeenSet; } /** *

Specifies the format and S3 location of the parallel data input file.

*/ inline void SetParallelDataConfig(const ParallelDataConfig& value) { m_parallelDataConfigHasBeenSet = true; m_parallelDataConfig = value; } /** *

Specifies the format and S3 location of the parallel data input file.

*/ inline void SetParallelDataConfig(ParallelDataConfig&& value) { m_parallelDataConfigHasBeenSet = true; m_parallelDataConfig = std::move(value); } /** *

Specifies the format and S3 location of the parallel data input file.

*/ inline CreateParallelDataRequest& WithParallelDataConfig(const ParallelDataConfig& value) { SetParallelDataConfig(value); return *this;} /** *

Specifies the format and S3 location of the parallel data input file.

*/ inline CreateParallelDataRequest& WithParallelDataConfig(ParallelDataConfig&& value) { SetParallelDataConfig(std::move(value)); return *this;} inline const EncryptionKey& GetEncryptionKey() const{ return m_encryptionKey; } inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; } inline void SetEncryptionKey(const EncryptionKey& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = value; } inline void SetEncryptionKey(EncryptionKey&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::move(value); } inline CreateParallelDataRequest& WithEncryptionKey(const EncryptionKey& value) { SetEncryptionKey(value); return *this;} inline CreateParallelDataRequest& WithEncryptionKey(EncryptionKey&& value) { SetEncryptionKey(std::move(value)); return *this;} /** *

A unique identifier for the request. This token is automatically generated * when you use Amazon Translate through an AWS SDK.

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

A unique identifier for the request. This token is automatically generated * when you use Amazon Translate through an AWS SDK.

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

A unique identifier for the request. This token is automatically generated * when you use Amazon Translate through an AWS SDK.

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

A unique identifier for the request. This token is automatically generated * when you use Amazon Translate through an AWS SDK.

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

A unique identifier for the request. This token is automatically generated * when you use Amazon Translate through an AWS SDK.

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

A unique identifier for the request. This token is automatically generated * when you use Amazon Translate through an AWS SDK.

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

A unique identifier for the request. This token is automatically generated * when you use Amazon Translate through an AWS SDK.

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

A unique identifier for the request. This token is automatically generated * when you use Amazon Translate through an AWS SDK.

*/ inline CreateParallelDataRequest& WithClientToken(const char* value) { SetClientToken(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 CreateParallelDataRequest& 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 CreateParallelDataRequest& 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 CreateParallelDataRequest& 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 CreateParallelDataRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; ParallelDataConfig m_parallelDataConfig; bool m_parallelDataConfigHasBeenSet = false; EncryptionKey m_encryptionKey; bool m_encryptionKeyHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Translate } // namespace Aws