AWS SDK for C++

AWS SDK for C++ Version 1.11.796

Loading...
Searching...
No Matches
ConnectorCheck.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/evs/EVS_EXPORTS.h>
9#include <aws/evs/model/CheckResult.h>
10#include <aws/evs/model/CheckType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace EVS {
22namespace Model {
23
31 public:
32 AWS_EVS_API ConnectorCheck() = default;
36
38
41 inline CheckType GetType() const { return m_type; }
42 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
43 inline void SetType(CheckType value) {
44 m_typeHasBeenSet = true;
45 m_type = value;
46 }
48 SetType(value);
49 return *this;
50 }
52
54
57 inline CheckResult GetResult() const { return m_result; }
58 inline bool ResultHasBeenSet() const { return m_resultHasBeenSet; }
59 inline void SetResult(CheckResult value) {
60 m_resultHasBeenSet = true;
61 m_result = value;
62 }
64 SetResult(value);
65 return *this;
66 }
68
70
73 inline const Aws::Utils::DateTime& GetLastCheckAttempt() const { return m_lastCheckAttempt; }
74 inline bool LastCheckAttemptHasBeenSet() const { return m_lastCheckAttemptHasBeenSet; }
75 template <typename LastCheckAttemptT = Aws::Utils::DateTime>
76 void SetLastCheckAttempt(LastCheckAttemptT&& value) {
77 m_lastCheckAttemptHasBeenSet = true;
78 m_lastCheckAttempt = std::forward<LastCheckAttemptT>(value);
79 }
80 template <typename LastCheckAttemptT = Aws::Utils::DateTime>
81 ConnectorCheck& WithLastCheckAttempt(LastCheckAttemptT&& value) {
82 SetLastCheckAttempt(std::forward<LastCheckAttemptT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Utils::DateTime& GetImpairedSince() const { return m_impairedSince; }
92 inline bool ImpairedSinceHasBeenSet() const { return m_impairedSinceHasBeenSet; }
93 template <typename ImpairedSinceT = Aws::Utils::DateTime>
94 void SetImpairedSince(ImpairedSinceT&& value) {
95 m_impairedSinceHasBeenSet = true;
96 m_impairedSince = std::forward<ImpairedSinceT>(value);
97 }
98 template <typename ImpairedSinceT = Aws::Utils::DateTime>
99 ConnectorCheck& WithImpairedSince(ImpairedSinceT&& value) {
100 SetImpairedSince(std::forward<ImpairedSinceT>(value));
101 return *this;
102 }
104 private:
106
108
109 Aws::Utils::DateTime m_lastCheckAttempt{};
110
111 Aws::Utils::DateTime m_impairedSince{};
112 bool m_typeHasBeenSet = false;
113 bool m_resultHasBeenSet = false;
114 bool m_lastCheckAttemptHasBeenSet = false;
115 bool m_impairedSinceHasBeenSet = false;
116};
117
118} // namespace Model
119} // namespace EVS
120} // namespace Aws
const Aws::Utils::DateTime & GetImpairedSince() const
ConnectorCheck & WithType(CheckType value)
ConnectorCheck & WithLastCheckAttempt(LastCheckAttemptT &&value)
void SetType(CheckType value)
AWS_EVS_API ConnectorCheck(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetLastCheckAttempt() const
AWS_EVS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResult(CheckResult value)
ConnectorCheck & WithImpairedSince(ImpairedSinceT &&value)
void SetImpairedSince(ImpairedSinceT &&value)
AWS_EVS_API ConnectorCheck()=default
ConnectorCheck & WithResult(CheckResult value)
void SetLastCheckAttempt(LastCheckAttemptT &&value)
AWS_EVS_API ConnectorCheck & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue