AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
AccountAggregation.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/AccountSortBy.h>
9#include <aws/inspector2/model/AggregationFindingType.h>
10#include <aws/inspector2/model/AggregationResourceType.h>
11#include <aws/inspector2/model/SortOrder.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Inspector2 {
23namespace Model {
24
32 public:
33 AWS_INSPECTOR2_API AccountAggregation() = default;
34 AWS_INSPECTOR2_API AccountAggregation(Aws::Utils::Json::JsonView jsonValue);
36 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline AggregationFindingType GetFindingType() const { return m_findingType; }
43 inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; }
45 m_findingTypeHasBeenSet = true;
46 m_findingType = value;
47 }
49 SetFindingType(value);
50 return *this;
51 }
53
55
58 inline AggregationResourceType GetResourceType() const { return m_resourceType; }
59 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
61 m_resourceTypeHasBeenSet = true;
62 m_resourceType = value;
63 }
65 SetResourceType(value);
66 return *this;
67 }
69
71
74 inline SortOrder GetSortOrder() const { return m_sortOrder; }
75 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
76 inline void SetSortOrder(SortOrder value) {
77 m_sortOrderHasBeenSet = true;
78 m_sortOrder = value;
79 }
81 SetSortOrder(value);
82 return *this;
83 }
85
87
90 inline AccountSortBy GetSortBy() const { return m_sortBy; }
91 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
92 inline void SetSortBy(AccountSortBy value) {
93 m_sortByHasBeenSet = true;
94 m_sortBy = value;
95 }
97 SetSortBy(value);
98 return *this;
99 }
101 private:
103
105
106 SortOrder m_sortOrder{SortOrder::NOT_SET};
107
109 bool m_findingTypeHasBeenSet = false;
110 bool m_resourceTypeHasBeenSet = false;
111 bool m_sortOrderHasBeenSet = false;
112 bool m_sortByHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace Inspector2
117} // namespace Aws
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AccountAggregation & WithResourceType(AggregationResourceType value)
AccountAggregation & WithSortBy(AccountSortBy value)
void SetFindingType(AggregationFindingType value)
AccountAggregation & WithSortOrder(SortOrder value)
AWS_INSPECTOR2_API AccountAggregation(Aws::Utils::Json::JsonView jsonValue)
AggregationResourceType GetResourceType() const
AWS_INSPECTOR2_API AccountAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
AggregationFindingType GetFindingType() const
AWS_INSPECTOR2_API AccountAggregation()=default
AccountAggregation & WithFindingType(AggregationFindingType value)
void SetResourceType(AggregationResourceType value)
Aws::Utils::Json::JsonValue JsonValue