AWS SDK for C++  0.14.3
AWS SDK for C++
PutEventsRequest.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
21 
22 namespace Aws
23 {
24 namespace MobileAnalytics
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
43  inline const Aws::Vector<Event>& GetEvents() const{ return m_events; }
44 
48  inline void SetEvents(const Aws::Vector<Event>& value) { m_eventsHasBeenSet = true; m_events = value; }
49 
53  inline void SetEvents(Aws::Vector<Event>&& value) { m_eventsHasBeenSet = true; m_events = value; }
54 
58  inline PutEventsRequest& WithEvents(const Aws::Vector<Event>& value) { SetEvents(value); return *this;}
59 
63  inline PutEventsRequest& WithEvents(Aws::Vector<Event>&& value) { SetEvents(value); return *this;}
64 
68  inline PutEventsRequest& AddEvents(const Event& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
69 
73  inline PutEventsRequest& AddEvents(Event&& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
74 
79  inline const Aws::String& GetClientContext() const{ return m_clientContext; }
80 
85  inline void SetClientContext(const Aws::String& value) { m_clientContextHasBeenSet = true; m_clientContext = value; }
86 
91  inline void SetClientContext(Aws::String&& value) { m_clientContextHasBeenSet = true; m_clientContext = value; }
92 
97  inline void SetClientContext(const char* value) { m_clientContextHasBeenSet = true; m_clientContext.assign(value); }
98 
103  inline PutEventsRequest& WithClientContext(const Aws::String& value) { SetClientContext(value); return *this;}
104 
109  inline PutEventsRequest& WithClientContext(Aws::String&& value) { SetClientContext(value); return *this;}
110 
115  inline PutEventsRequest& WithClientContext(const char* value) { SetClientContext(value); return *this;}
116 
120  inline const Aws::String& GetClientContextEncoding() const{ return m_clientContextEncoding; }
121 
125  inline void SetClientContextEncoding(const Aws::String& value) { m_clientContextEncodingHasBeenSet = true; m_clientContextEncoding = value; }
126 
130  inline void SetClientContextEncoding(Aws::String&& value) { m_clientContextEncodingHasBeenSet = true; m_clientContextEncoding = value; }
131 
135  inline void SetClientContextEncoding(const char* value) { m_clientContextEncodingHasBeenSet = true; m_clientContextEncoding.assign(value); }
136 
140  inline PutEventsRequest& WithClientContextEncoding(const Aws::String& value) { SetClientContextEncoding(value); return *this;}
141 
145  inline PutEventsRequest& WithClientContextEncoding(Aws::String&& value) { SetClientContextEncoding(value); return *this;}
146 
150  inline PutEventsRequest& WithClientContextEncoding(const char* value) { SetClientContextEncoding(value); return *this;}
151 
152  private:
153  Aws::Vector<Event> m_events;
154  bool m_eventsHasBeenSet;
155  Aws::String m_clientContext;
156  bool m_clientContextHasBeenSet;
157  Aws::String m_clientContextEncoding;
158  bool m_clientContextEncodingHasBeenSet;
159  };
160 
161 } // namespace Model
162 } // namespace MobileAnalytics
163 } // namespace Aws
void SetEvents(Aws::Vector< Event > &&value)
void SetClientContextEncoding(const Aws::String &value)
void SetEvents(const Aws::Vector< Event > &value)
const Aws::String & GetClientContextEncoding() const
void SetClientContextEncoding(Aws::String &&value)
PutEventsRequest & WithEvents(const Aws::Vector< Event > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
#define AWS_MOBILEANALYTICS_API
PutEventsRequest & WithClientContext(Aws::String &&value)
const Aws::String & GetClientContext() const
PutEventsRequest & WithEvents(Aws::Vector< Event > &&value)
PutEventsRequest & WithClientContextEncoding(const Aws::String &value)
const Aws::Vector< Event > & GetEvents() const
PutEventsRequest & WithClientContextEncoding(Aws::String &&value)
void SetClientContext(const Aws::String &value)
PutEventsRequest & AddEvents(const Event &value)
PutEventsRequest & WithClientContextEncoding(const char *value)
PutEventsRequest & WithClientContext(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutEventsRequest & WithClientContext(const char *value)
PutEventsRequest & AddEvents(Event &&value)
JSON (JavaScript Object Notation).