AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
GetCognitoEventsResult.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSync_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CognitoSync {
24namespace Model {
31 public:
32 AWS_COGNITOSYNC_API GetCognitoEventsResult() = default;
35
37
40 inline const Aws::Map<Aws::String, Aws::String>& GetEvents() const { return m_events; }
41 template <typename EventsT = Aws::Map<Aws::String, Aws::String>>
42 void SetEvents(EventsT&& value) {
43 m_eventsHasBeenSet = true;
44 m_events = std::forward<EventsT>(value);
45 }
46 template <typename EventsT = Aws::Map<Aws::String, Aws::String>>
48 SetEvents(std::forward<EventsT>(value));
49 return *this;
50 }
51 template <typename EventsKeyT = Aws::String, typename EventsValueT = Aws::String>
52 GetCognitoEventsResult& AddEvents(EventsKeyT&& key, EventsValueT&& value) {
53 m_eventsHasBeenSet = true;
54 m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value));
55 return *this;
56 }
58
60
61 inline const Aws::String& GetRequestId() const { return m_requestId; }
62 template <typename RequestIdT = Aws::String>
63 void SetRequestId(RequestIdT&& value) {
64 m_requestIdHasBeenSet = true;
65 m_requestId = std::forward<RequestIdT>(value);
66 }
67 template <typename RequestIdT = Aws::String>
69 SetRequestId(std::forward<RequestIdT>(value));
70 return *this;
71 }
73 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
74
75 private:
77
78 Aws::String m_requestId;
79 Aws::Http::HttpResponseCode m_HttpResponseCode;
80 bool m_eventsHasBeenSet = false;
81 bool m_requestIdHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace CognitoSync
86} // 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::Http::HttpResponseCode GetHttpResponseCode() 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