AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
HealthCheck.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/securityhub/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/ConnectorStatus.h>
12#include <aws/securityhub/model/HealthIssue.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SecurityHub {
24namespace Model {
25
33 public:
34 AWS_SECURITYHUB_API HealthCheck() = default;
35 AWS_SECURITYHUB_API HealthCheck(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYHUB_API HealthCheck& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline ConnectorStatus GetConnectorStatus() const { return m_connectorStatus; }
44 inline bool ConnectorStatusHasBeenSet() const { return m_connectorStatusHasBeenSet; }
46 m_connectorStatusHasBeenSet = true;
47 m_connectorStatus = value;
48 }
50 SetConnectorStatus(value);
51 return *this;
52 }
54
56
59 inline const Aws::String& GetMessage() const { return m_message; }
60 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
61 template <typename MessageT = Aws::String>
62 void SetMessage(MessageT&& value) {
63 m_messageHasBeenSet = true;
64 m_message = std::forward<MessageT>(value);
65 }
66 template <typename MessageT = Aws::String>
67 HealthCheck& WithMessage(MessageT&& value) {
68 SetMessage(std::forward<MessageT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::Utils::DateTime& GetLastCheckedAt() const { return m_lastCheckedAt; }
79 inline bool LastCheckedAtHasBeenSet() const { return m_lastCheckedAtHasBeenSet; }
80 template <typename LastCheckedAtT = Aws::Utils::DateTime>
81 void SetLastCheckedAt(LastCheckedAtT&& value) {
82 m_lastCheckedAtHasBeenSet = true;
83 m_lastCheckedAt = std::forward<LastCheckedAtT>(value);
84 }
85 template <typename LastCheckedAtT = Aws::Utils::DateTime>
86 HealthCheck& WithLastCheckedAt(LastCheckedAtT&& value) {
87 SetLastCheckedAt(std::forward<LastCheckedAtT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::Vector<HealthIssue>& GetIssues() const { return m_issues; }
98 inline bool IssuesHasBeenSet() const { return m_issuesHasBeenSet; }
99 template <typename IssuesT = Aws::Vector<HealthIssue>>
100 void SetIssues(IssuesT&& value) {
101 m_issuesHasBeenSet = true;
102 m_issues = std::forward<IssuesT>(value);
103 }
104 template <typename IssuesT = Aws::Vector<HealthIssue>>
105 HealthCheck& WithIssues(IssuesT&& value) {
106 SetIssues(std::forward<IssuesT>(value));
107 return *this;
108 }
109 template <typename IssuesT = HealthIssue>
110 HealthCheck& AddIssues(IssuesT&& value) {
111 m_issuesHasBeenSet = true;
112 m_issues.emplace_back(std::forward<IssuesT>(value));
113 return *this;
114 }
116 private:
117 ConnectorStatus m_connectorStatus{ConnectorStatus::NOT_SET};
118
119 Aws::String m_message;
120
121 Aws::Utils::DateTime m_lastCheckedAt{};
122
124 bool m_connectorStatusHasBeenSet = false;
125 bool m_messageHasBeenSet = false;
126 bool m_lastCheckedAtHasBeenSet = false;
127 bool m_issuesHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace SecurityHub
132} // namespace Aws
AWS_SECURITYHUB_API HealthCheck & operator=(Aws::Utils::Json::JsonView jsonValue)
ConnectorStatus GetConnectorStatus() const
Definition HealthCheck.h:43
const Aws::Vector< HealthIssue > & GetIssues() const
Definition HealthCheck.h:97
HealthCheck & WithConnectorStatus(ConnectorStatus value)
Definition HealthCheck.h:49
HealthCheck & WithLastCheckedAt(LastCheckedAtT &&value)
Definition HealthCheck.h:86
AWS_SECURITYHUB_API HealthCheck(Aws::Utils::Json::JsonView jsonValue)
HealthCheck & WithIssues(IssuesT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastCheckedAt(LastCheckedAtT &&value)
Definition HealthCheck.h:81
const Aws::String & GetMessage() const
Definition HealthCheck.h:59
HealthCheck & WithMessage(MessageT &&value)
Definition HealthCheck.h:67
void SetMessage(MessageT &&value)
Definition HealthCheck.h:62
const Aws::Utils::DateTime & GetLastCheckedAt() const
Definition HealthCheck.h:78
HealthCheck & AddIssues(IssuesT &&value)
AWS_SECURITYHUB_API HealthCheck()=default
void SetConnectorStatus(ConnectorStatus value)
Definition HealthCheck.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue