AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ConnectionStatus& GetStatus() const{ return m_status; }
47 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
48 inline void SetStatus(const ConnectionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
49 inline void SetStatus(ConnectionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
50 inline ConnectionState& WithStatus(const ConnectionStatus& value) { SetStatus(value); return *this;}
51 inline ConnectionState& WithStatus(ConnectionStatus&& value) { SetStatus(std::move(value)); return *this;}
53
55
58 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
59 inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; }
60 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; }
61 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); }
62 inline ConnectionState& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;}
63 inline ConnectionState& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
65 private:
66
67 ConnectionStatus m_status;
68 bool m_statusHasBeenSet = false;
69
70 Aws::Utils::DateTime m_lastUpdatedAt;
71 bool m_lastUpdatedAtHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace IoTSecureTunneling
76} // namespace Aws
ConnectionState & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
ConnectionState & WithStatus(const ConnectionStatus &value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
ConnectionState & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
AWS_IOTSECURETUNNELING_API ConnectionState()
AWS_IOTSECURETUNNELING_API Aws::Utils::Json::JsonValue Jsonize() const
ConnectionState & WithStatus(ConnectionStatus &&value)
AWS_IOTSECURETUNNELING_API ConnectionState(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const ConnectionStatus &value)
const ConnectionStatus & GetStatus() const
AWS_IOTSECURETUNNELING_API ConnectionState & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
Aws::Utils::Json::JsonValue JsonValue