AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateParallelDataRequest.h
1
6#pragma once
7#include <aws/translate/Translate_EXPORTS.h>
8#include <aws/translate/TranslateRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/translate/model/ParallelDataConfig.h>
11#include <aws/translate/model/EncryptionKey.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/translate/model/Tag.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace Translate
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_TRANSLATE_API CreateParallelDataRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateParallelData"; }
36
37 AWS_TRANSLATE_API Aws::String SerializePayload() const override;
38
40
41
43
47 inline const Aws::String& GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 template<typename NameT = Aws::String>
50 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
51 template<typename NameT = Aws::String>
52 CreateParallelDataRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 CreateParallelDataRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline const ParallelDataConfig& GetParallelDataConfig() const { return m_parallelDataConfig; }
72 inline bool ParallelDataConfigHasBeenSet() const { return m_parallelDataConfigHasBeenSet; }
73 template<typename ParallelDataConfigT = ParallelDataConfig>
74 void SetParallelDataConfig(ParallelDataConfigT&& value) { m_parallelDataConfigHasBeenSet = true; m_parallelDataConfig = std::forward<ParallelDataConfigT>(value); }
75 template<typename ParallelDataConfigT = ParallelDataConfig>
76 CreateParallelDataRequest& WithParallelDataConfig(ParallelDataConfigT&& value) { SetParallelDataConfig(std::forward<ParallelDataConfigT>(value)); return *this;}
78
80
81 inline const EncryptionKey& GetEncryptionKey() const { return m_encryptionKey; }
82 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
83 template<typename EncryptionKeyT = EncryptionKey>
84 void SetEncryptionKey(EncryptionKeyT&& value) { m_encryptionKeyHasBeenSet = true; m_encryptionKey = std::forward<EncryptionKeyT>(value); }
85 template<typename EncryptionKeyT = EncryptionKey>
86 CreateParallelDataRequest& WithEncryptionKey(EncryptionKeyT&& value) { SetEncryptionKey(std::forward<EncryptionKeyT>(value)); return *this;}
88
90
94 inline const Aws::String& GetClientToken() const { return m_clientToken; }
95 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
96 template<typename ClientTokenT = Aws::String>
97 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
98 template<typename ClientTokenT = Aws::String>
99 CreateParallelDataRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
101
103
110 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
111 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
112 template<typename TagsT = Aws::Vector<Tag>>
113 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
114 template<typename TagsT = Aws::Vector<Tag>>
115 CreateParallelDataRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
116 template<typename TagsT = Tag>
117 CreateParallelDataRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
119 private:
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 ParallelDataConfig m_parallelDataConfig;
128 bool m_parallelDataConfigHasBeenSet = false;
129
130 EncryptionKey m_encryptionKey;
131 bool m_encryptionKeyHasBeenSet = false;
132
134 bool m_clientTokenHasBeenSet = true;
135
136 Aws::Vector<Tag> m_tags;
137 bool m_tagsHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace Translate
142} // namespace Aws
AWS_TRANSLATE_API Aws::String SerializePayload() const override
CreateParallelDataRequest & WithClientToken(ClientTokenT &&value)
CreateParallelDataRequest & WithTags(TagsT &&value)
AWS_TRANSLATE_API CreateParallelDataRequest()=default
CreateParallelDataRequest & WithDescription(DescriptionT &&value)
AWS_TRANSLATE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateParallelDataRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateParallelDataRequest & AddTags(TagsT &&value)
CreateParallelDataRequest & WithParallelDataConfig(ParallelDataConfigT &&value)
CreateParallelDataRequest & WithEncryptionKey(EncryptionKeyT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector