AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
OrganizationStatistics.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/model/OrganizationFeatureStatistics.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_GUARDDUTY_API OrganizationStatistics() = default;
41 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline int GetTotalAccountsCount() const { return m_totalAccountsCount; }
49 inline bool TotalAccountsCountHasBeenSet() const { return m_totalAccountsCountHasBeenSet; }
50 inline void SetTotalAccountsCount(int value) { m_totalAccountsCountHasBeenSet = true; m_totalAccountsCount = value; }
51 inline OrganizationStatistics& WithTotalAccountsCount(int value) { SetTotalAccountsCount(value); return *this;}
53
55
59 inline int GetMemberAccountsCount() const { return m_memberAccountsCount; }
60 inline bool MemberAccountsCountHasBeenSet() const { return m_memberAccountsCountHasBeenSet; }
61 inline void SetMemberAccountsCount(int value) { m_memberAccountsCountHasBeenSet = true; m_memberAccountsCount = value; }
62 inline OrganizationStatistics& WithMemberAccountsCount(int value) { SetMemberAccountsCount(value); return *this;}
64
66
70 inline int GetActiveAccountsCount() const { return m_activeAccountsCount; }
71 inline bool ActiveAccountsCountHasBeenSet() const { return m_activeAccountsCountHasBeenSet; }
72 inline void SetActiveAccountsCount(int value) { m_activeAccountsCountHasBeenSet = true; m_activeAccountsCount = value; }
73 inline OrganizationStatistics& WithActiveAccountsCount(int value) { SetActiveAccountsCount(value); return *this;}
75
77
80 inline int GetEnabledAccountsCount() const { return m_enabledAccountsCount; }
81 inline bool EnabledAccountsCountHasBeenSet() const { return m_enabledAccountsCountHasBeenSet; }
82 inline void SetEnabledAccountsCount(int value) { m_enabledAccountsCountHasBeenSet = true; m_enabledAccountsCount = value; }
85
87
90 inline const Aws::Vector<OrganizationFeatureStatistics>& GetCountByFeature() const { return m_countByFeature; }
91 inline bool CountByFeatureHasBeenSet() const { return m_countByFeatureHasBeenSet; }
92 template<typename CountByFeatureT = Aws::Vector<OrganizationFeatureStatistics>>
93 void SetCountByFeature(CountByFeatureT&& value) { m_countByFeatureHasBeenSet = true; m_countByFeature = std::forward<CountByFeatureT>(value); }
94 template<typename CountByFeatureT = Aws::Vector<OrganizationFeatureStatistics>>
95 OrganizationStatistics& WithCountByFeature(CountByFeatureT&& value) { SetCountByFeature(std::forward<CountByFeatureT>(value)); return *this;}
96 template<typename CountByFeatureT = OrganizationFeatureStatistics>
97 OrganizationStatistics& AddCountByFeature(CountByFeatureT&& value) { m_countByFeatureHasBeenSet = true; m_countByFeature.emplace_back(std::forward<CountByFeatureT>(value)); return *this; }
99 private:
100
101 int m_totalAccountsCount{0};
102 bool m_totalAccountsCountHasBeenSet = false;
103
104 int m_memberAccountsCount{0};
105 bool m_memberAccountsCountHasBeenSet = false;
106
107 int m_activeAccountsCount{0};
108 bool m_activeAccountsCountHasBeenSet = false;
109
110 int m_enabledAccountsCount{0};
111 bool m_enabledAccountsCountHasBeenSet = false;
112
114 bool m_countByFeatureHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace GuardDuty
119} // 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