AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
46 inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
47 inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
48 inline SetCognitoEventsRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
49 inline SetCognitoEventsRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
50 inline SetCognitoEventsRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
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 inline void SetEvents(const Aws::Map<Aws::String, Aws::String>& value) { m_eventsHasBeenSet = true; m_events = value; }
60 inline void SetEvents(Aws::Map<Aws::String, Aws::String>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
62 inline SetCognitoEventsRequest& WithEvents(Aws::Map<Aws::String, Aws::String>&& value) { SetEvents(std::move(value)); return *this;}
63 inline SetCognitoEventsRequest& AddEvents(const Aws::String& key, const Aws::String& value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; }
64 inline SetCognitoEventsRequest& AddEvents(Aws::String&& key, const Aws::String& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), value); return *this; }
65 inline SetCognitoEventsRequest& AddEvents(const Aws::String& key, Aws::String&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; }
66 inline SetCognitoEventsRequest& AddEvents(Aws::String&& key, Aws::String&& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), std::move(value)); return *this; }
67 inline SetCognitoEventsRequest& AddEvents(const char* key, Aws::String&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; }
68 inline SetCognitoEventsRequest& AddEvents(Aws::String&& key, const char* value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), value); return *this; }
69 inline SetCognitoEventsRequest& AddEvents(const char* key, const char* value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; }
71 private:
72
73 Aws::String m_identityPoolId;
74 bool m_identityPoolIdHasBeenSet = false;
75
77 bool m_eventsHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace CognitoSync
82} // namespace Aws
virtual const char * GetServiceRequestName() const override
SetCognitoEventsRequest & AddEvents(Aws::String &&key, Aws::String &&value)
SetCognitoEventsRequest & WithIdentityPoolId(const Aws::String &value)
SetCognitoEventsRequest & AddEvents(const char *key, const char *value)
SetCognitoEventsRequest & WithEvents(Aws::Map< Aws::String, Aws::String > &&value)
SetCognitoEventsRequest & AddEvents(Aws::String &&key, const Aws::String &value)
void SetEvents(Aws::Map< Aws::String, Aws::String > &&value)
SetCognitoEventsRequest & AddEvents(const Aws::String &key, Aws::String &&value)
SetCognitoEventsRequest & AddEvents(const Aws::String &key, const Aws::String &value)
SetCognitoEventsRequest & AddEvents(const char *key, Aws::String &&value)
SetCognitoEventsRequest & WithIdentityPoolId(const char *value)
AWS_COGNITOSYNC_API Aws::String SerializePayload() const override
SetCognitoEventsRequest & WithIdentityPoolId(Aws::String &&value)
SetCognitoEventsRequest & AddEvents(Aws::String &&key, const char *value)
SetCognitoEventsRequest & WithEvents(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetEvents() const
void SetEvents(const Aws::Map< Aws::String, Aws::String > &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