AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
OrganizationStatistics.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/OrganizationFeatureStatistics.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
32 public:
33 AWS_GUARDDUTY_API OrganizationStatistics() = default;
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline int GetTotalAccountsCount() const { return m_totalAccountsCount; }
43 inline bool TotalAccountsCountHasBeenSet() const { return m_totalAccountsCountHasBeenSet; }
44 inline void SetTotalAccountsCount(int value) {
45 m_totalAccountsCountHasBeenSet = true;
46 m_totalAccountsCount = value;
47 }
50 return *this;
51 }
53
55
59 inline int GetMemberAccountsCount() const { return m_memberAccountsCount; }
60 inline bool MemberAccountsCountHasBeenSet() const { return m_memberAccountsCountHasBeenSet; }
61 inline void SetMemberAccountsCount(int value) {
62 m_memberAccountsCountHasBeenSet = true;
63 m_memberAccountsCount = value;
64 }
67 return *this;
68 }
70
72
76 inline int GetActiveAccountsCount() const { return m_activeAccountsCount; }
77 inline bool ActiveAccountsCountHasBeenSet() const { return m_activeAccountsCountHasBeenSet; }
78 inline void SetActiveAccountsCount(int value) {
79 m_activeAccountsCountHasBeenSet = true;
80 m_activeAccountsCount = value;
81 }
84 return *this;
85 }
87
89
92 inline int GetEnabledAccountsCount() const { return m_enabledAccountsCount; }
93 inline bool EnabledAccountsCountHasBeenSet() const { return m_enabledAccountsCountHasBeenSet; }
94 inline void SetEnabledAccountsCount(int value) {
95 m_enabledAccountsCountHasBeenSet = true;
96 m_enabledAccountsCount = value;
97 }
100 return *this;
101 }
103
105
108 inline const Aws::Vector<OrganizationFeatureStatistics>& GetCountByFeature() const { return m_countByFeature; }
109 inline bool CountByFeatureHasBeenSet() const { return m_countByFeatureHasBeenSet; }
110 template <typename CountByFeatureT = Aws::Vector<OrganizationFeatureStatistics>>
111 void SetCountByFeature(CountByFeatureT&& value) {
112 m_countByFeatureHasBeenSet = true;
113 m_countByFeature = std::forward<CountByFeatureT>(value);
114 }
115 template <typename CountByFeatureT = Aws::Vector<OrganizationFeatureStatistics>>
116 OrganizationStatistics& WithCountByFeature(CountByFeatureT&& value) {
117 SetCountByFeature(std::forward<CountByFeatureT>(value));
118 return *this;
119 }
120 template <typename CountByFeatureT = OrganizationFeatureStatistics>
121 OrganizationStatistics& AddCountByFeature(CountByFeatureT&& value) {
122 m_countByFeatureHasBeenSet = true;
123 m_countByFeature.emplace_back(std::forward<CountByFeatureT>(value));
124 return *this;
125 }
127 private:
128 int m_totalAccountsCount{0};
129
130 int m_memberAccountsCount{0};
131
132 int m_activeAccountsCount{0};
133
134 int m_enabledAccountsCount{0};
135
137 bool m_totalAccountsCountHasBeenSet = false;
138 bool m_memberAccountsCountHasBeenSet = false;
139 bool m_activeAccountsCountHasBeenSet = false;
140 bool m_enabledAccountsCountHasBeenSet = false;
141 bool m_countByFeatureHasBeenSet = false;
142};
143
144} // namespace Model
145} // namespace GuardDuty
146} // namespace Aws
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
OrganizationStatistics & AddCountByFeature(CountByFeatureT &&value)
AWS_GUARDDUTY_API OrganizationStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API OrganizationStatistics()=default
OrganizationStatistics & WithMemberAccountsCount(int value)
const Aws::Vector< OrganizationFeatureStatistics > & GetCountByFeature() const
AWS_GUARDDUTY_API OrganizationStatistics(Aws::Utils::Json::JsonView jsonValue)
OrganizationStatistics & WithActiveAccountsCount(int value)
OrganizationStatistics & WithCountByFeature(CountByFeatureT &&value)
OrganizationStatistics & WithTotalAccountsCount(int value)
OrganizationStatistics & WithEnabledAccountsCount(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue