AWS SDK for C++  0.14.3
AWS SDK for C++
SetCognitoEventsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace CognitoSync
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetIdentityPoolId() const{ return m_identityPoolId; }
41 
45  inline void SetIdentityPoolId(const Aws::String& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
46 
50  inline void SetIdentityPoolId(Aws::String&& value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId = value; }
51 
55  inline void SetIdentityPoolId(const char* value) { m_identityPoolIdHasBeenSet = true; m_identityPoolId.assign(value); }
56 
60  inline SetCognitoEventsRequest& WithIdentityPoolId(const Aws::String& value) { SetIdentityPoolId(value); return *this;}
61 
65  inline SetCognitoEventsRequest& WithIdentityPoolId(Aws::String&& value) { SetIdentityPoolId(value); return *this;}
66 
70  inline SetCognitoEventsRequest& WithIdentityPoolId(const char* value) { SetIdentityPoolId(value); return *this;}
71 
75  inline const Aws::Map<Aws::String, Aws::String>& GetEvents() const{ return m_events; }
76 
80  inline void SetEvents(const Aws::Map<Aws::String, Aws::String>& value) { m_eventsHasBeenSet = true; m_events = value; }
81 
85  inline void SetEvents(Aws::Map<Aws::String, Aws::String>&& value) { m_eventsHasBeenSet = true; m_events = value; }
86 
90  inline SetCognitoEventsRequest& WithEvents(const Aws::Map<Aws::String, Aws::String>& value) { SetEvents(value); return *this;}
91 
95  inline SetCognitoEventsRequest& WithEvents(Aws::Map<Aws::String, Aws::String>&& value) { SetEvents(value); return *this;}
96 
100  inline SetCognitoEventsRequest& AddEvents(const Aws::String& key, const Aws::String& value) { m_eventsHasBeenSet = true; m_events[key] = value; return *this; }
101 
105  inline SetCognitoEventsRequest& AddEvents(Aws::String&& key, const Aws::String& value) { m_eventsHasBeenSet = true; m_events[key] = value; return *this; }
106 
110  inline SetCognitoEventsRequest& AddEvents(const Aws::String& key, Aws::String&& value) { m_eventsHasBeenSet = true; m_events[key] = value; return *this; }
111 
115  inline SetCognitoEventsRequest& AddEvents(Aws::String&& key, Aws::String&& value) { m_eventsHasBeenSet = true; m_events[key] = value; return *this; }
116 
120  inline SetCognitoEventsRequest& AddEvents(const char* key, Aws::String&& value) { m_eventsHasBeenSet = true; m_events[key] = value; return *this; }
121 
125  inline SetCognitoEventsRequest& AddEvents(Aws::String&& key, const char* value) { m_eventsHasBeenSet = true; m_events[key] = value; return *this; }
126 
130  inline SetCognitoEventsRequest& AddEvents(const char* key, const char* value) { m_eventsHasBeenSet = true; m_events[key] = value; return *this; }
131 
132  private:
133  Aws::String m_identityPoolId;
134  bool m_identityPoolIdHasBeenSet;
136  bool m_eventsHasBeenSet;
137  };
138 
139 } // namespace Model
140 } // namespace CognitoSync
141 } // namespace Aws
void SetEvents(const Aws::Map< Aws::String, Aws::String > &value)
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:28
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)
const Aws::Map< Aws::String, Aws::String > & GetEvents() const
#define AWS_COGNITOSYNC_API
SetCognitoEventsRequest & AddEvents(Aws::String &&key, const Aws::String &value)
JSON (JavaScript Object Notation).