AWS SDK for C++

AWS SDK for C++ Version 1.11.930

Loading...
Searching...
No Matches
ConnectionState.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/iotsecuretunneling/IoTSecureTunneling_EXPORTS.h>
9#include <aws/iotsecuretunneling/model/ConnectionStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoTSecureTunneling {
21namespace Model {
22
29 public:
30 AWS_IOTSECURETUNNELING_API ConnectionState() = default;
31 AWS_IOTSECURETUNNELING_API ConnectionState(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTSECURETUNNELING_API ConnectionState& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline ConnectionStatus GetStatus() const { return m_status; }
41 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
42 inline void SetStatus(ConnectionStatus value) {
43 m_statusHasBeenSet = true;
44 m_status = value;
45 }
47 SetStatus(value);
48 return *this;
49 }
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) {
60 m_lastUpdatedAtHasBeenSet = true;
61 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
62 }
63 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
64 ConnectionState& WithLastUpdatedAt(LastUpdatedAtT&& value) {
65 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
66 return *this;
67 }
69 private:
71
72 Aws::Utils::DateTime m_lastUpdatedAt{};
73 bool m_statusHasBeenSet = false;
74 bool m_lastUpdatedAtHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace IoTSecureTunneling
79} // 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