AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
11
12namespace Aws
13{
14template<typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CognitoSync
25{
26namespace Model
27{
34 {
35 public:
36 AWS_COGNITOSYNC_API GetCognitoEventsResult() = default;
39
40
42
45 inline const Aws::Map<Aws::String, Aws::String>& GetEvents() const { return m_events; }
46 template<typename EventsT = Aws::Map<Aws::String, Aws::String>>
47 void SetEvents(EventsT&& value) { m_eventsHasBeenSet = true; m_events = std::forward<EventsT>(value); }
48 template<typename EventsT = Aws::Map<Aws::String, Aws::String>>
49 GetCognitoEventsResult& WithEvents(EventsT&& value) { SetEvents(std::forward<EventsT>(value)); return *this;}
50 template<typename EventsKeyT = Aws::String, typename EventsValueT = Aws::String>
51 GetCognitoEventsResult& AddEvents(EventsKeyT&& key, EventsValueT&& value) {
52 m_eventsHasBeenSet = true; m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value)); return *this;
53 }
55
57
58 inline const Aws::String& GetRequestId() const { return m_requestId; }
59 template<typename RequestIdT = Aws::String>
60 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
61 template<typename RequestIdT = Aws::String>
62 GetCognitoEventsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
64 private:
65
67 bool m_eventsHasBeenSet = false;
68
69 Aws::String m_requestId;
70 bool m_requestIdHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace CognitoSync
75} // 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