AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TitleAggregation.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/TitleSortBy.h>
11#include <aws/inspector2/model/SortOrder.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/inspector2/model/StringFilter.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 Inspector2
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_INSPECTOR2_API TitleAggregation() = default;
41 AWS_INSPECTOR2_API TitleAggregation(Aws::Utils::Json::JsonView jsonValue);
43 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline AggregationFindingType GetFindingType() const { return m_findingType; }
51 inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; }
52 inline void SetFindingType(AggregationFindingType value) { m_findingTypeHasBeenSet = true; m_findingType = value; }
55
57
60 inline AggregationResourceType GetResourceType() const { return m_resourceType; }
61 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
62 inline void SetResourceType(AggregationResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
65
67
70 inline TitleSortBy GetSortBy() const { return m_sortBy; }
71 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
72 inline void SetSortBy(TitleSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
73 inline TitleAggregation& WithSortBy(TitleSortBy value) { SetSortBy(value); return *this;}
75
77
80 inline SortOrder GetSortOrder() const { return m_sortOrder; }
81 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
82 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
83 inline TitleAggregation& WithSortOrder(SortOrder value) { SetSortOrder(value); return *this;}
85
87
90 inline const Aws::Vector<StringFilter>& GetTitles() const { return m_titles; }
91 inline bool TitlesHasBeenSet() const { return m_titlesHasBeenSet; }
92 template<typename TitlesT = Aws::Vector<StringFilter>>
93 void SetTitles(TitlesT&& value) { m_titlesHasBeenSet = true; m_titles = std::forward<TitlesT>(value); }
94 template<typename TitlesT = Aws::Vector<StringFilter>>
95 TitleAggregation& WithTitles(TitlesT&& value) { SetTitles(std::forward<TitlesT>(value)); return *this;}
96 template<typename TitlesT = StringFilter>
97 TitleAggregation& AddTitles(TitlesT&& value) { m_titlesHasBeenSet = true; m_titles.emplace_back(std::forward<TitlesT>(value)); return *this; }
99
101
104 inline const Aws::Vector<StringFilter>& GetVulnerabilityIds() const { return m_vulnerabilityIds; }
105 inline bool VulnerabilityIdsHasBeenSet() const { return m_vulnerabilityIdsHasBeenSet; }
106 template<typename VulnerabilityIdsT = Aws::Vector<StringFilter>>
107 void SetVulnerabilityIds(VulnerabilityIdsT&& value) { m_vulnerabilityIdsHasBeenSet = true; m_vulnerabilityIds = std::forward<VulnerabilityIdsT>(value); }
108 template<typename VulnerabilityIdsT = Aws::Vector<StringFilter>>
109 TitleAggregation& WithVulnerabilityIds(VulnerabilityIdsT&& value) { SetVulnerabilityIds(std::forward<VulnerabilityIdsT>(value)); return *this;}
110 template<typename VulnerabilityIdsT = StringFilter>
111 TitleAggregation& AddVulnerabilityIds(VulnerabilityIdsT&& value) { m_vulnerabilityIdsHasBeenSet = true; m_vulnerabilityIds.emplace_back(std::forward<VulnerabilityIdsT>(value)); return *this; }
113 private:
114
116 bool m_findingTypeHasBeenSet = false;
117
119 bool m_resourceTypeHasBeenSet = false;
120
122 bool m_sortByHasBeenSet = false;
123
124 SortOrder m_sortOrder{SortOrder::NOT_SET};
125 bool m_sortOrderHasBeenSet = false;
126
128 bool m_titlesHasBeenSet = false;
129
130 Aws::Vector<StringFilter> m_vulnerabilityIds;
131 bool m_vulnerabilityIdsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Inspector2
136} // namespace Aws
TitleAggregation & WithVulnerabilityIds(VulnerabilityIdsT &&value)
AggregationResourceType GetResourceType() const
void SetVulnerabilityIds(VulnerabilityIdsT &&value)
void SetFindingType(AggregationFindingType value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
TitleAggregation & WithFindingType(AggregationFindingType value)
const Aws::Vector< StringFilter > & GetVulnerabilityIds() const
const Aws::Vector< StringFilter > & GetTitles() const
TitleAggregation & WithTitles(TitlesT &&value)
void SetResourceType(AggregationResourceType value)
AWS_INSPECTOR2_API TitleAggregation()=default
TitleAggregation & AddTitles(TitlesT &&value)
TitleAggregation & AddVulnerabilityIds(VulnerabilityIdsT &&value)
TitleAggregation & WithResourceType(AggregationResourceType value)
AWS_INSPECTOR2_API TitleAggregation(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API TitleAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
TitleAggregation & WithSortBy(TitleSortBy value)
AggregationFindingType GetFindingType() const
TitleAggregation & WithSortOrder(SortOrder value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue