AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PackageAggregation.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/inspector2/model/PackageSortBy.h>
10#include <aws/inspector2/model/SortOrder.h>
11#include <aws/inspector2/model/StringFilter.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 PackageAggregation();
39 AWS_INSPECTOR2_API PackageAggregation(Aws::Utils::Json::JsonView jsonValue);
41 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<StringFilter>& GetPackageNames() const{ return m_packageNames; }
49 inline bool PackageNamesHasBeenSet() const { return m_packageNamesHasBeenSet; }
50 inline void SetPackageNames(const Aws::Vector<StringFilter>& value) { m_packageNamesHasBeenSet = true; m_packageNames = value; }
51 inline void SetPackageNames(Aws::Vector<StringFilter>&& value) { m_packageNamesHasBeenSet = true; m_packageNames = std::move(value); }
53 inline PackageAggregation& WithPackageNames(Aws::Vector<StringFilter>&& value) { SetPackageNames(std::move(value)); return *this;}
54 inline PackageAggregation& AddPackageNames(const StringFilter& value) { m_packageNamesHasBeenSet = true; m_packageNames.push_back(value); return *this; }
55 inline PackageAggregation& AddPackageNames(StringFilter&& value) { m_packageNamesHasBeenSet = true; m_packageNames.push_back(std::move(value)); return *this; }
57
59
62 inline const PackageSortBy& GetSortBy() const{ return m_sortBy; }
63 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
64 inline void SetSortBy(const PackageSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
65 inline void SetSortBy(PackageSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
66 inline PackageAggregation& WithSortBy(const PackageSortBy& value) { SetSortBy(value); return *this;}
67 inline PackageAggregation& WithSortBy(PackageSortBy&& value) { SetSortBy(std::move(value)); return *this;}
69
71
74 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
75 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
76 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
77 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
78 inline PackageAggregation& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
79 inline PackageAggregation& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
81 private:
82
83 Aws::Vector<StringFilter> m_packageNames;
84 bool m_packageNamesHasBeenSet = false;
85
86 PackageSortBy m_sortBy;
87 bool m_sortByHasBeenSet = false;
88
89 SortOrder m_sortOrder;
90 bool m_sortOrderHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Inspector2
95} // namespace Aws
PackageAggregation & WithPackageNames(Aws::Vector< StringFilter > &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
PackageAggregation & WithPackageNames(const Aws::Vector< StringFilter > &value)
PackageAggregation & WithSortBy(PackageSortBy &&value)
void SetPackageNames(const Aws::Vector< StringFilter > &value)
PackageAggregation & WithSortBy(const PackageSortBy &value)
PackageAggregation & WithSortOrder(SortOrder &&value)
PackageAggregation & WithSortOrder(const SortOrder &value)
AWS_INSPECTOR2_API PackageAggregation(Aws::Utils::Json::JsonView jsonValue)
void SetPackageNames(Aws::Vector< StringFilter > &&value)
PackageAggregation & AddPackageNames(StringFilter &&value)
AWS_INSPECTOR2_API PackageAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSortBy(const PackageSortBy &value)
const Aws::Vector< StringFilter > & GetPackageNames() const
PackageAggregation & AddPackageNames(const StringFilter &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue