AWS SDK for C++  1.8.71
AWS SDK for C++
SetCognitoEventsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace CognitoSync
16 {
17 namespace Model
18 {
19 
26  {
27  public:
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::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
43 
47  inline bool IdentityPoolIdHasBeenSet() const { return m_identityPoolIdHasBeenSet; }
48 
52  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
53 
57  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = std::move(value); }
58 
62  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
63 
67  inline SetCognitoEventsRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
68 
72  inline SetCognitoEventsRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(std::move(value)); return *this;}
73 
77  inline SetCognitoEventsRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
78 
79 
83  inline const Aws::Map<Aws::String, Aws::String>& GetEvents() const{ return m_events; }
84 
88  inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
89 
93  inline void SetEvents(const Aws::Map<Aws::String, Aws::String>& value) { m_eventsHasBeenSet = true; m_events = value; }
94 
98  inline void SetEvents(Aws::Map<Aws::String, Aws::String>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
99 
103  inline SetCognitoEventsRequest& WithEvents(const Aws::Map<Aws::String, Aws::String>& value) { SetEvents(value); return *this;}
104 
108  inline SetCognitoEventsRequest& WithEvents(Aws::Map<Aws::String, Aws::String>&& value) { SetEvents(std::move(value)); return *this;}
109 
113  inline SetCognitoEventsRequest& AddEvents(const Aws::String& key, const Aws::String& value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; }
114 
118  inline SetCognitoEventsRequest& AddEvents(Aws::String&& key, const Aws::String& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), value); return *this; }
119 
123  inline SetCognitoEventsRequest& AddEvents(const Aws::String& key, Aws::String&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; }
124 
128  inline SetCognitoEventsRequest& AddEvents(Aws::String&& key, Aws::String&& value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), std::move(value)); return *this; }
129 
133  inline SetCognitoEventsRequest& AddEvents(const char* key, Aws::String&& value) { m_eventsHasBeenSet = true; m_events.emplace(key, std::move(value)); return *this; }
134 
138  inline SetCognitoEventsRequest& AddEvents(Aws::String&& key, const char* value) { m_eventsHasBeenSet = true; m_events.emplace(std::move(key), value); return *this; }
139 
143  inline SetCognitoEventsRequest& AddEvents(const char* key, const char* value) { m_eventsHasBeenSet = true; m_events.emplace(key, value); return *this; }
144 
145  private:
146 
147  Aws::String m_identityPoolId;
148  bool m_identityPoolIdHasBeenSet;
149 
151  bool m_eventsHasBeenSet;
152  };
153 
154 } // namespace Model
155 } // namespace CognitoSync
156 } // namespace Aws
void SetEvents(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetEvents() const
void SetEvents(Aws::Map< Aws::String, Aws::String > &&value)
SetCognitoEventsRequest & WithEvents(Aws::Map< Aws::String, Aws::String > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
SetCognitoEventsRequest & WithEvents(const Aws::Map< Aws::String, Aws::String > &value)
SetCognitoEventsRequest & AddEvents(Aws::String &&key, const char *value)
SetCognitoEventsRequest & AddEvents(Aws::String &&key, Aws::String &&value)
SetCognitoEventsRequest & AddEvents(const char *key, const char *value)
SetCognitoEventsRequest & AddEvents(const Aws::String &key, const Aws::String &value)
SetCognitoEventsRequest & WithIdentityPoolId(Aws::String &&value)
SetCognitoEventsRequest & WithIdentityPoolId(const char *value)
SetCognitoEventsRequest & AddEvents(const char *key, Aws::String &&value)
SetCognitoEventsRequest & AddEvents(const Aws::String &key, Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SetCognitoEventsRequest & WithIdentityPoolId(const Aws::String &value)
#define AWS_COGNITOSYNC_API
virtual const char * GetServiceRequestName() const override
SetCognitoEventsRequest & AddEvents(Aws::String &&key, const Aws::String &value)