AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Session.h
1
6#pragma once
7#include <aws/pinpoint/Pinpoint_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Pinpoint
22{
23namespace Model
24{
25
31 class Session
32 {
33 public:
34 AWS_PINPOINT_API Session();
35 AWS_PINPOINT_API Session(Aws::Utils::Json::JsonView jsonValue);
36 AWS_PINPOINT_API Session& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline int GetDuration() const{ return m_duration; }
45 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
46 inline void SetDuration(int value) { m_durationHasBeenSet = true; m_duration = value; }
47 inline Session& WithDuration(int value) { SetDuration(value); return *this;}
49
51
54 inline const Aws::String& GetId() const{ return m_id; }
55 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
56 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
57 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
58 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
59 inline Session& WithId(const Aws::String& value) { SetId(value); return *this;}
60 inline Session& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
61 inline Session& WithId(const char* value) { SetId(value); return *this;}
63
65
68 inline const Aws::String& GetStartTimestamp() const{ return m_startTimestamp; }
69 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
70 inline void SetStartTimestamp(const Aws::String& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = value; }
71 inline void SetStartTimestamp(Aws::String&& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = std::move(value); }
72 inline void SetStartTimestamp(const char* value) { m_startTimestampHasBeenSet = true; m_startTimestamp.assign(value); }
73 inline Session& WithStartTimestamp(const Aws::String& value) { SetStartTimestamp(value); return *this;}
74 inline Session& WithStartTimestamp(Aws::String&& value) { SetStartTimestamp(std::move(value)); return *this;}
75 inline Session& WithStartTimestamp(const char* value) { SetStartTimestamp(value); return *this;}
77
79
82 inline const Aws::String& GetStopTimestamp() const{ return m_stopTimestamp; }
83 inline bool StopTimestampHasBeenSet() const { return m_stopTimestampHasBeenSet; }
84 inline void SetStopTimestamp(const Aws::String& value) { m_stopTimestampHasBeenSet = true; m_stopTimestamp = value; }
85 inline void SetStopTimestamp(Aws::String&& value) { m_stopTimestampHasBeenSet = true; m_stopTimestamp = std::move(value); }
86 inline void SetStopTimestamp(const char* value) { m_stopTimestampHasBeenSet = true; m_stopTimestamp.assign(value); }
87 inline Session& WithStopTimestamp(const Aws::String& value) { SetStopTimestamp(value); return *this;}
88 inline Session& WithStopTimestamp(Aws::String&& value) { SetStopTimestamp(std::move(value)); return *this;}
89 inline Session& WithStopTimestamp(const char* value) { SetStopTimestamp(value); return *this;}
91 private:
92
93 int m_duration;
94 bool m_durationHasBeenSet = false;
95
96 Aws::String m_id;
97 bool m_idHasBeenSet = false;
98
99 Aws::String m_startTimestamp;
100 bool m_startTimestampHasBeenSet = false;
101
102 Aws::String m_stopTimestamp;
103 bool m_stopTimestampHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Pinpoint
108} // namespace Aws
void SetId(const char *value)
Definition Session.h:58
const Aws::String & GetStartTimestamp() const
Definition Session.h:68
Session & WithId(Aws::String &&value)
Definition Session.h:60
void SetId(Aws::String &&value)
Definition Session.h:57
void SetStartTimestamp(const char *value)
Definition Session.h:72
void SetStopTimestamp(const Aws::String &value)
Definition Session.h:84
Session & WithStartTimestamp(Aws::String &&value)
Definition Session.h:74
const Aws::String & GetId() const
Definition Session.h:54
AWS_PINPOINT_API Session(Aws::Utils::Json::JsonView jsonValue)
AWS_PINPOINT_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
Session & WithStopTimestamp(Aws::String &&value)
Definition Session.h:88
void SetStopTimestamp(Aws::String &&value)
Definition Session.h:85
void SetId(const Aws::String &value)
Definition Session.h:56
Session & WithStartTimestamp(const char *value)
Definition Session.h:75
AWS_PINPOINT_API Session()
const Aws::String & GetStopTimestamp() const
Definition Session.h:82
void SetStartTimestamp(const Aws::String &value)
Definition Session.h:70
bool DurationHasBeenSet() const
Definition Session.h:45
void SetStartTimestamp(Aws::String &&value)
Definition Session.h:71
void SetStopTimestamp(const char *value)
Definition Session.h:86
Session & WithDuration(int value)
Definition Session.h:47
Session & WithStopTimestamp(const char *value)
Definition Session.h:89
bool StartTimestampHasBeenSet() const
Definition Session.h:69
void SetDuration(int value)
Definition Session.h:46
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
Session & WithId(const Aws::String &value)
Definition Session.h:59
Session & WithId(const char *value)
Definition Session.h:61
Session & WithStopTimestamp(const Aws::String &value)
Definition Session.h:87
Session & WithStartTimestamp(const Aws::String &value)
Definition Session.h:73
bool StopTimestampHasBeenSet() const
Definition Session.h:83
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue