AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCountByFeature(const Aws::Vector<OrganizationFeatureStatistics>& value) { m_countByFeatureHasBeenSet = true; m_countByFeature = value; }
93 inline void SetCountByFeature(Aws::Vector<OrganizationFeatureStatistics>&& value) { m_countByFeatureHasBeenSet = true; m_countByFeature = std::move(value); }
96 inline OrganizationStatistics& AddCountByFeature(const OrganizationFeatureStatistics& value) { m_countByFeatureHasBeenSet = true; m_countByFeature.push_back(value); return *this; }
97 inline OrganizationStatistics& AddCountByFeature(OrganizationFeatureStatistics&& value) { m_countByFeatureHasBeenSet = true; m_countByFeature.push_back(std::move(value)); return *this; }
99 private:
100
101 int m_totalAccountsCount;
102 bool m_totalAccountsCountHasBeenSet = false;
103
104 int m_memberAccountsCount;
105 bool m_memberAccountsCountHasBeenSet = false;
106
107 int m_activeAccountsCount;
108 bool m_activeAccountsCountHasBeenSet = false;
109
110 int m_enabledAccountsCount;
111 bool m_enabledAccountsCountHasBeenSet = false;
112
114 bool m_countByFeatureHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace GuardDuty
119} // namespace Aws
void SetCountByFeature(Aws::Vector< OrganizationFeatureStatistics > &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API OrganizationStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
OrganizationStatistics & WithMemberAccountsCount(int value)
const Aws::Vector< OrganizationFeatureStatistics > & GetCountByFeature() const
OrganizationStatistics & WithCountByFeature(const Aws::Vector< OrganizationFeatureStatistics > &value)
void SetCountByFeature(const Aws::Vector< OrganizationFeatureStatistics > &value)
AWS_GUARDDUTY_API OrganizationStatistics(Aws::Utils::Json::JsonView jsonValue)
OrganizationStatistics & AddCountByFeature(OrganizationFeatureStatistics &&value)
OrganizationStatistics & WithActiveAccountsCount(int value)
OrganizationStatistics & WithCountByFeature(Aws::Vector< OrganizationFeatureStatistics > &&value)
OrganizationStatistics & WithTotalAccountsCount(int value)
OrganizationStatistics & AddCountByFeature(const OrganizationFeatureStatistics &value)
OrganizationStatistics & WithEnabledAccountsCount(int value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue