AWS SDK for C++  0.14.3
AWS SDK for C++
Session.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace MobileAnalytics
29 {
30 namespace Model
31 {
32 
37  {
38  public:
39  Session();
40  Session(const Aws::Utils::Json::JsonValue& jsonValue);
41  Session& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetId() const{ return m_id; }
48 
52  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 
57  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = value; }
58 
62  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
63 
67  inline Session& WithId(const Aws::String& value) { SetId(value); return *this;}
68 
72  inline Session& WithId(Aws::String&& value) { SetId(value); return *this;}
73 
77  inline Session& WithId(const char* value) { SetId(value); return *this;}
78 
82  inline long long GetDuration() const{ return m_duration; }
83 
87  inline void SetDuration(long long value) { m_durationHasBeenSet = true; m_duration = value; }
88 
92  inline Session& WithDuration(long long value) { SetDuration(value); return *this;}
93 
98  inline const Aws::String& GetStartTimestamp() const{ return m_startTimestamp; }
99 
104  inline void SetStartTimestamp(const Aws::String& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = value; }
105 
110  inline void SetStartTimestamp(Aws::String&& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = value; }
111 
116  inline void SetStartTimestamp(const char* value) { m_startTimestampHasBeenSet = true; m_startTimestamp.assign(value); }
117 
122  inline Session& WithStartTimestamp(const Aws::String& value) { SetStartTimestamp(value); return *this;}
123 
128  inline Session& WithStartTimestamp(Aws::String&& value) { SetStartTimestamp(value); return *this;}
129 
134  inline Session& WithStartTimestamp(const char* value) { SetStartTimestamp(value); return *this;}
135 
140  inline const Aws::String& GetStopTimestamp() const{ return m_stopTimestamp; }
141 
146  inline void SetStopTimestamp(const Aws::String& value) { m_stopTimestampHasBeenSet = true; m_stopTimestamp = value; }
147 
152  inline void SetStopTimestamp(Aws::String&& value) { m_stopTimestampHasBeenSet = true; m_stopTimestamp = value; }
153 
158  inline void SetStopTimestamp(const char* value) { m_stopTimestampHasBeenSet = true; m_stopTimestamp.assign(value); }
159 
164  inline Session& WithStopTimestamp(const Aws::String& value) { SetStopTimestamp(value); return *this;}
165 
170  inline Session& WithStopTimestamp(Aws::String&& value) { SetStopTimestamp(value); return *this;}
171 
176  inline Session& WithStopTimestamp(const char* value) { SetStopTimestamp(value); return *this;}
177 
178  private:
179  Aws::String m_id;
180  bool m_idHasBeenSet;
181  long long m_duration;
182  bool m_durationHasBeenSet;
183  Aws::String m_startTimestamp;
184  bool m_startTimestampHasBeenSet;
185  Aws::String m_stopTimestamp;
186  bool m_stopTimestampHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace MobileAnalytics
191 } // namespace Aws
const Aws::String & GetStopTimestamp() const
Definition: Session.h:140
Session & WithStartTimestamp(const char *value)
Definition: Session.h:134
Session & WithStopTimestamp(Aws::String &&value)
Definition: Session.h:170
Session & WithDuration(long long value)
Definition: Session.h:92
Session & WithId(const Aws::String &value)
Definition: Session.h:67
void SetStartTimestamp(const Aws::String &value)
Definition: Session.h:104
#define AWS_MOBILEANALYTICS_API
Session & WithStopTimestamp(const char *value)
Definition: Session.h:176
void SetId(const Aws::String &value)
Definition: Session.h:52
void SetStopTimestamp(const Aws::String &value)
Definition: Session.h:146
void SetStartTimestamp(Aws::String &&value)
Definition: Session.h:110
Session & WithStartTimestamp(const Aws::String &value)
Definition: Session.h:122
void SetStopTimestamp(Aws::String &&value)
Definition: Session.h:152
Session & WithId(const char *value)
Definition: Session.h:77
const Aws::String & GetId() const
Definition: Session.h:47
void SetStopTimestamp(const char *value)
Definition: Session.h:158
void SetId(const char *value)
Definition: Session.h:62
void SetStartTimestamp(const char *value)
Definition: Session.h:116
const Aws::String & GetStartTimestamp() const
Definition: Session.h:98
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Session & WithId(Aws::String &&value)
Definition: Session.h:72
Session & WithStopTimestamp(const Aws::String &value)
Definition: Session.h:164
void SetDuration(long long value)
Definition: Session.h:87
Session & WithStartTimestamp(Aws::String &&value)
Definition: Session.h:128
void SetId(Aws::String &&value)
Definition: Session.h:57
long long GetDuration() const
Definition: Session.h:82
JSON (JavaScript Object Notation).