AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
AuditCheckDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9#include <aws/iot/model/AuditCheckRunStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
29 public:
30 AWS_IOT_API AuditCheckDetails() = default;
34
36
41 inline AuditCheckRunStatus GetCheckRunStatus() const { return m_checkRunStatus; }
42 inline bool CheckRunStatusHasBeenSet() const { return m_checkRunStatusHasBeenSet; }
44 m_checkRunStatusHasBeenSet = true;
45 m_checkRunStatus = value;
46 }
48 SetCheckRunStatus(value);
49 return *this;
50 }
52
54
57 inline bool GetCheckCompliant() const { return m_checkCompliant; }
58 inline bool CheckCompliantHasBeenSet() const { return m_checkCompliantHasBeenSet; }
59 inline void SetCheckCompliant(bool value) {
60 m_checkCompliantHasBeenSet = true;
61 m_checkCompliant = value;
62 }
64 SetCheckCompliant(value);
65 return *this;
66 }
68
70
73 inline long long GetTotalResourcesCount() const { return m_totalResourcesCount; }
74 inline bool TotalResourcesCountHasBeenSet() const { return m_totalResourcesCountHasBeenSet; }
75 inline void SetTotalResourcesCount(long long value) {
76 m_totalResourcesCountHasBeenSet = true;
77 m_totalResourcesCount = value;
78 }
79 inline AuditCheckDetails& WithTotalResourcesCount(long long value) {
81 return *this;
82 }
84
86
89 inline long long GetNonCompliantResourcesCount() const { return m_nonCompliantResourcesCount; }
90 inline bool NonCompliantResourcesCountHasBeenSet() const { return m_nonCompliantResourcesCountHasBeenSet; }
91 inline void SetNonCompliantResourcesCount(long long value) {
92 m_nonCompliantResourcesCountHasBeenSet = true;
93 m_nonCompliantResourcesCount = value;
94 }
97 return *this;
98 }
100
102
106 inline long long GetSuppressedNonCompliantResourcesCount() const { return m_suppressedNonCompliantResourcesCount; }
107 inline bool SuppressedNonCompliantResourcesCountHasBeenSet() const { return m_suppressedNonCompliantResourcesCountHasBeenSet; }
108 inline void SetSuppressedNonCompliantResourcesCount(long long value) {
109 m_suppressedNonCompliantResourcesCountHasBeenSet = true;
110 m_suppressedNonCompliantResourcesCount = value;
111 }
114 return *this;
115 }
117
119
123 inline const Aws::String& GetErrorCode() const { return m_errorCode; }
124 inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; }
125 template <typename ErrorCodeT = Aws::String>
126 void SetErrorCode(ErrorCodeT&& value) {
127 m_errorCodeHasBeenSet = true;
128 m_errorCode = std::forward<ErrorCodeT>(value);
129 }
130 template <typename ErrorCodeT = Aws::String>
131 AuditCheckDetails& WithErrorCode(ErrorCodeT&& value) {
132 SetErrorCode(std::forward<ErrorCodeT>(value));
133 return *this;
134 }
136
138
142 inline const Aws::String& GetMessage() const { return m_message; }
143 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
144 template <typename MessageT = Aws::String>
145 void SetMessage(MessageT&& value) {
146 m_messageHasBeenSet = true;
147 m_message = std::forward<MessageT>(value);
148 }
149 template <typename MessageT = Aws::String>
150 AuditCheckDetails& WithMessage(MessageT&& value) {
151 SetMessage(std::forward<MessageT>(value));
152 return *this;
153 }
155 private:
157
158 bool m_checkCompliant{false};
159
160 long long m_totalResourcesCount{0};
161
162 long long m_nonCompliantResourcesCount{0};
163
164 long long m_suppressedNonCompliantResourcesCount{0};
165
166 Aws::String m_errorCode;
167
168 Aws::String m_message;
169 bool m_checkRunStatusHasBeenSet = false;
170 bool m_checkCompliantHasBeenSet = false;
171 bool m_totalResourcesCountHasBeenSet = false;
172 bool m_nonCompliantResourcesCountHasBeenSet = false;
173 bool m_suppressedNonCompliantResourcesCountHasBeenSet = false;
174 bool m_errorCodeHasBeenSet = false;
175 bool m_messageHasBeenSet = false;
176};
177
178} // namespace Model
179} // namespace IoT
180} // namespace Aws
void SetTotalResourcesCount(long long value)
void SetSuppressedNonCompliantResourcesCount(long long value)
AuditCheckDetails & WithCheckRunStatus(AuditCheckRunStatus value)
void SetCheckRunStatus(AuditCheckRunStatus value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_IOT_API AuditCheckDetails()=default
AuditCheckDetails & WithCheckCompliant(bool value)
void SetNonCompliantResourcesCount(long long value)
AuditCheckRunStatus GetCheckRunStatus() const
AuditCheckDetails & WithTotalResourcesCount(long long value)
const Aws::String & GetErrorCode() const
AuditCheckDetails & WithMessage(MessageT &&value)
const Aws::String & GetMessage() const
AuditCheckDetails & WithNonCompliantResourcesCount(long long value)
AWS_IOT_API AuditCheckDetails(Aws::Utils::Json::JsonView jsonValue)
AuditCheckDetails & WithErrorCode(ErrorCodeT &&value)
long long GetSuppressedNonCompliantResourcesCount() const
AuditCheckDetails & WithSuppressedNonCompliantResourcesCount(long long value)
AWS_IOT_API AuditCheckDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SuppressedNonCompliantResourcesCountHasBeenSet() const
long long GetNonCompliantResourcesCount() const
void SetErrorCode(ErrorCodeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue