AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GetCognitoEventsResult.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace CognitoSync {
23namespace Model {
30 public:
31 AWS_COGNITOSYNC_API GetCognitoEventsResult() = default;
34
36
39 inline const Aws::Map<Aws::String, Aws::String>& GetEvents() const { return m_events; }
40 template <typename EventsT = Aws::Map<Aws::String, Aws::String>>
41 void SetEvents(EventsT&& value) {
42 m_eventsHasBeenSet = true;
43 m_events = std::forward<EventsT>(value);
44 }
45 template <typename EventsT = Aws::Map<Aws::String, Aws::String>>
47 SetEvents(std::forward<EventsT>(value));
48 return *this;
49 }
50 template <typename EventsKeyT = Aws::String, typename EventsValueT = Aws::String>
51 GetCognitoEventsResult& AddEvents(EventsKeyT&& key, EventsValueT&& value) {
52 m_eventsHasBeenSet = true;
53 m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value));
54 return *this;
55 }
57
59
60 inline const Aws::String& GetRequestId() const { return m_requestId; }
61 template <typename RequestIdT = Aws::String>
62 void SetRequestId(RequestIdT&& value) {
63 m_requestIdHasBeenSet = true;
64 m_requestId = std::forward<RequestIdT>(value);
65 }
66 template <typename RequestIdT = Aws::String>
68 SetRequestId(std::forward<RequestIdT>(value));
69 return *this;
70 }
72 private:
74
75 Aws::String m_requestId;
76 bool m_eventsHasBeenSet = false;
77 bool m_requestIdHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CognitoSync
82} // namespace Aws
AWS_COGNITOSYNC_API GetCognitoEventsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCognitoEventsResult & WithEvents(EventsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetEvents() const
AWS_COGNITOSYNC_API GetCognitoEventsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_COGNITOSYNC_API GetCognitoEventsResult()=default
GetCognitoEventsResult & AddEvents(EventsKeyT &&key, EventsValueT &&value)
GetCognitoEventsResult & WithRequestId(RequestIdT &&value)
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
Aws::Utils::Json::JsonValue JsonValue