AWS SDK for C++  1.8.127
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
Aws::CognitoSync::Model::SetCognitoEventsRequest::AddEvents
SetCognitoEventsRequest & AddEvents(Aws::String &&key, Aws::String &&value)
Definition: SetCognitoEventsRequest.h:128
Aws::CognitoSync::Model::SetCognitoEventsRequest::WithIdentityPoolId
SetCognitoEventsRequest & WithIdentityPoolId(const char *value)
Definition: SetCognitoEventsRequest.h:77
Aws::CognitoSync::Model::SetCognitoEventsRequest::AddEvents
SetCognitoEventsRequest & AddEvents(const Aws::String &key, const Aws::String &value)
Definition: SetCognitoEventsRequest.h:113
Aws::CognitoSync::Model::SetCognitoEventsRequest::AddEvents
SetCognitoEventsRequest & AddEvents(Aws::String &&key, const Aws::String &value)
Definition: SetCognitoEventsRequest.h:118
CognitoSync_EXPORTS.h
Aws::CognitoSync::Model::SetCognitoEventsRequest::EventsHasBeenSet
bool EventsHasBeenSet() const
Definition: SetCognitoEventsRequest.h:88
Aws::CognitoSync::Model::SetCognitoEventsRequest::AddEvents
SetCognitoEventsRequest & AddEvents(const Aws::String &key, Aws::String &&value)
Definition: SetCognitoEventsRequest.h:123
Aws::CognitoSync::Model::SetCognitoEventsRequest::IdentityPoolIdHasBeenSet
bool IdentityPoolIdHasBeenSet() const
Definition: SetCognitoEventsRequest.h:47
Aws::CognitoSync::Model::SetCognitoEventsRequest::WithEvents
SetCognitoEventsRequest & WithEvents(Aws::Map< Aws::String, Aws::String > &&value)
Definition: SetCognitoEventsRequest.h:108
Aws::CognitoSync::Model::SetCognitoEventsRequest::AddEvents
SetCognitoEventsRequest & AddEvents(const char *key, Aws::String &&value)
Definition: SetCognitoEventsRequest.h:133
Aws::CognitoSync::Model::SetCognitoEventsRequest::SetCognitoEventsRequest
SetCognitoEventsRequest()
Aws::CognitoSync::Model::SetCognitoEventsRequest::SetEvents
void SetEvents(const Aws::Map< Aws::String, Aws::String > &value)
Definition: SetCognitoEventsRequest.h:93
Aws::CognitoSync::Model::SetCognitoEventsRequest::GetEvents
const Aws::Map< Aws::String, Aws::String > & GetEvents() const
Definition: SetCognitoEventsRequest.h:83
Aws::CognitoSync::Model::SetCognitoEventsRequest::WithEvents
SetCognitoEventsRequest & WithEvents(const Aws::Map< Aws::String, Aws::String > &value)
Definition: SetCognitoEventsRequest.h:103
Aws::CognitoSync::Model::SetCognitoEventsRequest
Definition: SetCognitoEventsRequest.h:26
Aws::CognitoSync::Model::SetCognitoEventsRequest::GetIdentityPoolId
const Aws::String & GetIdentityPoolId() const
Definition: SetCognitoEventsRequest.h:42
Aws::CognitoSync::Model::SetCognitoEventsRequest::SetIdentityPoolId
void SetIdentityPoolId(Aws::String &&value)
Definition: SetCognitoEventsRequest.h:57
Aws::CognitoSync::Model::SetCognitoEventsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SetCognitoEventsRequest.h:34
Aws::CognitoSync::CognitoSyncRequest
Definition: CognitoSyncRequest.h:17
Aws::CognitoSync::Model::SetCognitoEventsRequest::WithIdentityPoolId
SetCognitoEventsRequest & WithIdentityPoolId(const Aws::String &value)
Definition: SetCognitoEventsRequest.h:67
Aws::CognitoSync::Model::SetCognitoEventsRequest::SetIdentityPoolId
void SetIdentityPoolId(const char *value)
Definition: SetCognitoEventsRequest.h:62
AWSString.h
Aws::CognitoSync::Model::SetCognitoEventsRequest::WithIdentityPoolId
SetCognitoEventsRequest & WithIdentityPoolId(Aws::String &&value)
Definition: SetCognitoEventsRequest.h:72
Aws::CognitoSync::Model::SetCognitoEventsRequest::SetEvents
void SetEvents(Aws::Map< Aws::String, Aws::String > &&value)
Definition: SetCognitoEventsRequest.h:98
Aws::CognitoSync::Model::SetCognitoEventsRequest::AddEvents
SetCognitoEventsRequest & AddEvents(const char *key, const char *value)
Definition: SetCognitoEventsRequest.h:143
Aws::CognitoSync::Model::SetCognitoEventsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::CognitoSync::Model::SetCognitoEventsRequest::AddEvents
SetCognitoEventsRequest & AddEvents(Aws::String &&key, const char *value)
Definition: SetCognitoEventsRequest.h:138
Aws
Definition: AccessManagementClient.h:15
Aws::CognitoSync::Model::SetCognitoEventsRequest::SetIdentityPoolId
void SetIdentityPoolId(const Aws::String &value)
Definition: SetCognitoEventsRequest.h:52
AWS_COGNITOSYNC_API
#define AWS_COGNITOSYNC_API
Definition: CognitoSync_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CognitoSyncRequest.h
AWSMap.h
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19