AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
OrganizationSummary.h
1
6#pragma once
7#include <aws/assurance/Assurance_EXPORTS.h>
8#include <aws/assurance/model/AccountOutcome.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/crt/cbor/Cbor.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Cbor {
17class CborValue;
18} // namespace Cbor
19} // namespace Utils
20namespace Assurance {
21namespace Model {
22
34 public:
35 AWS_ASSURANCE_API OrganizationSummary() = default;
36 AWS_ASSURANCE_API OrganizationSummary(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
37 AWS_ASSURANCE_API OrganizationSummary& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
39
41
44 inline int64_t GetTotalAccounts() const { return m_totalAccounts; }
45 inline bool TotalAccountsHasBeenSet() const { return m_totalAccountsHasBeenSet; }
46 inline void SetTotalAccounts(int64_t value) {
47 m_totalAccountsHasBeenSet = true;
48 m_totalAccounts = value;
49 }
50 inline OrganizationSummary& WithTotalAccounts(int64_t value) {
51 SetTotalAccounts(value);
52 return *this;
53 }
55
57
62 inline int64_t GetEvaluatedAccounts() const { return m_evaluatedAccounts; }
63 inline bool EvaluatedAccountsHasBeenSet() const { return m_evaluatedAccountsHasBeenSet; }
64 inline void SetEvaluatedAccounts(int64_t value) {
65 m_evaluatedAccountsHasBeenSet = true;
66 m_evaluatedAccounts = value;
67 }
70 return *this;
71 }
73
75
78 inline int64_t GetPassedCount() const { return m_passedCount; }
79 inline bool PassedCountHasBeenSet() const { return m_passedCountHasBeenSet; }
80 inline void SetPassedCount(int64_t value) {
81 m_passedCountHasBeenSet = true;
82 m_passedCount = value;
83 }
84 inline OrganizationSummary& WithPassedCount(int64_t value) {
85 SetPassedCount(value);
86 return *this;
87 }
89
91
94 inline int64_t GetFailedCount() const { return m_failedCount; }
95 inline bool FailedCountHasBeenSet() const { return m_failedCountHasBeenSet; }
96 inline void SetFailedCount(int64_t value) {
97 m_failedCountHasBeenSet = true;
98 m_failedCount = value;
99 }
100 inline OrganizationSummary& WithFailedCount(int64_t value) {
101 SetFailedCount(value);
102 return *this;
103 }
105
107
110 inline int64_t GetPartiallyPassedCount() const { return m_partiallyPassedCount; }
111 inline bool PartiallyPassedCountHasBeenSet() const { return m_partiallyPassedCountHasBeenSet; }
112 inline void SetPartiallyPassedCount(int64_t value) {
113 m_partiallyPassedCountHasBeenSet = true;
114 m_partiallyPassedCount = value;
115 }
118 return *this;
119 }
121
123
127 inline int64_t GetNotApplicableCount() const { return m_notApplicableCount; }
128 inline bool NotApplicableCountHasBeenSet() const { return m_notApplicableCountHasBeenSet; }
129 inline void SetNotApplicableCount(int64_t value) {
130 m_notApplicableCountHasBeenSet = true;
131 m_notApplicableCount = value;
132 }
135 return *this;
136 }
138
140
144 inline int64_t GetFailedRunCount() const { return m_failedRunCount; }
145 inline bool FailedRunCountHasBeenSet() const { return m_failedRunCountHasBeenSet; }
146 inline void SetFailedRunCount(int64_t value) {
147 m_failedRunCountHasBeenSet = true;
148 m_failedRunCount = value;
149 }
151 SetFailedRunCount(value);
152 return *this;
153 }
155
157
160 inline const Aws::Vector<AccountOutcome>& GetLowestScoringAccounts() const { return m_lowestScoringAccounts; }
161 inline bool LowestScoringAccountsHasBeenSet() const { return m_lowestScoringAccountsHasBeenSet; }
162 template <typename LowestScoringAccountsT = Aws::Vector<AccountOutcome>>
163 void SetLowestScoringAccounts(LowestScoringAccountsT&& value) {
164 m_lowestScoringAccountsHasBeenSet = true;
165 m_lowestScoringAccounts = std::forward<LowestScoringAccountsT>(value);
166 }
167 template <typename LowestScoringAccountsT = Aws::Vector<AccountOutcome>>
168 OrganizationSummary& WithLowestScoringAccounts(LowestScoringAccountsT&& value) {
169 SetLowestScoringAccounts(std::forward<LowestScoringAccountsT>(value));
170 return *this;
171 }
172 template <typename LowestScoringAccountsT = AccountOutcome>
173 OrganizationSummary& AddLowestScoringAccounts(LowestScoringAccountsT&& value) {
174 m_lowestScoringAccountsHasBeenSet = true;
175 m_lowestScoringAccounts.emplace_back(std::forward<LowestScoringAccountsT>(value));
176 return *this;
177 }
179 private:
180 int64_t m_totalAccounts{0};
181
182 int64_t m_evaluatedAccounts{0};
183
184 int64_t m_passedCount{0};
185
186 int64_t m_failedCount{0};
187
188 int64_t m_partiallyPassedCount{0};
189
190 int64_t m_notApplicableCount{0};
191
192 int64_t m_failedRunCount{0};
193
194 Aws::Vector<AccountOutcome> m_lowestScoringAccounts;
195 bool m_totalAccountsHasBeenSet = false;
196 bool m_evaluatedAccountsHasBeenSet = false;
197 bool m_passedCountHasBeenSet = false;
198 bool m_failedCountHasBeenSet = false;
199 bool m_partiallyPassedCountHasBeenSet = false;
200 bool m_notApplicableCountHasBeenSet = false;
201 bool m_failedRunCountHasBeenSet = false;
202 bool m_lowestScoringAccountsHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace Assurance
207} // namespace Aws
void SetLowestScoringAccounts(LowestScoringAccountsT &&value)
OrganizationSummary & WithTotalAccounts(int64_t value)
OrganizationSummary & AddLowestScoringAccounts(LowestScoringAccountsT &&value)
OrganizationSummary & WithNotApplicableCount(int64_t value)
AWS_ASSURANCE_API OrganizationSummary(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_ASSURANCE_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
OrganizationSummary & WithEvaluatedAccounts(int64_t value)
OrganizationSummary & WithLowestScoringAccounts(LowestScoringAccountsT &&value)
AWS_ASSURANCE_API OrganizationSummary()=default
OrganizationSummary & WithFailedCount(int64_t value)
AWS_ASSURANCE_API OrganizationSummary & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
OrganizationSummary & WithPassedCount(int64_t value)
OrganizationSummary & WithFailedRunCount(int64_t value)
OrganizationSummary & WithPartiallyPassedCount(int64_t value)
const Aws::Vector< AccountOutcome > & GetLowestScoringAccounts() const
std::vector< T, Aws::Allocator< T > > Vector