AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
Session.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/pinpoint/Pinpoint_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Pinpoint {
20namespace Model {
21
27class Session {
28 public:
29 AWS_PINPOINT_API Session() = default;
30 AWS_PINPOINT_API Session(Aws::Utils::Json::JsonView jsonValue);
31 AWS_PINPOINT_API Session& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline int GetDuration() const { return m_duration; }
39 inline bool DurationHasBeenSet() const { return m_durationHasBeenSet; }
40 inline void SetDuration(int value) {
41 m_durationHasBeenSet = true;
42 m_duration = value;
43 }
44 inline Session& WithDuration(int value) {
45 SetDuration(value);
46 return *this;
47 }
49
51
54 inline const Aws::String& GetId() const { return m_id; }
55 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
56 template <typename IdT = Aws::String>
57 void SetId(IdT&& value) {
58 m_idHasBeenSet = true;
59 m_id = std::forward<IdT>(value);
60 }
61 template <typename IdT = Aws::String>
62 Session& WithId(IdT&& value) {
63 SetId(std::forward<IdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetStartTimestamp() const { return m_startTimestamp; }
73 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
74 template <typename StartTimestampT = Aws::String>
75 void SetStartTimestamp(StartTimestampT&& value) {
76 m_startTimestampHasBeenSet = true;
77 m_startTimestamp = std::forward<StartTimestampT>(value);
78 }
79 template <typename StartTimestampT = Aws::String>
80 Session& WithStartTimestamp(StartTimestampT&& value) {
81 SetStartTimestamp(std::forward<StartTimestampT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::String& GetStopTimestamp() const { return m_stopTimestamp; }
91 inline bool StopTimestampHasBeenSet() const { return m_stopTimestampHasBeenSet; }
92 template <typename StopTimestampT = Aws::String>
93 void SetStopTimestamp(StopTimestampT&& value) {
94 m_stopTimestampHasBeenSet = true;
95 m_stopTimestamp = std::forward<StopTimestampT>(value);
96 }
97 template <typename StopTimestampT = Aws::String>
98 Session& WithStopTimestamp(StopTimestampT&& value) {
99 SetStopTimestamp(std::forward<StopTimestampT>(value));
100 return *this;
101 }
103 private:
104 int m_duration{0};
105
106 Aws::String m_id;
107
108 Aws::String m_startTimestamp;
109
110 Aws::String m_stopTimestamp;
111 bool m_durationHasBeenSet = false;
112 bool m_idHasBeenSet = false;
113 bool m_startTimestampHasBeenSet = false;
114 bool m_stopTimestampHasBeenSet = false;
115};
116
117} // namespace Model
118} // namespace Pinpoint
119} // namespace Aws
AWS_PINPOINT_API Session()=default
const Aws::String & GetStartTimestamp() const
Definition Session.h:72
Session & WithId(IdT &&value)
Definition Session.h:62
const Aws::String & GetId() const
Definition Session.h:54
void SetId(IdT &&value)
Definition Session.h:57
AWS_PINPOINT_API Session(Aws::Utils::Json::JsonView jsonValue)
Session & WithStartTimestamp(StartTimestampT &&value)
Definition Session.h:80
AWS_PINPOINT_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStopTimestamp() const
Definition Session.h:90
bool DurationHasBeenSet() const
Definition Session.h:39
void SetStartTimestamp(StartTimestampT &&value)
Definition Session.h:75
Session & WithStopTimestamp(StopTimestampT &&value)
Definition Session.h:98
Session & WithDuration(int value)
Definition Session.h:44
bool StartTimestampHasBeenSet() const
Definition Session.h:73
void SetDuration(int value)
Definition Session.h:40
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStopTimestamp(StopTimestampT &&value)
Definition Session.h:93
bool StopTimestampHasBeenSet() const
Definition Session.h:91
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue