AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const AggregationFindingType& GetFindingType() const{ return m_findingType; }
51 inline bool FindingTypeHasBeenSet() const { return m_findingTypeHasBeenSet; }
52 inline void SetFindingType(const AggregationFindingType& value) { m_findingTypeHasBeenSet = true; m_findingType = value; }
53 inline void SetFindingType(AggregationFindingType&& value) { m_findingTypeHasBeenSet = true; m_findingType = std::move(value); }
54 inline TitleAggregation& WithFindingType(const AggregationFindingType& value) { SetFindingType(value); return *this;}
55 inline TitleAggregation& WithFindingType(AggregationFindingType&& value) { SetFindingType(std::move(value)); return *this;}
57
59
62 inline const AggregationResourceType& GetResourceType() const{ return m_resourceType; }
63 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
64 inline void SetResourceType(const AggregationResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
65 inline void SetResourceType(AggregationResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
66 inline TitleAggregation& WithResourceType(const AggregationResourceType& value) { SetResourceType(value); return *this;}
67 inline TitleAggregation& WithResourceType(AggregationResourceType&& value) { SetResourceType(std::move(value)); return *this;}
69
71
74 inline const TitleSortBy& GetSortBy() const{ return m_sortBy; }
75 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
76 inline void SetSortBy(const TitleSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
77 inline void SetSortBy(TitleSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
78 inline TitleAggregation& WithSortBy(const TitleSortBy& value) { SetSortBy(value); return *this;}
79 inline TitleAggregation& WithSortBy(TitleSortBy&& value) { SetSortBy(std::move(value)); return *this;}
81
83
86 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
87 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
88 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
89 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
90 inline TitleAggregation& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
91 inline TitleAggregation& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
93
95
98 inline const Aws::Vector<StringFilter>& GetTitles() const{ return m_titles; }
99 inline bool TitlesHasBeenSet() const { return m_titlesHasBeenSet; }
100 inline void SetTitles(const Aws::Vector<StringFilter>& value) { m_titlesHasBeenSet = true; m_titles = value; }
101 inline void SetTitles(Aws::Vector<StringFilter>&& value) { m_titlesHasBeenSet = true; m_titles = std::move(value); }
102 inline TitleAggregation& WithTitles(const Aws::Vector<StringFilter>& value) { SetTitles(value); return *this;}
103 inline TitleAggregation& WithTitles(Aws::Vector<StringFilter>&& value) { SetTitles(std::move(value)); return *this;}
104 inline TitleAggregation& AddTitles(const StringFilter& value) { m_titlesHasBeenSet = true; m_titles.push_back(value); return *this; }
105 inline TitleAggregation& AddTitles(StringFilter&& value) { m_titlesHasBeenSet = true; m_titles.push_back(std::move(value)); return *this; }
107
109
112 inline const Aws::Vector<StringFilter>& GetVulnerabilityIds() const{ return m_vulnerabilityIds; }
113 inline bool VulnerabilityIdsHasBeenSet() const { return m_vulnerabilityIdsHasBeenSet; }
114 inline void SetVulnerabilityIds(const Aws::Vector<StringFilter>& value) { m_vulnerabilityIdsHasBeenSet = true; m_vulnerabilityIds = value; }
115 inline void SetVulnerabilityIds(Aws::Vector<StringFilter>&& value) { m_vulnerabilityIdsHasBeenSet = true; m_vulnerabilityIds = std::move(value); }
117 inline TitleAggregation& WithVulnerabilityIds(Aws::Vector<StringFilter>&& value) { SetVulnerabilityIds(std::move(value)); return *this;}
118 inline TitleAggregation& AddVulnerabilityIds(const StringFilter& value) { m_vulnerabilityIdsHasBeenSet = true; m_vulnerabilityIds.push_back(value); return *this; }
119 inline TitleAggregation& AddVulnerabilityIds(StringFilter&& value) { m_vulnerabilityIdsHasBeenSet = true; m_vulnerabilityIds.push_back(std::move(value)); return *this; }
121 private:
122
123 AggregationFindingType m_findingType;
124 bool m_findingTypeHasBeenSet = false;
125
126 AggregationResourceType m_resourceType;
127 bool m_resourceTypeHasBeenSet = false;
128
129 TitleSortBy m_sortBy;
130 bool m_sortByHasBeenSet = false;
131
132 SortOrder m_sortOrder;
133 bool m_sortOrderHasBeenSet = false;
134
136 bool m_titlesHasBeenSet = false;
137
138 Aws::Vector<StringFilter> m_vulnerabilityIds;
139 bool m_vulnerabilityIdsHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace Inspector2
144} // namespace Aws
TitleAggregation & WithTitles(Aws::Vector< StringFilter > &&value)
void SetVulnerabilityIds(const Aws::Vector< StringFilter > &value)
TitleAggregation & WithResourceType(const AggregationResourceType &value)
TitleAggregation & AddVulnerabilityIds(const StringFilter &value)
TitleAggregation & WithSortOrder(const SortOrder &value)
TitleAggregation & AddVulnerabilityIds(StringFilter &&value)
TitleAggregation & WithTitles(const Aws::Vector< StringFilter > &value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
TitleAggregation & WithSortBy(TitleSortBy &&value)
const Aws::Vector< StringFilter > & GetVulnerabilityIds() const
void SetFindingType(const AggregationFindingType &value)
const Aws::Vector< StringFilter > & GetTitles() const
TitleAggregation & WithFindingType(const AggregationFindingType &value)
void SetTitles(const Aws::Vector< StringFilter > &value)
void SetTitles(Aws::Vector< StringFilter > &&value)
TitleAggregation & WithVulnerabilityIds(Aws::Vector< StringFilter > &&value)
TitleAggregation & WithSortOrder(SortOrder &&value)
TitleAggregation & WithResourceType(AggregationResourceType &&value)
const TitleSortBy & GetSortBy() const
void SetFindingType(AggregationFindingType &&value)
TitleAggregation & WithSortBy(const TitleSortBy &value)
void SetResourceType(AggregationResourceType &&value)
const AggregationFindingType & GetFindingType() const
AWS_INSPECTOR2_API TitleAggregation(Aws::Utils::Json::JsonView jsonValue)
const AggregationResourceType & GetResourceType() const
void SetSortBy(const TitleSortBy &value)
TitleAggregation & AddTitles(StringFilter &&value)
void SetSortOrder(const SortOrder &value)
void SetVulnerabilityIds(Aws::Vector< StringFilter > &&value)
AWS_INSPECTOR2_API TitleAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
TitleAggregation & AddTitles(const StringFilter &value)
void SetResourceType(const AggregationResourceType &value)
TitleAggregation & WithVulnerabilityIds(const Aws::Vector< StringFilter > &value)
TitleAggregation & WithFindingType(AggregationFindingType &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue