AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageLayerAggregation.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/ImageLayerSortBy.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 ImageLayerAggregation();
41 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::Vector<StringFilter>& GetLayerHashes() const{ return m_layerHashes; }
49 inline bool LayerHashesHasBeenSet() const { return m_layerHashesHasBeenSet; }
50 inline void SetLayerHashes(const Aws::Vector<StringFilter>& value) { m_layerHashesHasBeenSet = true; m_layerHashes = value; }
51 inline void SetLayerHashes(Aws::Vector<StringFilter>&& value) { m_layerHashesHasBeenSet = true; m_layerHashes = std::move(value); }
53 inline ImageLayerAggregation& WithLayerHashes(Aws::Vector<StringFilter>&& value) { SetLayerHashes(std::move(value)); return *this;}
54 inline ImageLayerAggregation& AddLayerHashes(const StringFilter& value) { m_layerHashesHasBeenSet = true; m_layerHashes.push_back(value); return *this; }
55 inline ImageLayerAggregation& AddLayerHashes(StringFilter&& value) { m_layerHashesHasBeenSet = true; m_layerHashes.push_back(std::move(value)); return *this; }
57
59
62 inline const Aws::Vector<StringFilter>& GetRepositories() const{ return m_repositories; }
63 inline bool RepositoriesHasBeenSet() const { return m_repositoriesHasBeenSet; }
64 inline void SetRepositories(const Aws::Vector<StringFilter>& value) { m_repositoriesHasBeenSet = true; m_repositories = value; }
65 inline void SetRepositories(Aws::Vector<StringFilter>&& value) { m_repositoriesHasBeenSet = true; m_repositories = std::move(value); }
67 inline ImageLayerAggregation& WithRepositories(Aws::Vector<StringFilter>&& value) { SetRepositories(std::move(value)); return *this;}
68 inline ImageLayerAggregation& AddRepositories(const StringFilter& value) { m_repositoriesHasBeenSet = true; m_repositories.push_back(value); return *this; }
69 inline ImageLayerAggregation& AddRepositories(StringFilter&& value) { m_repositoriesHasBeenSet = true; m_repositories.push_back(std::move(value)); return *this; }
71
73
76 inline const Aws::Vector<StringFilter>& GetResourceIds() const{ return m_resourceIds; }
77 inline bool ResourceIdsHasBeenSet() const { return m_resourceIdsHasBeenSet; }
78 inline void SetResourceIds(const Aws::Vector<StringFilter>& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = value; }
79 inline void SetResourceIds(Aws::Vector<StringFilter>&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds = std::move(value); }
81 inline ImageLayerAggregation& WithResourceIds(Aws::Vector<StringFilter>&& value) { SetResourceIds(std::move(value)); return *this;}
82 inline ImageLayerAggregation& AddResourceIds(const StringFilter& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(value); return *this; }
83 inline ImageLayerAggregation& AddResourceIds(StringFilter&& value) { m_resourceIdsHasBeenSet = true; m_resourceIds.push_back(std::move(value)); return *this; }
85
87
90 inline const ImageLayerSortBy& GetSortBy() const{ return m_sortBy; }
91 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
92 inline void SetSortBy(const ImageLayerSortBy& value) { m_sortByHasBeenSet = true; m_sortBy = value; }
93 inline void SetSortBy(ImageLayerSortBy&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); }
94 inline ImageLayerAggregation& WithSortBy(const ImageLayerSortBy& value) { SetSortBy(value); return *this;}
95 inline ImageLayerAggregation& WithSortBy(ImageLayerSortBy&& value) { SetSortBy(std::move(value)); return *this;}
97
99
102 inline const SortOrder& GetSortOrder() const{ return m_sortOrder; }
103 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
104 inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
105 inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); }
106 inline ImageLayerAggregation& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;}
107 inline ImageLayerAggregation& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;}
109 private:
110
111 Aws::Vector<StringFilter> m_layerHashes;
112 bool m_layerHashesHasBeenSet = false;
113
114 Aws::Vector<StringFilter> m_repositories;
115 bool m_repositoriesHasBeenSet = false;
116
117 Aws::Vector<StringFilter> m_resourceIds;
118 bool m_resourceIdsHasBeenSet = false;
119
120 ImageLayerSortBy m_sortBy;
121 bool m_sortByHasBeenSet = false;
122
123 SortOrder m_sortOrder;
124 bool m_sortOrderHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace Inspector2
129} // namespace Aws
ImageLayerAggregation & WithRepositories(const Aws::Vector< StringFilter > &value)
const Aws::Vector< StringFilter > & GetResourceIds() const
ImageLayerAggregation & AddResourceIds(const StringFilter &value)
void SetLayerHashes(Aws::Vector< StringFilter > &&value)
const Aws::Vector< StringFilter > & GetLayerHashes() const
ImageLayerAggregation & WithLayerHashes(const Aws::Vector< StringFilter > &value)
ImageLayerAggregation & WithResourceIds(Aws::Vector< StringFilter > &&value)
ImageLayerAggregation & AddResourceIds(StringFilter &&value)
ImageLayerAggregation & WithLayerHashes(Aws::Vector< StringFilter > &&value)
AWS_INSPECTOR2_API ImageLayerAggregation & operator=(Aws::Utils::Json::JsonView jsonValue)
ImageLayerAggregation & WithSortBy(ImageLayerSortBy &&value)
ImageLayerAggregation & AddRepositories(StringFilter &&value)
void SetRepositories(Aws::Vector< StringFilter > &&value)
ImageLayerAggregation & WithRepositories(Aws::Vector< StringFilter > &&value)
ImageLayerAggregation & AddLayerHashes(StringFilter &&value)
ImageLayerAggregation & WithSortOrder(const SortOrder &value)
const Aws::Vector< StringFilter > & GetRepositories() const
void SetLayerHashes(const Aws::Vector< StringFilter > &value)
ImageLayerAggregation & WithSortBy(const ImageLayerSortBy &value)
void SetRepositories(const Aws::Vector< StringFilter > &value)
ImageLayerAggregation & AddRepositories(const StringFilter &value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
ImageLayerAggregation & AddLayerHashes(const StringFilter &value)
AWS_INSPECTOR2_API ImageLayerAggregation(Aws::Utils::Json::JsonView jsonValue)
void SetResourceIds(const Aws::Vector< StringFilter > &value)
void SetResourceIds(Aws::Vector< StringFilter > &&value)
void SetSortBy(const ImageLayerSortBy &value)
ImageLayerAggregation & WithSortOrder(SortOrder &&value)
ImageLayerAggregation & WithResourceIds(const Aws::Vector< StringFilter > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue