AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
TitleAggregation.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/inspector2/Inspector2_EXPORTS.h>
9#include <aws/inspector2/model/AggregationFindingType.h>
10#include <aws/inspector2/model/AggregationResourceType.h>
11#include <aws/inspector2/model/SortOrder.h>
12#include <aws/inspector2/model/StringFilter.h>
13#include <aws/inspector2/model/TitleSortBy.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Inspector2 {
25namespace Model {
26
34 public:
35 AWS_INSPECTOR2_API TitleAggregation() = default;
36 AWS_INSPECTOR2_API TitleAggregation(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::Vector<StringFilter>& GetTitles() const { return m_titles; }
45 inline bool TitlesHasBeenSet() const { return m_titlesHasBeenSet; }
46 template <typename TitlesT = Aws::Vector<StringFilter>>
47 void SetTitles(TitlesT&& value) {
48 m_titlesHasBeenSet = true;
49 m_titles = std::forward<TitlesT>(value);
50 }
51 template <typename TitlesT = Aws::Vector<StringFilter>>
52 TitleAggregation& WithTitles(TitlesT&& value) {
53 SetTitles(std::forward<TitlesT>(value));
54 return *this;
55 }
56 template <typename TitlesT = StringFilter>
57 TitleAggregation& AddTitles(TitlesT&& value) {
58 m_titlesHasBeenSet = true;
59 m_titles.emplace_back(std::forward<TitlesT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::Vector<StringFilter>& GetVulnerabilityIds() const { return m_vulnerabilityIds; }
69 inline bool VulnerabilityIdsHasBeenSet() const { return m_vulnerabilityIdsHasBeenSet; }
70 template <typename VulnerabilityIdsT = Aws::Vector<StringFilter>>
71 void SetVulnerabilityIds(VulnerabilityIdsT&& value) {
72 m_vulnerabilityIdsHasBeenSet = true;
73 m_vulnerabilityIds = std::forward<VulnerabilityIdsT>(value);
74 }
75 template <typename VulnerabilityIdsT = Aws::Vector<StringFilter>>
76 TitleAggregation& WithVulnerabilityIds(VulnerabilityIdsT&& value) {
77 SetVulnerabilityIds(std::forward<VulnerabilityIdsT>(value));
78 return *this;
79 }
80 template <typename VulnerabilityIdsT = StringFilter>
81 TitleAggregation& AddVulnerabilityIds(VulnerabilityIdsT&& value) {
82 m_vulnerabilityIdsHasBeenSet = true;
83 m_vulnerabilityIds.emplace_back(std::forward<VulnerabilityIdsT>(value));
84 return *this;
85 }
87
89
92 inline AggregationResourceType GetResourceType() const { return m_resourceType; }
93 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
95 m_resourceTypeHasBeenSet = true;
96 m_resourceType = value;
97 }
99 SetResourceType(value);
100 return *this;
101 }
103
105
108 inline SortOrder GetSortOrder() const { return m_sortOrder; }
109 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
110 inline void SetSortOrder(SortOrder value) {
111 m_sortOrderHasBeenSet = true;
112 m_sortOrder = value;
113 }
115 SetSortOrder(value);
116 return *this;
117 }
119
121
124 inline TitleSortBy GetSortBy() const { return m_sortBy; }
125 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
126 inline void SetSortBy(TitleSortBy value) {
127 m_sortByHasBeenSet = true;
128 m_sortBy = value;
129 }
131 SetSortBy(value);
132 return *this;
133 }
135
137
140 inline AggregationFindingType GetFindingType() const { return m_findingType; }
141 inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; }
143 m_findingTypeHasBeenSet = true;
144 m_findingType = value;
145 }
147 SetFindingType(value);
148 return *this;
149 }
151 private:
153
154 Aws::Vector<StringFilter> m_vulnerabilityIds;
155
157
158 SortOrder m_sortOrder{SortOrder::NOT_SET};
159
161
163 bool m_titlesHasBeenSet = false;
164 bool m_vulnerabilityIdsHasBeenSet = false;
165 bool m_resourceTypeHasBeenSet = false;
166 bool m_sortOrderHasBeenSet = false;
167 bool m_sortByHasBeenSet = false;
168 bool m_findingTypeHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace Inspector2
173} // 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