AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
CreateAgentContextRequest.h
1
6#pragma once
7#include <aws/context/ContextRequest.h>
8#include <aws/context/Context_EXPORTS.h>
9#include <aws/context/model/ConnectionMapping.h>
10#include <aws/context/model/EntityResolutionConfig.h>
11#include <aws/context/model/TraceAnalysisConfig.h>
12#include <aws/context/model/TrustedIdentitySource.h>
13#include <aws/context/model/WorkforceSignInConfig.h>
14#include <aws/core/utils/UUID.h>
15#include <aws/core/utils/memory/stl/AWSMap.h>
16#include <aws/core/utils/memory/stl/AWSString.h>
17#include <aws/core/utils/memory/stl/AWSVector.h>
18
19#include <utility>
20
21namespace Aws {
22namespace Context {
23namespace Model {
24
28 public:
29 AWS_CONTEXT_API CreateAgentContextRequest() = 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 "CreateAgentContext"; }
36
37 AWS_CONTEXT_API Aws::String SerializePayload() const override;
38
40
42
49 inline const Aws::String& GetClientToken() const { return m_clientToken; }
50 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
51 template <typename ClientTokenT = Aws::String>
52 void SetClientToken(ClientTokenT&& value) {
53 m_clientTokenHasBeenSet = true;
54 m_clientToken = std::forward<ClientTokenT>(value);
55 }
56 template <typename ClientTokenT = Aws::String>
58 SetClientToken(std::forward<ClientTokenT>(value));
59 return *this;
60 }
62
64
68 inline const Aws::String& GetName() const { return m_name; }
69 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
70 template <typename NameT = Aws::String>
71 void SetName(NameT&& value) {
72 m_nameHasBeenSet = true;
73 m_name = std::forward<NameT>(value);
74 }
75 template <typename NameT = Aws::String>
77 SetName(std::forward<NameT>(value));
78 return *this;
79 }
81
83
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
112 inline const Aws::Vector<ConnectionMapping>& GetConnectionMappings() const { return m_connectionMappings; }
113 inline bool ConnectionMappingsHasBeenSet() const { return m_connectionMappingsHasBeenSet; }
114 template <typename ConnectionMappingsT = Aws::Vector<ConnectionMapping>>
115 void SetConnectionMappings(ConnectionMappingsT&& value) {
116 m_connectionMappingsHasBeenSet = true;
117 m_connectionMappings = std::forward<ConnectionMappingsT>(value);
118 }
119 template <typename ConnectionMappingsT = Aws::Vector<ConnectionMapping>>
120 CreateAgentContextRequest& WithConnectionMappings(ConnectionMappingsT&& value) {
121 SetConnectionMappings(std::forward<ConnectionMappingsT>(value));
122 return *this;
123 }
124 template <typename ConnectionMappingsT = ConnectionMapping>
125 CreateAgentContextRequest& AddConnectionMappings(ConnectionMappingsT&& value) {
126 m_connectionMappingsHasBeenSet = true;
127 m_connectionMappings.emplace_back(std::forward<ConnectionMappingsT>(value));
128 return *this;
129 }
131
133
137 inline const TraceAnalysisConfig& GetTraceAnalysisConfig() const { return m_traceAnalysisConfig; }
138 inline bool TraceAnalysisConfigHasBeenSet() const { return m_traceAnalysisConfigHasBeenSet; }
139 template <typename TraceAnalysisConfigT = TraceAnalysisConfig>
140 void SetTraceAnalysisConfig(TraceAnalysisConfigT&& value) {
141 m_traceAnalysisConfigHasBeenSet = true;
142 m_traceAnalysisConfig = std::forward<TraceAnalysisConfigT>(value);
143 }
144 template <typename TraceAnalysisConfigT = TraceAnalysisConfig>
145 CreateAgentContextRequest& WithTraceAnalysisConfig(TraceAnalysisConfigT&& value) {
146 SetTraceAnalysisConfig(std::forward<TraceAnalysisConfigT>(value));
147 return *this;
148 }
150
152
158 inline const WorkforceSignInConfig& GetWorkforceSignInConfig() const { return m_workforceSignInConfig; }
159 inline bool WorkforceSignInConfigHasBeenSet() const { return m_workforceSignInConfigHasBeenSet; }
160 template <typename WorkforceSignInConfigT = WorkforceSignInConfig>
161 void SetWorkforceSignInConfig(WorkforceSignInConfigT&& value) {
162 m_workforceSignInConfigHasBeenSet = true;
163 m_workforceSignInConfig = std::forward<WorkforceSignInConfigT>(value);
164 }
165 template <typename WorkforceSignInConfigT = WorkforceSignInConfig>
166 CreateAgentContextRequest& WithWorkforceSignInConfig(WorkforceSignInConfigT&& value) {
167 SetWorkforceSignInConfig(std::forward<WorkforceSignInConfigT>(value));
168 return *this;
169 }
171
173
178 inline const EntityResolutionConfig& GetEntityResolutionConfig() const { return m_entityResolutionConfig; }
179 inline bool EntityResolutionConfigHasBeenSet() const { return m_entityResolutionConfigHasBeenSet; }
180 template <typename EntityResolutionConfigT = EntityResolutionConfig>
181 void SetEntityResolutionConfig(EntityResolutionConfigT&& value) {
182 m_entityResolutionConfigHasBeenSet = true;
183 m_entityResolutionConfig = std::forward<EntityResolutionConfigT>(value);
184 }
185 template <typename EntityResolutionConfigT = EntityResolutionConfig>
186 CreateAgentContextRequest& WithEntityResolutionConfig(EntityResolutionConfigT&& value) {
187 SetEntityResolutionConfig(std::forward<EntityResolutionConfigT>(value));
188 return *this;
189 }
191
193
199 inline const Aws::Vector<TrustedIdentitySource>& GetTrustedIdentitySources() const { return m_trustedIdentitySources; }
200 inline bool TrustedIdentitySourcesHasBeenSet() const { return m_trustedIdentitySourcesHasBeenSet; }
201 template <typename TrustedIdentitySourcesT = Aws::Vector<TrustedIdentitySource>>
202 void SetTrustedIdentitySources(TrustedIdentitySourcesT&& value) {
203 m_trustedIdentitySourcesHasBeenSet = true;
204 m_trustedIdentitySources = std::forward<TrustedIdentitySourcesT>(value);
205 }
206 template <typename TrustedIdentitySourcesT = Aws::Vector<TrustedIdentitySource>>
207 CreateAgentContextRequest& WithTrustedIdentitySources(TrustedIdentitySourcesT&& value) {
208 SetTrustedIdentitySources(std::forward<TrustedIdentitySourcesT>(value));
209 return *this;
210 }
211 template <typename TrustedIdentitySourcesT = TrustedIdentitySource>
212 CreateAgentContextRequest& AddTrustedIdentitySources(TrustedIdentitySourcesT&& value) {
213 m_trustedIdentitySourcesHasBeenSet = true;
214 m_trustedIdentitySources.emplace_back(std::forward<TrustedIdentitySourcesT>(value));
215 return *this;
216 }
218
220
229 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
230 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
231 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
232 void SetTags(TagsT&& value) {
233 m_tagsHasBeenSet = true;
234 m_tags = std::forward<TagsT>(value);
235 }
236 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
238 SetTags(std::forward<TagsT>(value));
239 return *this;
240 }
241 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
242 CreateAgentContextRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
243 m_tagsHasBeenSet = true;
244 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
245 return *this;
246 }
248
250
261 inline const Aws::Vector<Aws::String>& GetCurationPolicyIds() const { return m_curationPolicyIds; }
262 inline bool CurationPolicyIdsHasBeenSet() const { return m_curationPolicyIdsHasBeenSet; }
263 template <typename CurationPolicyIdsT = Aws::Vector<Aws::String>>
264 void SetCurationPolicyIds(CurationPolicyIdsT&& value) {
265 m_curationPolicyIdsHasBeenSet = true;
266 m_curationPolicyIds = std::forward<CurationPolicyIdsT>(value);
267 }
268 template <typename CurationPolicyIdsT = Aws::Vector<Aws::String>>
270 SetCurationPolicyIds(std::forward<CurationPolicyIdsT>(value));
271 return *this;
272 }
273 template <typename CurationPolicyIdsT = Aws::String>
274 CreateAgentContextRequest& AddCurationPolicyIds(CurationPolicyIdsT&& value) {
275 m_curationPolicyIdsHasBeenSet = true;
276 m_curationPolicyIds.emplace_back(std::forward<CurationPolicyIdsT>(value));
277 return *this;
278 }
280 private:
282
283 Aws::String m_name;
284
285 Aws::String m_description;
286
287 Aws::Vector<ConnectionMapping> m_connectionMappings;
288
289 TraceAnalysisConfig m_traceAnalysisConfig;
290
291 WorkforceSignInConfig m_workforceSignInConfig;
292
293 EntityResolutionConfig m_entityResolutionConfig;
294
295 Aws::Vector<TrustedIdentitySource> m_trustedIdentitySources;
296
298
299 Aws::Vector<Aws::String> m_curationPolicyIds;
300 bool m_clientTokenHasBeenSet = true;
301 bool m_nameHasBeenSet = false;
302 bool m_descriptionHasBeenSet = false;
303 bool m_connectionMappingsHasBeenSet = false;
304 bool m_traceAnalysisConfigHasBeenSet = false;
305 bool m_workforceSignInConfigHasBeenSet = false;
306 bool m_entityResolutionConfigHasBeenSet = false;
307 bool m_trustedIdentitySourcesHasBeenSet = false;
308 bool m_tagsHasBeenSet = false;
309 bool m_curationPolicyIdsHasBeenSet = false;
310};
311
312} // namespace Model
313} // namespace Context
314} // namespace Aws
CreateAgentContextRequest & WithName(NameT &&value)
void SetWorkforceSignInConfig(WorkforceSignInConfigT &&value)
CreateAgentContextRequest & AddTrustedIdentitySources(TrustedIdentitySourcesT &&value)
CreateAgentContextRequest & WithCurationPolicyIds(CurationPolicyIdsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const Aws::Vector< TrustedIdentitySource > & GetTrustedIdentitySources() const
const Aws::Vector< Aws::String > & GetCurationPolicyIds() const
void SetEntityResolutionConfig(EntityResolutionConfigT &&value)
CreateAgentContextRequest & WithTags(TagsT &&value)
const TraceAnalysisConfig & GetTraceAnalysisConfig() const
CreateAgentContextRequest & WithClientToken(ClientTokenT &&value)
CreateAgentContextRequest & AddConnectionMappings(ConnectionMappingsT &&value)
CreateAgentContextRequest & AddCurationPolicyIds(CurationPolicyIdsT &&value)
CreateAgentContextRequest & WithWorkforceSignInConfig(WorkforceSignInConfigT &&value)
CreateAgentContextRequest & WithTrustedIdentitySources(TrustedIdentitySourcesT &&value)
CreateAgentContextRequest & WithTraceAnalysisConfig(TraceAnalysisConfigT &&value)
const EntityResolutionConfig & GetEntityResolutionConfig() const
AWS_CONTEXT_API CreateAgentContextRequest()=default
AWS_CONTEXT_API Aws::String SerializePayload() const override
const WorkforceSignInConfig & GetWorkforceSignInConfig() const
CreateAgentContextRequest & WithEntityResolutionConfig(EntityResolutionConfigT &&value)
const Aws::Vector< ConnectionMapping > & GetConnectionMappings() const
void SetTraceAnalysisConfig(TraceAnalysisConfigT &&value)
CreateAgentContextRequest & WithConnectionMappings(ConnectionMappingsT &&value)
CreateAgentContextRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CONTEXT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAgentContextRequest & WithDescription(DescriptionT &&value)
void SetTrustedIdentitySources(TrustedIdentitySourcesT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector