AWS SDK for C++  0.14.3
AWS SDK for C++
ListImagesRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ecr/ECR_EXPORTS.h>
17 #include <aws/ecr/ECRRequest.h>
20 
21 namespace Aws
22 {
23 namespace ECR
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
43  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
44 
50  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
51 
57  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
58 
64  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
65 
71  inline ListImagesRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
72 
78  inline ListImagesRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(value); return *this;}
79 
85  inline ListImagesRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
86 
90  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
91 
95  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
96 
100  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
101 
105  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
106 
110  inline ListImagesRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
111 
115  inline ListImagesRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
116 
120  inline ListImagesRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
121 
132  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
133 
144  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
145 
156  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
157 
168  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
169 
180  inline ListImagesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
181 
192  inline ListImagesRequest& WithNextToken(Aws::String&& value) { SetNextToken(value); return *this;}
193 
204  inline ListImagesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
205 
216  inline int GetMaxResults() const{ return m_maxResults; }
217 
228  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
229 
240  inline ListImagesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
241 
242 
243  inline const ListImagesFilter& GetFilter() const{ return m_filter; }
244 
245 
246  inline void SetFilter(const ListImagesFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
247 
248 
249  inline void SetFilter(ListImagesFilter&& value) { m_filterHasBeenSet = true; m_filter = value; }
250 
251 
252  inline ListImagesRequest& WithFilter(const ListImagesFilter& value) { SetFilter(value); return *this;}
253 
254 
255  inline ListImagesRequest& WithFilter(ListImagesFilter&& value) { SetFilter(value); return *this;}
256 
257  private:
258  Aws::String m_registryId;
259  bool m_registryIdHasBeenSet;
260  Aws::String m_repositoryName;
261  bool m_repositoryNameHasBeenSet;
262  Aws::String m_nextToken;
263  bool m_nextTokenHasBeenSet;
264  int m_maxResults;
265  bool m_maxResultsHasBeenSet;
266  ListImagesFilter m_filter;
267  bool m_filterHasBeenSet;
268  };
269 
270 } // namespace Model
271 } // namespace ECR
272 } // namespace Aws
ListImagesRequest & WithNextToken(Aws::String &&value)
const ListImagesFilter & GetFilter() const
void SetNextToken(Aws::String &&value)
ListImagesRequest & WithRepositoryName(const char *value)
void SetRepositoryName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
void SetRegistryId(const char *value)
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:37
void SetRegistryId(Aws::String &&value)
const Aws::String & GetRepositoryName() const
ListImagesRequest & WithFilter(ListImagesFilter &&value)
ListImagesRequest & WithFilter(const ListImagesFilter &value)
ListImagesRequest & WithRegistryId(const char *value)
ListImagesRequest & WithRegistryId(const Aws::String &value)
void SetNextToken(const Aws::String &value)
const Aws::String & GetRegistryId() const
void SetRepositoryName(const char *value)
void SetRegistryId(const Aws::String &value)
ListImagesRequest & WithRepositoryName(Aws::String &&value)
void SetFilter(const ListImagesFilter &value)
void SetNextToken(const char *value)
ListImagesRequest & WithRepositoryName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListImagesRequest & WithMaxResults(int value)
void SetFilter(ListImagesFilter &&value)
ListImagesRequest & WithRegistryId(Aws::String &&value)
ListImagesRequest & WithNextToken(const char *value)
void SetRepositoryName(Aws::String &&value)
ListImagesRequest & WithNextToken(const Aws::String &value)
JSON (JavaScript Object Notation).
const Aws::String & GetNextToken() const