AWS SDK for C++  1.9.66
AWS SDK for C++
GetLifecyclePolicyPreviewRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
8 #include <aws/ecr/ECRRequest.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace ECR
18 {
19 namespace Model
20 {
21 
25  {
26  public:
28 
29  // Service request name is the Operation name which will send this request out,
30  // each operation should has unique request name, so that we can get operation's name from this request.
31  // Note: this is not true for response, multiple operations may have the same response name,
32  // so we can not get operation's name from response.
33  inline virtual const char* GetServiceRequestName() const override { return "GetLifecyclePolicyPreview"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
45 
50  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
51 
56  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
57 
62  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
63 
68  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
69 
74  inline GetLifecyclePolicyPreviewRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
75 
80  inline GetLifecyclePolicyPreviewRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
81 
86  inline GetLifecyclePolicyPreviewRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
87 
88 
92  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
93 
97  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
98 
102  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
103 
107  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
108 
112  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
113 
117  inline GetLifecyclePolicyPreviewRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
118 
122  inline GetLifecyclePolicyPreviewRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
123 
127  inline GetLifecyclePolicyPreviewRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
128 
129 
133  inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
134 
138  inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
139 
143  inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
144 
148  inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
149 
153  inline GetLifecyclePolicyPreviewRequest& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
154 
158  inline GetLifecyclePolicyPreviewRequest& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
159 
163  inline GetLifecyclePolicyPreviewRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
164 
168  inline GetLifecyclePolicyPreviewRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
169 
170 
180  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
181 
191  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
192 
202  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
203 
213  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
214 
224  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
225 
235  inline GetLifecyclePolicyPreviewRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
236 
246  inline GetLifecyclePolicyPreviewRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
247 
257  inline GetLifecyclePolicyPreviewRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
258 
259 
274  inline int GetMaxResults() const{ return m_maxResults; }
275 
290  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
291 
306  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
307 
322  inline GetLifecyclePolicyPreviewRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
323 
324 
329  inline const LifecyclePolicyPreviewFilter& GetFilter() const{ return m_filter; }
330 
335  inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
336 
341  inline void SetFilter(const LifecyclePolicyPreviewFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
342 
347  inline void SetFilter(LifecyclePolicyPreviewFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
348 
353  inline GetLifecyclePolicyPreviewRequest& WithFilter(const LifecyclePolicyPreviewFilter& value) { SetFilter(value); return *this;}
354 
359  inline GetLifecyclePolicyPreviewRequest& WithFilter(LifecyclePolicyPreviewFilter&& value) { SetFilter(std::move(value)); return *this;}
360 
361  private:
362 
363  Aws::String m_registryId;
364  bool m_registryIdHasBeenSet;
365 
366  Aws::String m_repositoryName;
367  bool m_repositoryNameHasBeenSet;
368 
369  Aws::Vector<ImageIdentifier> m_imageIds;
370  bool m_imageIdsHasBeenSet;
371 
372  Aws::String m_nextToken;
373  bool m_nextTokenHasBeenSet;
374 
375  int m_maxResults;
376  bool m_maxResultsHasBeenSet;
377 
379  bool m_filterHasBeenSet;
380  };
381 
382 } // namespace Model
383 } // namespace ECR
384 } // namespace Aws
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithImageIds
GetLifecyclePolicyPreviewRequest & WithImageIds(const Aws::Vector< ImageIdentifier > &value)
Definition: GetLifecyclePolicyPreviewRequest.h:153
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithRepositoryName
GetLifecyclePolicyPreviewRequest & WithRepositoryName(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewRequest.h:117
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: GetLifecyclePolicyPreviewRequest.h:97
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
ImageIdentifier.h
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewRequest.h:102
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: GetLifecyclePolicyPreviewRequest.h:180
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewRequest.h:107
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithRepositoryName
GetLifecyclePolicyPreviewRequest & WithRepositoryName(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewRequest.h:122
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::GetLifecyclePolicyPreviewRequest
GetLifecyclePolicyPreviewRequest()
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithRepositoryName
GetLifecyclePolicyPreviewRequest & WithRepositoryName(const char *value)
Definition: GetLifecyclePolicyPreviewRequest.h:127
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: GetLifecyclePolicyPreviewRequest.h:191
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithRegistryId
GetLifecyclePolicyPreviewRequest & WithRegistryId(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewRequest.h:80
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithMaxResults
GetLifecyclePolicyPreviewRequest & WithMaxResults(int value)
Definition: GetLifecyclePolicyPreviewRequest.h:322
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithNextToken
GetLifecyclePolicyPreviewRequest & WithNextToken(const char *value)
Definition: GetLifecyclePolicyPreviewRequest.h:257
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewRequest.h:202
AWSVector.h
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::GetMaxResults
int GetMaxResults() const
Definition: GetLifecyclePolicyPreviewRequest.h:274
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetNextToken
void SetNextToken(const char *value)
Definition: GetLifecyclePolicyPreviewRequest.h:224
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: GetLifecyclePolicyPreviewRequest.h:44
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: GetLifecyclePolicyPreviewRequest.h:112
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetImageIds
void SetImageIds(const Aws::Vector< ImageIdentifier > &value)
Definition: GetLifecyclePolicyPreviewRequest.h:143
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithRegistryId
GetLifecyclePolicyPreviewRequest & WithRegistryId(const char *value)
Definition: GetLifecyclePolicyPreviewRequest.h:86
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithFilter
GetLifecyclePolicyPreviewRequest & WithFilter(const LifecyclePolicyPreviewFilter &value)
Definition: GetLifecyclePolicyPreviewRequest.h:353
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetImageIds
void SetImageIds(Aws::Vector< ImageIdentifier > &&value)
Definition: GetLifecyclePolicyPreviewRequest.h:148
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithRegistryId
GetLifecyclePolicyPreviewRequest & WithRegistryId(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewRequest.h:74
ECR_EXPORTS.h
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: GetLifecyclePolicyPreviewRequest.h:290
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetMaxResults
void SetMaxResults(int value)
Definition: GetLifecyclePolicyPreviewRequest.h:306
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: GetLifecyclePolicyPreviewRequest.h:68
AWSString.h
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetFilter
void SetFilter(const LifecyclePolicyPreviewFilter &value)
Definition: GetLifecyclePolicyPreviewRequest.h:341
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest
Definition: GetLifecyclePolicyPreviewRequest.h:25
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithNextToken
GetLifecyclePolicyPreviewRequest & WithNextToken(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewRequest.h:246
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::FilterHasBeenSet
bool FilterHasBeenSet() const
Definition: GetLifecyclePolicyPreviewRequest.h:335
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetFilter
void SetFilter(LifecyclePolicyPreviewFilter &&value)
Definition: GetLifecyclePolicyPreviewRequest.h:347
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewRequest.h:213
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: GetLifecyclePolicyPreviewRequest.h:50
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewRequest.h:56
Aws::ECR::Model::ImageIdentifier
Definition: ImageIdentifier.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::ImageIdsHasBeenSet
bool ImageIdsHasBeenSet() const
Definition: GetLifecyclePolicyPreviewRequest.h:138
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::AddImageIds
GetLifecyclePolicyPreviewRequest & AddImageIds(ImageIdentifier &&value)
Definition: GetLifecyclePolicyPreviewRequest.h:168
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetLifecyclePolicyPreviewRequest.h:33
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithNextToken
GetLifecyclePolicyPreviewRequest & WithNextToken(const Aws::String &value)
Definition: GetLifecyclePolicyPreviewRequest.h:235
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithFilter
GetLifecyclePolicyPreviewRequest & WithFilter(LifecyclePolicyPreviewFilter &&value)
Definition: GetLifecyclePolicyPreviewRequest.h:359
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::AddImageIds
GetLifecyclePolicyPreviewRequest & AddImageIds(const ImageIdentifier &value)
Definition: GetLifecyclePolicyPreviewRequest.h:163
Aws::ECR::Model::LifecyclePolicyPreviewFilter
Definition: LifecyclePolicyPreviewFilter.h:32
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: GetLifecyclePolicyPreviewRequest.h:92
LifecyclePolicyPreviewFilter.h
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: GetLifecyclePolicyPreviewRequest.h:62
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::GetImageIds
const Aws::Vector< ImageIdentifier > & GetImageIds() const
Definition: GetLifecyclePolicyPreviewRequest.h:133
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::GetFilter
const LifecyclePolicyPreviewFilter & GetFilter() const
Definition: GetLifecyclePolicyPreviewRequest.h:329
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::GetLifecyclePolicyPreviewRequest::WithImageIds
GetLifecyclePolicyPreviewRequest & WithImageIds(Aws::Vector< ImageIdentifier > &&value)
Definition: GetLifecyclePolicyPreviewRequest.h:158