AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FindingStatistics.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/AccountStatistics.h>
10#include <aws/guardduty/model/DateStatistics.h>
11#include <aws/guardduty/model/FindingTypeStatistics.h>
12#include <aws/guardduty/model/ResourceStatistics.h>
13#include <aws/guardduty/model/SeverityStatistics.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GuardDuty
27{
28namespace Model
29{
30
37 {
38 public:
39 AWS_GUARDDUTY_API FindingStatistics();
40 AWS_GUARDDUTY_API FindingStatistics(Aws::Utils::Json::JsonView jsonValue);
42 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<AccountStatistics>& GetGroupedByAccount() const{ return m_groupedByAccount; }
51 inline bool GroupedByAccountHasBeenSet() const { return m_groupedByAccountHasBeenSet; }
52 inline void SetGroupedByAccount(const Aws::Vector<AccountStatistics>& value) { m_groupedByAccountHasBeenSet = true; m_groupedByAccount = value; }
53 inline void SetGroupedByAccount(Aws::Vector<AccountStatistics>&& value) { m_groupedByAccountHasBeenSet = true; m_groupedByAccount = std::move(value); }
56 inline FindingStatistics& AddGroupedByAccount(const AccountStatistics& value) { m_groupedByAccountHasBeenSet = true; m_groupedByAccount.push_back(value); return *this; }
57 inline FindingStatistics& AddGroupedByAccount(AccountStatistics&& value) { m_groupedByAccountHasBeenSet = true; m_groupedByAccount.push_back(std::move(value)); return *this; }
59
61
65 inline const Aws::Vector<DateStatistics>& GetGroupedByDate() const{ return m_groupedByDate; }
66 inline bool GroupedByDateHasBeenSet() const { return m_groupedByDateHasBeenSet; }
67 inline void SetGroupedByDate(const Aws::Vector<DateStatistics>& value) { m_groupedByDateHasBeenSet = true; m_groupedByDate = value; }
68 inline void SetGroupedByDate(Aws::Vector<DateStatistics>&& value) { m_groupedByDateHasBeenSet = true; m_groupedByDate = std::move(value); }
70 inline FindingStatistics& WithGroupedByDate(Aws::Vector<DateStatistics>&& value) { SetGroupedByDate(std::move(value)); return *this;}
71 inline FindingStatistics& AddGroupedByDate(const DateStatistics& value) { m_groupedByDateHasBeenSet = true; m_groupedByDate.push_back(value); return *this; }
72 inline FindingStatistics& AddGroupedByDate(DateStatistics&& value) { m_groupedByDateHasBeenSet = true; m_groupedByDate.push_back(std::move(value)); return *this; }
74
76
85 inline const Aws::Vector<FindingTypeStatistics>& GetGroupedByFindingType() const{ return m_groupedByFindingType; }
86 inline bool GroupedByFindingTypeHasBeenSet() const { return m_groupedByFindingTypeHasBeenSet; }
87 inline void SetGroupedByFindingType(const Aws::Vector<FindingTypeStatistics>& value) { m_groupedByFindingTypeHasBeenSet = true; m_groupedByFindingType = value; }
88 inline void SetGroupedByFindingType(Aws::Vector<FindingTypeStatistics>&& value) { m_groupedByFindingTypeHasBeenSet = true; m_groupedByFindingType = std::move(value); }
91 inline FindingStatistics& AddGroupedByFindingType(const FindingTypeStatistics& value) { m_groupedByFindingTypeHasBeenSet = true; m_groupedByFindingType.push_back(value); return *this; }
92 inline FindingStatistics& AddGroupedByFindingType(FindingTypeStatistics&& value) { m_groupedByFindingTypeHasBeenSet = true; m_groupedByFindingType.push_back(std::move(value)); return *this; }
94
96
99 inline const Aws::Vector<ResourceStatistics>& GetGroupedByResource() const{ return m_groupedByResource; }
100 inline bool GroupedByResourceHasBeenSet() const { return m_groupedByResourceHasBeenSet; }
101 inline void SetGroupedByResource(const Aws::Vector<ResourceStatistics>& value) { m_groupedByResourceHasBeenSet = true; m_groupedByResource = value; }
102 inline void SetGroupedByResource(Aws::Vector<ResourceStatistics>&& value) { m_groupedByResourceHasBeenSet = true; m_groupedByResource = std::move(value); }
105 inline FindingStatistics& AddGroupedByResource(const ResourceStatistics& value) { m_groupedByResourceHasBeenSet = true; m_groupedByResource.push_back(value); return *this; }
106 inline FindingStatistics& AddGroupedByResource(ResourceStatistics&& value) { m_groupedByResourceHasBeenSet = true; m_groupedByResource.push_back(std::move(value)); return *this; }
108
110
113 inline const Aws::Vector<SeverityStatistics>& GetGroupedBySeverity() const{ return m_groupedBySeverity; }
114 inline bool GroupedBySeverityHasBeenSet() const { return m_groupedBySeverityHasBeenSet; }
115 inline void SetGroupedBySeverity(const Aws::Vector<SeverityStatistics>& value) { m_groupedBySeverityHasBeenSet = true; m_groupedBySeverity = value; }
116 inline void SetGroupedBySeverity(Aws::Vector<SeverityStatistics>&& value) { m_groupedBySeverityHasBeenSet = true; m_groupedBySeverity = std::move(value); }
119 inline FindingStatistics& AddGroupedBySeverity(const SeverityStatistics& value) { m_groupedBySeverityHasBeenSet = true; m_groupedBySeverity.push_back(value); return *this; }
120 inline FindingStatistics& AddGroupedBySeverity(SeverityStatistics&& value) { m_groupedBySeverityHasBeenSet = true; m_groupedBySeverity.push_back(std::move(value)); return *this; }
122 private:
123
124 Aws::Vector<AccountStatistics> m_groupedByAccount;
125 bool m_groupedByAccountHasBeenSet = false;
126
127 Aws::Vector<DateStatistics> m_groupedByDate;
128 bool m_groupedByDateHasBeenSet = false;
129
130 Aws::Vector<FindingTypeStatistics> m_groupedByFindingType;
131 bool m_groupedByFindingTypeHasBeenSet = false;
132
133 Aws::Vector<ResourceStatistics> m_groupedByResource;
134 bool m_groupedByResourceHasBeenSet = false;
135
136 Aws::Vector<SeverityStatistics> m_groupedBySeverity;
137 bool m_groupedBySeverityHasBeenSet = false;
138 };
139
140} // namespace Model
141} // namespace GuardDuty
142} // namespace Aws
FindingStatistics & AddGroupedByFindingType(FindingTypeStatistics &&value)
void SetGroupedByAccount(Aws::Vector< AccountStatistics > &&value)
FindingStatistics & AddGroupedBySeverity(const SeverityStatistics &value)
void SetGroupedByFindingType(Aws::Vector< FindingTypeStatistics > &&value)
FindingStatistics & AddGroupedByDate(const DateStatistics &value)
FindingStatistics & WithGroupedByAccount(const Aws::Vector< AccountStatistics > &value)
AWS_GUARDDUTY_API FindingStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AccountStatistics > & GetGroupedByAccount() const
FindingStatistics & WithGroupedByDate(const Aws::Vector< DateStatistics > &value)
FindingStatistics & WithGroupedByFindingType(const Aws::Vector< FindingTypeStatistics > &value)
FindingStatistics & WithGroupedByAccount(Aws::Vector< AccountStatistics > &&value)
FindingStatistics & AddGroupedByFindingType(const FindingTypeStatistics &value)
FindingStatistics & AddGroupedBySeverity(SeverityStatistics &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API FindingStatistics(Aws::Utils::Json::JsonView jsonValue)
FindingStatistics & AddGroupedByAccount(const AccountStatistics &value)
FindingStatistics & AddGroupedByAccount(AccountStatistics &&value)
FindingStatistics & WithGroupedBySeverity(const Aws::Vector< SeverityStatistics > &value)
void SetGroupedByDate(const Aws::Vector< DateStatistics > &value)
void SetGroupedByDate(Aws::Vector< DateStatistics > &&value)
const Aws::Vector< DateStatistics > & GetGroupedByDate() const
void SetGroupedByResource(const Aws::Vector< ResourceStatistics > &value)
FindingStatistics & WithGroupedByDate(Aws::Vector< DateStatistics > &&value)
void SetGroupedByAccount(const Aws::Vector< AccountStatistics > &value)
FindingStatistics & WithGroupedByResource(Aws::Vector< ResourceStatistics > &&value)
void SetGroupedByResource(Aws::Vector< ResourceStatistics > &&value)
FindingStatistics & WithGroupedByResource(const Aws::Vector< ResourceStatistics > &value)
FindingStatistics & AddGroupedByDate(DateStatistics &&value)
const Aws::Vector< FindingTypeStatistics > & GetGroupedByFindingType() const
const Aws::Vector< SeverityStatistics > & GetGroupedBySeverity() const
FindingStatistics & AddGroupedByResource(const ResourceStatistics &value)
void SetGroupedBySeverity(const Aws::Vector< SeverityStatistics > &value)
FindingStatistics & WithGroupedBySeverity(Aws::Vector< SeverityStatistics > &&value)
FindingStatistics & WithGroupedByFindingType(Aws::Vector< FindingTypeStatistics > &&value)
FindingStatistics & AddGroupedByResource(ResourceStatistics &&value)
void SetGroupedByFindingType(const Aws::Vector< FindingTypeStatistics > &value)
void SetGroupedBySeverity(Aws::Vector< SeverityStatistics > &&value)
const Aws::Vector< ResourceStatistics > & GetGroupedByResource() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue