AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ConnectionState.h
1
6#pragma once
7#include <aws/iotsecuretunneling/IoTSecureTunneling_EXPORTS.h>
8#include <aws/iotsecuretunneling/model/ConnectionStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTSecureTunneling
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOTSECURETUNNELING_API ConnectionState() = default;
36 AWS_IOTSECURETUNNELING_API ConnectionState(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTSECURETUNNELING_API ConnectionState& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline ConnectionStatus GetStatus() const { return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 inline void SetStatus(ConnectionStatus value) { m_statusHasBeenSet = true; m_status = value; }
49 inline ConnectionState& WithStatus(ConnectionStatus value) { SetStatus(value); return *this;}
51
53
56 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
57 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
58 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
59 void SetLastUpdatedAt(LastUpdatedAtT&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value); }
60 template<typename LastUpdatedAtT = Aws::Utils::DateTime>
61 ConnectionState& WithLastUpdatedAt(LastUpdatedAtT&& value) { SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value)); return *this;}
63 private:
64
66 bool m_statusHasBeenSet = false;
67
68 Aws::Utils::DateTime m_lastUpdatedAt{};
69 bool m_lastUpdatedAtHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace IoTSecureTunneling
74} // namespace Aws
ConnectionState & WithLastUpdatedAt(LastUpdatedAtT &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
AWS_IOTSECURETUNNELING_API ConnectionState()=default
AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOTSECURETUNNELING_API ConnectionState(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTSECURETUNNELING_API ConnectionState & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectionState & WithStatus(ConnectionStatus value)
Aws::Utils::Json::JsonValue JsonValue