AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConnectionHealth.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/networkmanager/model/ConnectionType.h>
9#include <aws/networkmanager/model/ConnectionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace NetworkManager
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_NETWORKMANAGER_API ConnectionHealth();
37 AWS_NETWORKMANAGER_API ConnectionHealth(Aws::Utils::Json::JsonView jsonValue);
38 AWS_NETWORKMANAGER_API ConnectionHealth& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const ConnectionType& GetType() const{ return m_type; }
47 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
48 inline void SetType(const ConnectionType& value) { m_typeHasBeenSet = true; m_type = value; }
49 inline void SetType(ConnectionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
50 inline ConnectionHealth& WithType(const ConnectionType& value) { SetType(value); return *this;}
51 inline ConnectionHealth& WithType(ConnectionType&& value) { SetType(std::move(value)); return *this;}
53
55
58 inline const ConnectionStatus& GetStatus() const{ return m_status; }
59 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
60 inline void SetStatus(const ConnectionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
61 inline void SetStatus(ConnectionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
62 inline ConnectionHealth& WithStatus(const ConnectionStatus& value) { SetStatus(value); return *this;}
63 inline ConnectionHealth& WithStatus(ConnectionStatus&& value) { SetStatus(std::move(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
71 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
72 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
73 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
74 inline ConnectionHealth& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
75 inline ConnectionHealth& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
77 private:
78
79 ConnectionType m_type;
80 bool m_typeHasBeenSet = false;
81
82 ConnectionStatus m_status;
83 bool m_statusHasBeenSet = false;
84
85 Aws::Utils::DateTime m_timestamp;
86 bool m_timestampHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace NetworkManager
91} // namespace Aws
AWS_NETWORKMANAGER_API ConnectionHealth(Aws::Utils::Json::JsonView jsonValue)
void SetType(const ConnectionType &value)
ConnectionHealth & WithType(const ConnectionType &value)
const Aws::Utils::DateTime & GetTimestamp() const
ConnectionHealth & WithType(ConnectionType &&value)
ConnectionHealth & WithStatus(const ConnectionStatus &value)
ConnectionHealth & WithStatus(ConnectionStatus &&value)
ConnectionHealth & WithTimestamp(Aws::Utils::DateTime &&value)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTimestamp(Aws::Utils::DateTime &&value)
void SetTimestamp(const Aws::Utils::DateTime &value)
const ConnectionStatus & GetStatus() const
void SetStatus(const ConnectionStatus &value)
AWS_NETWORKMANAGER_API ConnectionHealth & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectionHealth & WithTimestamp(const Aws::Utils::DateTime &value)
void SetStatus(ConnectionStatus &&value)
Aws::Utils::Json::JsonValue JsonValue