AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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