AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
AccountOverview.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/MemberAccountRanking.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API AccountOverview() = default;
33 AWS_GUARDDUTY_API AccountOverview(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAccountId() const { return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 template <typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) {
45 m_accountIdHasBeenSet = true;
46 m_accountId = std::forward<AccountIdT>(value);
47 }
48 template <typename AccountIdT = Aws::String>
49 AccountOverview& WithAccountId(AccountIdT&& value) {
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetAccountStatus() const { return m_accountStatus; }
60 inline bool AccountStatusHasBeenSet() const { return m_accountStatusHasBeenSet; }
61 template <typename AccountStatusT = Aws::String>
62 void SetAccountStatus(AccountStatusT&& value) {
63 m_accountStatusHasBeenSet = true;
64 m_accountStatus = std::forward<AccountStatusT>(value);
65 }
66 template <typename AccountStatusT = Aws::String>
67 AccountOverview& WithAccountStatus(AccountStatusT&& value) {
68 SetAccountStatus(std::forward<AccountStatusT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDetectorId() const { return m_detectorId; }
78 inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
79 template <typename DetectorIdT = Aws::String>
80 void SetDetectorId(DetectorIdT&& value) {
81 m_detectorIdHasBeenSet = true;
82 m_detectorId = std::forward<DetectorIdT>(value);
83 }
84 template <typename DetectorIdT = Aws::String>
85 AccountOverview& WithDetectorId(DetectorIdT&& value) {
86 SetDetectorId(std::forward<DetectorIdT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetRegion() const { return m_region; }
96 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
97 template <typename RegionT = Aws::String>
98 void SetRegion(RegionT&& value) {
99 m_regionHasBeenSet = true;
100 m_region = std::forward<RegionT>(value);
101 }
102 template <typename RegionT = Aws::String>
103 AccountOverview& WithRegion(RegionT&& value) {
104 SetRegion(std::forward<RegionT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetDelegatedAdminAccountId() const { return m_delegatedAdminAccountId; }
114 inline bool DelegatedAdminAccountIdHasBeenSet() const { return m_delegatedAdminAccountIdHasBeenSet; }
115 template <typename DelegatedAdminAccountIdT = Aws::String>
116 void SetDelegatedAdminAccountId(DelegatedAdminAccountIdT&& value) {
117 m_delegatedAdminAccountIdHasBeenSet = true;
118 m_delegatedAdminAccountId = std::forward<DelegatedAdminAccountIdT>(value);
119 }
120 template <typename DelegatedAdminAccountIdT = Aws::String>
121 AccountOverview& WithDelegatedAdminAccountId(DelegatedAdminAccountIdT&& value) {
122 SetDelegatedAdminAccountId(std::forward<DelegatedAdminAccountIdT>(value));
123 return *this;
124 }
126
128
131 inline long long GetTotalMemberAccounts() const { return m_totalMemberAccounts; }
132 inline bool TotalMemberAccountsHasBeenSet() const { return m_totalMemberAccountsHasBeenSet; }
133 inline void SetTotalMemberAccounts(long long value) {
134 m_totalMemberAccountsHasBeenSet = true;
135 m_totalMemberAccounts = value;
136 }
137 inline AccountOverview& WithTotalMemberAccounts(long long value) {
139 return *this;
140 }
142
144
147 inline long long GetTotalFindings() const { return m_totalFindings; }
148 inline bool TotalFindingsHasBeenSet() const { return m_totalFindingsHasBeenSet; }
149 inline void SetTotalFindings(long long value) {
150 m_totalFindingsHasBeenSet = true;
151 m_totalFindings = value;
152 }
153 inline AccountOverview& WithTotalFindings(long long value) {
154 SetTotalFindings(value);
155 return *this;
156 }
158
160
163 inline long long GetAffectedAccountCount() const { return m_affectedAccountCount; }
164 inline bool AffectedAccountCountHasBeenSet() const { return m_affectedAccountCountHasBeenSet; }
165 inline void SetAffectedAccountCount(long long value) {
166 m_affectedAccountCountHasBeenSet = true;
167 m_affectedAccountCount = value;
168 }
169 inline AccountOverview& WithAffectedAccountCount(long long value) {
171 return *this;
172 }
174
176
179 inline const Aws::Vector<MemberAccountRanking>& GetAccountRankings() const { return m_accountRankings; }
180 inline bool AccountRankingsHasBeenSet() const { return m_accountRankingsHasBeenSet; }
181 template <typename AccountRankingsT = Aws::Vector<MemberAccountRanking>>
182 void SetAccountRankings(AccountRankingsT&& value) {
183 m_accountRankingsHasBeenSet = true;
184 m_accountRankings = std::forward<AccountRankingsT>(value);
185 }
186 template <typename AccountRankingsT = Aws::Vector<MemberAccountRanking>>
187 AccountOverview& WithAccountRankings(AccountRankingsT&& value) {
188 SetAccountRankings(std::forward<AccountRankingsT>(value));
189 return *this;
190 }
191 template <typename AccountRankingsT = MemberAccountRanking>
192 AccountOverview& AddAccountRankings(AccountRankingsT&& value) {
193 m_accountRankingsHasBeenSet = true;
194 m_accountRankings.emplace_back(std::forward<AccountRankingsT>(value));
195 return *this;
196 }
198 private:
199 Aws::String m_accountId;
200
201 Aws::String m_accountStatus;
202
203 Aws::String m_detectorId;
204
205 Aws::String m_region;
206
207 Aws::String m_delegatedAdminAccountId;
208
209 long long m_totalMemberAccounts{0};
210
211 long long m_totalFindings{0};
212
213 long long m_affectedAccountCount{0};
214
215 Aws::Vector<MemberAccountRanking> m_accountRankings;
216 bool m_accountIdHasBeenSet = false;
217 bool m_accountStatusHasBeenSet = false;
218 bool m_detectorIdHasBeenSet = false;
219 bool m_regionHasBeenSet = false;
220 bool m_delegatedAdminAccountIdHasBeenSet = false;
221 bool m_totalMemberAccountsHasBeenSet = false;
222 bool m_totalFindingsHasBeenSet = false;
223 bool m_affectedAccountCountHasBeenSet = false;
224 bool m_accountRankingsHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace GuardDuty
229} // namespace Aws
AWS_GUARDDUTY_API AccountOverview & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountOverview & WithTotalMemberAccounts(long long value)
void SetAccountStatus(AccountStatusT &&value)
AccountOverview & AddAccountRankings(AccountRankingsT &&value)
const Aws::String & GetDetectorId() const
const Aws::String & GetRegion() const
const Aws::String & GetAccountStatus() const
void SetAccountId(AccountIdT &&value)
AccountOverview & WithDelegatedAdminAccountId(DelegatedAdminAccountIdT &&value)
AccountOverview & WithRegion(RegionT &&value)
AccountOverview & WithAffectedAccountCount(long long value)
void SetAffectedAccountCount(long long value)
void SetDelegatedAdminAccountId(DelegatedAdminAccountIdT &&value)
const Aws::String & GetAccountId() const
AccountOverview & WithAccountId(AccountIdT &&value)
AccountOverview & WithTotalFindings(long long value)
void SetAccountRankings(AccountRankingsT &&value)
const Aws::String & GetDelegatedAdminAccountId() const
AWS_GUARDDUTY_API AccountOverview(Aws::Utils::Json::JsonView jsonValue)
AccountOverview & WithAccountRankings(AccountRankingsT &&value)
AWS_GUARDDUTY_API AccountOverview()=default
AccountOverview & WithAccountStatus(AccountStatusT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< MemberAccountRanking > & GetAccountRankings() const
void SetDetectorId(DetectorIdT &&value)
AccountOverview & WithDetectorId(DetectorIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue