AWS SDK for C++

AWS SDK for C++ Version 1.11.608

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() = default;
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 template<typename GroupedByAccountT = Aws::Vector<AccountStatistics>>
53 void SetGroupedByAccount(GroupedByAccountT&& value) { m_groupedByAccountHasBeenSet = true; m_groupedByAccount = std::forward<GroupedByAccountT>(value); }
54 template<typename GroupedByAccountT = Aws::Vector<AccountStatistics>>
55 FindingStatistics& WithGroupedByAccount(GroupedByAccountT&& value) { SetGroupedByAccount(std::forward<GroupedByAccountT>(value)); return *this;}
56 template<typename GroupedByAccountT = AccountStatistics>
57 FindingStatistics& AddGroupedByAccount(GroupedByAccountT&& value) { m_groupedByAccountHasBeenSet = true; m_groupedByAccount.emplace_back(std::forward<GroupedByAccountT>(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 template<typename GroupedByDateT = Aws::Vector<DateStatistics>>
68 void SetGroupedByDate(GroupedByDateT&& value) { m_groupedByDateHasBeenSet = true; m_groupedByDate = std::forward<GroupedByDateT>(value); }
69 template<typename GroupedByDateT = Aws::Vector<DateStatistics>>
70 FindingStatistics& WithGroupedByDate(GroupedByDateT&& value) { SetGroupedByDate(std::forward<GroupedByDateT>(value)); return *this;}
71 template<typename GroupedByDateT = DateStatistics>
72 FindingStatistics& AddGroupedByDate(GroupedByDateT&& value) { m_groupedByDateHasBeenSet = true; m_groupedByDate.emplace_back(std::forward<GroupedByDateT>(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 template<typename GroupedByFindingTypeT = Aws::Vector<FindingTypeStatistics>>
88 void SetGroupedByFindingType(GroupedByFindingTypeT&& value) { m_groupedByFindingTypeHasBeenSet = true; m_groupedByFindingType = std::forward<GroupedByFindingTypeT>(value); }
89 template<typename GroupedByFindingTypeT = Aws::Vector<FindingTypeStatistics>>
90 FindingStatistics& WithGroupedByFindingType(GroupedByFindingTypeT&& value) { SetGroupedByFindingType(std::forward<GroupedByFindingTypeT>(value)); return *this;}
91 template<typename GroupedByFindingTypeT = FindingTypeStatistics>
92 FindingStatistics& AddGroupedByFindingType(GroupedByFindingTypeT&& value) { m_groupedByFindingTypeHasBeenSet = true; m_groupedByFindingType.emplace_back(std::forward<GroupedByFindingTypeT>(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 template<typename GroupedByResourceT = Aws::Vector<ResourceStatistics>>
102 void SetGroupedByResource(GroupedByResourceT&& value) { m_groupedByResourceHasBeenSet = true; m_groupedByResource = std::forward<GroupedByResourceT>(value); }
103 template<typename GroupedByResourceT = Aws::Vector<ResourceStatistics>>
104 FindingStatistics& WithGroupedByResource(GroupedByResourceT&& value) { SetGroupedByResource(std::forward<GroupedByResourceT>(value)); return *this;}
105 template<typename GroupedByResourceT = ResourceStatistics>
106 FindingStatistics& AddGroupedByResource(GroupedByResourceT&& value) { m_groupedByResourceHasBeenSet = true; m_groupedByResource.emplace_back(std::forward<GroupedByResourceT>(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 template<typename GroupedBySeverityT = Aws::Vector<SeverityStatistics>>
116 void SetGroupedBySeverity(GroupedBySeverityT&& value) { m_groupedBySeverityHasBeenSet = true; m_groupedBySeverity = std::forward<GroupedBySeverityT>(value); }
117 template<typename GroupedBySeverityT = Aws::Vector<SeverityStatistics>>
118 FindingStatistics& WithGroupedBySeverity(GroupedBySeverityT&& value) { SetGroupedBySeverity(std::forward<GroupedBySeverityT>(value)); return *this;}
119 template<typename GroupedBySeverityT = SeverityStatistics>
120 FindingStatistics& AddGroupedBySeverity(GroupedBySeverityT&& value) { m_groupedBySeverityHasBeenSet = true; m_groupedBySeverity.emplace_back(std::forward<GroupedBySeverityT>(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
AWS_GUARDDUTY_API FindingStatistics()=default
FindingStatistics & AddGroupedByResource(GroupedByResourceT &&value)
FindingStatistics & AddGroupedBySeverity(GroupedBySeverityT &&value)
FindingStatistics & WithGroupedByResource(GroupedByResourceT &&value)
FindingStatistics & WithGroupedByAccount(GroupedByAccountT &&value)
FindingStatistics & AddGroupedByAccount(GroupedByAccountT &&value)
AWS_GUARDDUTY_API FindingStatistics & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AccountStatistics > & GetGroupedByAccount() const
FindingStatistics & AddGroupedByFindingType(GroupedByFindingTypeT &&value)
void SetGroupedBySeverity(GroupedBySeverityT &&value)
FindingStatistics & WithGroupedBySeverity(GroupedBySeverityT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API FindingStatistics(Aws::Utils::Json::JsonView jsonValue)
void SetGroupedByAccount(GroupedByAccountT &&value)
const Aws::Vector< DateStatistics > & GetGroupedByDate() const
void SetGroupedByFindingType(GroupedByFindingTypeT &&value)
void SetGroupedByResource(GroupedByResourceT &&value)
FindingStatistics & WithGroupedByFindingType(GroupedByFindingTypeT &&value)
FindingStatistics & WithGroupedByDate(GroupedByDateT &&value)
FindingStatistics & AddGroupedByDate(GroupedByDateT &&value)
const Aws::Vector< FindingTypeStatistics > & GetGroupedByFindingType() const
const Aws::Vector< SeverityStatistics > & GetGroupedBySeverity() const
void SetGroupedByDate(GroupedByDateT &&value)
const Aws::Vector< ResourceStatistics > & GetGroupedByResource() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue