AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GroupByRule.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/OcsfFindingFilters.h>
9#include <aws/securityhub/model/GroupByField.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 SecurityHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_SECURITYHUB_API GroupByRule() = default;
37 AWS_SECURITYHUB_API GroupByRule(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API GroupByRule& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const OcsfFindingFilters& GetFilters() const { return m_filters; }
48 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
49 template<typename FiltersT = OcsfFindingFilters>
50 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
51 template<typename FiltersT = OcsfFindingFilters>
52 GroupByRule& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
54
56
59 inline GroupByField GetGroupByField() const { return m_groupByField; }
60 inline bool GroupByFieldHasBeenSet() const { return m_groupByFieldHasBeenSet; }
61 inline void SetGroupByField(GroupByField value) { m_groupByFieldHasBeenSet = true; m_groupByField = value; }
62 inline GroupByRule& WithGroupByField(GroupByField value) { SetGroupByField(value); return *this;}
64 private:
65
66 OcsfFindingFilters m_filters;
67 bool m_filtersHasBeenSet = false;
68
69 GroupByField m_groupByField{GroupByField::NOT_SET};
70 bool m_groupByFieldHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace SecurityHub
75} // namespace Aws
GroupByRule & WithFilters(FiltersT &&value)
Definition GroupByRule.h:52
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:47
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:50
GroupByRule & WithGroupByField(GroupByField value)
Definition GroupByRule.h:62
void SetGroupByField(GroupByField value)
Definition GroupByRule.h:61
Aws::Utils::Json::JsonValue JsonValue