AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccountAggregation.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/inspector2/model/AggregationFindingType.h>
9#include <aws/inspector2/model/AggregationResourceType.h>
10#include <aws/inspector2/model/AccountSortBy.h>
11#include <aws/inspector2/model/SortOrder.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Inspector2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_INSPECTOR2_API AccountAggregation();
39 AWS_INSPECTOR2_API AccountAggregation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const AggregationFindingType& GetFindingType() const{ return m_findingType; }
49 inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; }
50 inline void SetFindingType(const AggregationFindingType& value) { m_findingTypeHasBeenSet = true; m_findingType = value; }
51 inline void SetFindingType(AggregationFindingType&& value) { m_findingTypeHasBeenSet = true; m_findingType = std::move(value); }
52 inline AccountAggregation& WithFindingType(const AggregationFindingType& value) { SetFindingType(value); return *this;}
53 inline AccountAggregation& WithFindingType(AggregationFindingType&& value) { SetFindingType(std::move(value)); return *this;}
55
57
60 inline const AggregationResourceType& GetResourceType() const{ return m_resourceType; }
61 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
62 inline void SetResourceType(const AggregationResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
63 inline void SetResourceType(AggregationResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
64 inline AccountAggregation& WithResourceType(const AggregationResourceType& value) { SetResourceType(value); return *this;}
65 inline AccountAggregation& WithResourceType(AggregationResourceType&& value) { SetResourceType(std::move(value)); return *this;}
67
69
72 inline const AccountSortBy& GetSortBy() const{ return m_sortBy; }
73 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
74 inline void SetSortBy(const AccountSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
75 inline void SetSortBy(AccountSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
76 inline AccountAggregation& WithSortBy(const AccountSortBy& value) { SetSortBy(value); return *this;}
77 inline AccountAggregation& WithSortBy(AccountSortBy&& value) { SetSortBy(std::move(value)); return *this;}
79
81
84 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
85 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
86 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
87 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
88 inline AccountAggregation& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
89 inline AccountAggregation& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
91 private:
92
93 AggregationFindingType m_findingType;
94 bool m_findingTypeHasBeenSet = false;
95
96 AggregationResourceType m_resourceType;
97 bool m_resourceTypeHasBeenSet = false;
98
99 AccountSortBy m_sortBy;
100 bool m_sortByHasBeenSet = false;
101
102 SortOrder m_sortOrder;
103 bool m_sortOrderHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace Inspector2
108} // namespace Aws
void SetFindingType(const AggregationFindingType &value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AccountAggregation & WithSortBy(AccountSortBy &&value)
AWS_INSPECTOR2_API AccountAggregation(Aws::Utils::Json::JsonView jsonValue)
AccountAggregation & WithResourceType(const AggregationResourceType &value)
AccountAggregation & WithFindingType(const AggregationFindingType &value)
const AggregationFindingType & GetFindingType() const
AccountAggregation & WithFindingType(AggregationFindingType &&value)
const AggregationResourceType & GetResourceType() const
void SetResourceType(AggregationResourceType &&value)
AccountAggregation & WithSortBy(const AccountSortBy &value)
AccountAggregation & WithSortOrder(SortOrder &&value)
AWS_INSPECTOR2_API AccountAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSortBy(const AccountSortBy &value)
AccountAggregation & WithResourceType(AggregationResourceType &&value)
void SetFindingType(AggregationFindingType &&value)
void SetResourceType(const AggregationResourceType &value)
AccountAggregation & WithSortOrder(const SortOrder &value)
Aws::Utils::Json::JsonValue JsonValue