AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
GetLifecyclePolicyPreviewRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecr/ECRRequest.h>
10#include <aws/ecr/ECR_EXPORTS.h>
11#include <aws/ecr/model/ImageIdentifier.h>
12#include <aws/ecr/model/LifecyclePolicyPreviewFilter.h>
13
14#include <utility>
15
16namespace Aws {
17namespace ECR {
18namespace Model {
19
23 public:
24 AWS_ECR_API GetLifecyclePolicyPreviewRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "GetLifecyclePolicyPreview"; }
31
32 AWS_ECR_API Aws::String SerializePayload() const override;
33
35
37
42 inline const Aws::String& GetRegistryId() const { return m_registryId; }
43 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
44 template <typename RegistryIdT = Aws::String>
45 void SetRegistryId(RegistryIdT&& value) {
46 m_registryIdHasBeenSet = true;
47 m_registryId = std::forward<RegistryIdT>(value);
48 }
49 template <typename RegistryIdT = Aws::String>
51 SetRegistryId(std::forward<RegistryIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
61 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
62 template <typename RepositoryNameT = Aws::String>
63 void SetRepositoryName(RepositoryNameT&& value) {
64 m_repositoryNameHasBeenSet = true;
65 m_repositoryName = std::forward<RepositoryNameT>(value);
66 }
67 template <typename RepositoryNameT = Aws::String>
69 SetRepositoryName(std::forward<RepositoryNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Vector<ImageIdentifier>& GetImageIds() const { return m_imageIds; }
79 inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
80 template <typename ImageIdsT = Aws::Vector<ImageIdentifier>>
81 void SetImageIds(ImageIdsT&& value) {
82 m_imageIdsHasBeenSet = true;
83 m_imageIds = std::forward<ImageIdsT>(value);
84 }
85 template <typename ImageIdsT = Aws::Vector<ImageIdentifier>>
87 SetImageIds(std::forward<ImageIdsT>(value));
88 return *this;
89 }
90 template <typename ImageIdsT = ImageIdentifier>
92 m_imageIdsHasBeenSet = true;
93 m_imageIds.emplace_back(std::forward<ImageIdsT>(value));
94 return *this;
95 }
97
99
108 inline const Aws::String& GetNextToken() const { return m_nextToken; }
109 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
110 template <typename NextTokenT = Aws::String>
111 void SetNextToken(NextTokenT&& value) {
112 m_nextTokenHasBeenSet = true;
113 m_nextToken = std::forward<NextTokenT>(value);
114 }
115 template <typename NextTokenT = Aws::String>
117 SetNextToken(std::forward<NextTokenT>(value));
118 return *this;
119 }
121
123
137 inline int GetMaxResults() const { return m_maxResults; }
138 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
139 inline void SetMaxResults(int value) {
140 m_maxResultsHasBeenSet = true;
141 m_maxResults = value;
142 }
144 SetMaxResults(value);
145 return *this;
146 }
148
150
154 inline const LifecyclePolicyPreviewFilter& GetFilter() const { return m_filter; }
155 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
156 template <typename FilterT = LifecyclePolicyPreviewFilter>
157 void SetFilter(FilterT&& value) {
158 m_filterHasBeenSet = true;
159 m_filter = std::forward<FilterT>(value);
160 }
161 template <typename FilterT = LifecyclePolicyPreviewFilter>
163 SetFilter(std::forward<FilterT>(value));
164 return *this;
165 }
167 private:
168 Aws::String m_registryId;
169
170 Aws::String m_repositoryName;
171
173
174 Aws::String m_nextToken;
175
176 int m_maxResults{0};
177
178 LifecyclePolicyPreviewFilter m_filter;
179 bool m_registryIdHasBeenSet = false;
180 bool m_repositoryNameHasBeenSet = false;
181 bool m_imageIdsHasBeenSet = false;
182 bool m_nextTokenHasBeenSet = false;
183 bool m_maxResultsHasBeenSet = false;
184 bool m_filterHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace ECR
189} // namespace Aws
GetLifecyclePolicyPreviewRequest & WithRegistryId(RegistryIdT &&value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetLifecyclePolicyPreviewRequest & WithRepositoryName(RepositoryNameT &&value)
GetLifecyclePolicyPreviewRequest & AddImageIds(ImageIdsT &&value)
GetLifecyclePolicyPreviewRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< ImageIdentifier > & GetImageIds() const
GetLifecyclePolicyPreviewRequest & WithImageIds(ImageIdsT &&value)
GetLifecyclePolicyPreviewRequest & WithMaxResults(int value)
AWS_ECR_API Aws::String SerializePayload() const override
GetLifecyclePolicyPreviewRequest & WithFilter(FilterT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector