AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
CreateParallelDataRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/translate/TranslateRequest.h>
11#include <aws/translate/Translate_EXPORTS.h>
12#include <aws/translate/model/EncryptionKey.h>
13#include <aws/translate/model/ParallelDataConfig.h>
14#include <aws/translate/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Translate {
20namespace Model {
21
25 public:
26 AWS_TRANSLATE_API CreateParallelDataRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateParallelData"; }
33
34 AWS_TRANSLATE_API Aws::String SerializePayload() const override;
35
37
39
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetDescription() const { return m_description; }
62 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
63 template <typename DescriptionT = Aws::String>
64 void SetDescription(DescriptionT&& value) {
65 m_descriptionHasBeenSet = true;
66 m_description = std::forward<DescriptionT>(value);
67 }
68 template <typename DescriptionT = Aws::String>
70 SetDescription(std::forward<DescriptionT>(value));
71 return *this;
72 }
74
76
79 inline const ParallelDataConfig& GetParallelDataConfig() const { return m_parallelDataConfig; }
80 inline bool ParallelDataConfigHasBeenSet() const { return m_parallelDataConfigHasBeenSet; }
81 template <typename ParallelDataConfigT = ParallelDataConfig>
82 void SetParallelDataConfig(ParallelDataConfigT&& value) {
83 m_parallelDataConfigHasBeenSet = true;
84 m_parallelDataConfig = std::forward<ParallelDataConfigT>(value);
85 }
86 template <typename ParallelDataConfigT = ParallelDataConfig>
87 CreateParallelDataRequest& WithParallelDataConfig(ParallelDataConfigT&& value) {
88 SetParallelDataConfig(std::forward<ParallelDataConfigT>(value));
89 return *this;
90 }
92
94
95 inline const EncryptionKey& GetEncryptionKey() const { return m_encryptionKey; }
96 inline bool EncryptionKeyHasBeenSet() const { return m_encryptionKeyHasBeenSet; }
97 template <typename EncryptionKeyT = EncryptionKey>
98 void SetEncryptionKey(EncryptionKeyT&& value) {
99 m_encryptionKeyHasBeenSet = true;
100 m_encryptionKey = std::forward<EncryptionKeyT>(value);
101 }
102 template <typename EncryptionKeyT = EncryptionKey>
104 SetEncryptionKey(std::forward<EncryptionKeyT>(value));
105 return *this;
106 }
108
110
114 inline const Aws::String& GetClientToken() const { return m_clientToken; }
115 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
116 template <typename ClientTokenT = Aws::String>
117 void SetClientToken(ClientTokenT&& value) {
118 m_clientTokenHasBeenSet = true;
119 m_clientToken = std::forward<ClientTokenT>(value);
120 }
121 template <typename ClientTokenT = Aws::String>
123 SetClientToken(std::forward<ClientTokenT>(value));
124 return *this;
125 }
127
129
136 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
137 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
138 template <typename TagsT = Aws::Vector<Tag>>
139 void SetTags(TagsT&& value) {
140 m_tagsHasBeenSet = true;
141 m_tags = std::forward<TagsT>(value);
142 }
143 template <typename TagsT = Aws::Vector<Tag>>
145 SetTags(std::forward<TagsT>(value));
146 return *this;
147 }
148 template <typename TagsT = Tag>
150 m_tagsHasBeenSet = true;
151 m_tags.emplace_back(std::forward<TagsT>(value));
152 return *this;
153 }
155 private:
156 Aws::String m_name;
157 bool m_nameHasBeenSet = false;
158
159 Aws::String m_description;
160 bool m_descriptionHasBeenSet = false;
161
162 ParallelDataConfig m_parallelDataConfig;
163 bool m_parallelDataConfigHasBeenSet = false;
164
165 EncryptionKey m_encryptionKey;
166 bool m_encryptionKeyHasBeenSet = false;
167
169 bool m_clientTokenHasBeenSet = true;
170
171 Aws::Vector<Tag> m_tags;
172 bool m_tagsHasBeenSet = false;
173};
174
175} // namespace Model
176} // namespace Translate
177} // 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