AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename IdT = Aws::String>
57 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
58 template<typename IdT = Aws::String>
59 Session& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetStartTimestamp() const { return m_startTimestamp; }
67 inline bool StartTimestampHasBeenSet() const { return m_startTimestampHasBeenSet; }
68 template<typename StartTimestampT = Aws::String>
69 void SetStartTimestamp(StartTimestampT&& value) { m_startTimestampHasBeenSet = true; m_startTimestamp = std::forward<StartTimestampT>(value); }
70 template<typename StartTimestampT = Aws::String>
71 Session& WithStartTimestamp(StartTimestampT&& value) { SetStartTimestamp(std::forward<StartTimestampT>(value)); return *this;}
73
75
78 inline const Aws::String& GetStopTimestamp() const { return m_stopTimestamp; }
79 inline bool StopTimestampHasBeenSet() const { return m_stopTimestampHasBeenSet; }
80 template<typename StopTimestampT = Aws::String>
81 void SetStopTimestamp(StopTimestampT&& value) { m_stopTimestampHasBeenSet = true; m_stopTimestamp = std::forward<StopTimestampT>(value); }
82 template<typename StopTimestampT = Aws::String>
83 Session& WithStopTimestamp(StopTimestampT&& value) { SetStopTimestamp(std::forward<StopTimestampT>(value)); return *this;}
85 private:
86
87 int m_duration{0};
88 bool m_durationHasBeenSet = false;
89
90 Aws::String m_id;
91 bool m_idHasBeenSet = false;
92
93 Aws::String m_startTimestamp;
94 bool m_startTimestampHasBeenSet = false;
95
96 Aws::String m_stopTimestamp;
97 bool m_stopTimestampHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Pinpoint
102} // namespace Aws
AWS_PINPOINT_API Session()=default
const Aws::String & GetStartTimestamp() const
Definition Session.h:66
Session & WithId(IdT &&value)
Definition Session.h:59
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:71
AWS_PINPOINT_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStopTimestamp() const
Definition Session.h:78
bool DurationHasBeenSet() const
Definition Session.h:45
void SetStartTimestamp(StartTimestampT &&value)
Definition Session.h:69
Session & WithStopTimestamp(StopTimestampT &&value)
Definition Session.h:83
Session & WithDuration(int value)
Definition Session.h:47
bool StartTimestampHasBeenSet() const
Definition Session.h:67
void SetDuration(int value)
Definition Session.h:46
AWS_PINPOINT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStopTimestamp(StopTimestampT &&value)
Definition Session.h:81
bool StopTimestampHasBeenSet() const
Definition Session.h:79
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue