AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SetCognitoEventsRequest.h
1
6#pragma once
7#include <aws/cognito-sync/CognitoSyncRequest.h>
8#include <aws/cognito-sync/CognitoSync_EXPORTS.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 {
15namespace CognitoSync {
16namespace Model {
17
24 public:
25 AWS_COGNITOSYNC_API SetCognitoEventsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "SetCognitoEvents"; }
32
33 AWS_COGNITOSYNC_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetIdentityPoolId() const { return m_identityPoolId; }
40 inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
41 template <typename IdentityPoolIdT = Aws::String>
42 void SetIdentityPoolId(IdentityPoolIdT&& value) {
43 m_identityPoolIdHasBeenSet = true;
44 m_identityPoolId = std::forward<IdentityPoolIdT>(value);
45 }
46 template <typename IdentityPoolIdT = Aws::String>
47 SetCognitoEventsRequest& WithIdentityPoolId(IdentityPoolIdT&& value) {
48 SetIdentityPoolId(std::forward<IdentityPoolIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::Map<Aws::String, Aws::String>& GetEvents() const { return m_events; }
58 inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
59 template <typename EventsT = Aws::Map<Aws::String, Aws::String>>
60 void SetEvents(EventsT&& value) {
61 m_eventsHasBeenSet = true;
62 m_events = std::forward<EventsT>(value);
63 }
64 template <typename EventsT = Aws::Map<Aws::String, Aws::String>>
66 SetEvents(std::forward<EventsT>(value));
67 return *this;
68 }
69 template <typename EventsKeyT = Aws::String, typename EventsValueT = Aws::String>
70 SetCognitoEventsRequest& AddEvents(EventsKeyT&& key, EventsValueT&& value) {
71 m_eventsHasBeenSet = true;
72 m_events.emplace(std::forward<EventsKeyT>(key), std::forward<EventsValueT>(value));
73 return *this;
74 }
76 private:
77 Aws::String m_identityPoolId;
78
80 bool m_identityPoolIdHasBeenSet = false;
81 bool m_eventsHasBeenSet = false;
82};
83
84} // namespace Model
85} // namespace CognitoSync
86} // namespace Aws
virtual const char * GetServiceRequestName() const override
SetCognitoEventsRequest & AddEvents(EventsKeyT &&key, EventsValueT &&value)
SetCognitoEventsRequest & WithIdentityPoolId(IdentityPoolIdT &&value)
SetCognitoEventsRequest & WithEvents(EventsT &&value)
AWS_COGNITOSYNC_API SetCognitoEventsRequest()=default
AWS_COGNITOSYNC_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetEvents() const
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