AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RepositoryAggregation.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/RepositorySortBy.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 RepositoryAggregation();
41 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<StringFilter>& GetRepositories() const{ return m_repositories; }
49 inline bool RepositoriesHasBeenSet() const { return m_repositoriesHasBeenSet; }
50 inline void SetRepositories(const Aws::Vector<StringFilter>& value) { m_repositoriesHasBeenSet = true; m_repositories = value; }
51 inline void SetRepositories(Aws::Vector<StringFilter>&& value) { m_repositoriesHasBeenSet = true; m_repositories = std::move(value); }
53 inline RepositoryAggregation& WithRepositories(Aws::Vector<StringFilter>&& value) { SetRepositories(std::move(value)); return *this;}
54 inline RepositoryAggregation& AddRepositories(const StringFilter& value) { m_repositoriesHasBeenSet = true; m_repositories.push_back(value); return *this; }
55 inline RepositoryAggregation& AddRepositories(StringFilter&& value) { m_repositoriesHasBeenSet = true; m_repositories.push_back(std::move(value)); return *this; }
57
59
62 inline const RepositorySortBy& GetSortBy() const{ return m_sortBy; }
63 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
64 inline void SetSortBy(const RepositorySortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
65 inline void SetSortBy(RepositorySortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
66 inline RepositoryAggregation& WithSortBy(const RepositorySortBy& value) { SetSortBy(value); return *this;}
67 inline RepositoryAggregation& WithSortBy(RepositorySortBy&& 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 RepositoryAggregation& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
79 inline RepositoryAggregation& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
81 private:
82
83 Aws::Vector<StringFilter> m_repositories;
84 bool m_repositoriesHasBeenSet = false;
85
86 RepositorySortBy 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
const Aws::Vector< StringFilter > & GetRepositories() const
RepositoryAggregation & WithRepositories(Aws::Vector< StringFilter > &&value)
RepositoryAggregation & WithSortOrder(SortOrder &&value)
RepositoryAggregation & WithSortOrder(const SortOrder &value)
RepositoryAggregation & WithSortBy(RepositorySortBy &&value)
RepositoryAggregation & WithRepositories(const Aws::Vector< StringFilter > &value)
RepositoryAggregation & AddRepositories(StringFilter &&value)
void SetSortBy(const RepositorySortBy &value)
AWS_INSPECTOR2_API RepositoryAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRepositories(const Aws::Vector< StringFilter > &value)
RepositoryAggregation & AddRepositories(const StringFilter &value)
RepositoryAggregation & WithSortBy(const RepositorySortBy &value)
void SetRepositories(Aws::Vector< StringFilter > &&value)
AWS_INSPECTOR2_API RepositoryAggregation(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue