AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
GroupByRule.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/GroupByField.h>
9#include <aws/securityhub/model/OcsfFindingFilters.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
30 public:
31 AWS_SECURITYHUB_API GroupByRule() = default;
32 AWS_SECURITYHUB_API GroupByRule(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API GroupByRule& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const OcsfFindingFilters& GetFilters() const { return m_filters; }
42 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
43 template <typename FiltersT = OcsfFindingFilters>
44 void SetFilters(FiltersT&& value) {
45 m_filtersHasBeenSet = true;
46 m_filters = std::forward<FiltersT>(value);
47 }
48 template <typename FiltersT = OcsfFindingFilters>
49 GroupByRule& WithFilters(FiltersT&& value) {
50 SetFilters(std::forward<FiltersT>(value));
51 return *this;
52 }
54
56
59 inline GroupByField GetGroupByField() const { return m_groupByField; }
60 inline bool GroupByFieldHasBeenSet() const { return m_groupByFieldHasBeenSet; }
61 inline void SetGroupByField(GroupByField value) {
62 m_groupByFieldHasBeenSet = true;
63 m_groupByField = value;
64 }
66 SetGroupByField(value);
67 return *this;
68 }
70 private:
71 OcsfFindingFilters m_filters;
72
73 GroupByField m_groupByField{GroupByField::NOT_SET};
74 bool m_filtersHasBeenSet = false;
75 bool m_groupByFieldHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace SecurityHub
80} // namespace Aws
GroupByRule & WithFilters(FiltersT &&value)
Definition GroupByRule.h:49
AWS_SECURITYHUB_API GroupByRule(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API GroupByRule & operator=(Aws::Utils::Json::JsonView jsonValue)
const OcsfFindingFilters & GetFilters() const
Definition GroupByRule.h:41
AWS_SECURITYHUB_API GroupByRule()=default
GroupByField GetGroupByField() const
Definition GroupByRule.h:59
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFilters(FiltersT &&value)
Definition GroupByRule.h:44
GroupByRule & WithGroupByField(GroupByField value)
Definition GroupByRule.h:65
void SetGroupByField(GroupByField value)
Definition GroupByRule.h:61
Aws::Utils::Json::JsonValue JsonValue