AWS SDK for C++  0.12.9
AWS SDK for C++
BatchGetImageRequest.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>
21 
22 namespace Aws
23 {
24 namespace ECR
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
43  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
44 
49  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
50 
55  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
56 
61  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
62 
67  inline BatchGetImageRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
68 
73  inline BatchGetImageRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(value); return *this;}
74 
79  inline BatchGetImageRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
80 
84  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
85 
89  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
90 
94  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
95 
99  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
100 
104  inline BatchGetImageRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
105 
109  inline BatchGetImageRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
110 
114  inline BatchGetImageRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
115 
121  inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
122 
128  inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
129 
135  inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
136 
142  inline BatchGetImageRequest& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
143 
149  inline BatchGetImageRequest& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(value); return *this;}
150 
156  inline BatchGetImageRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
157 
163  inline BatchGetImageRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
164 
165  private:
166  Aws::String m_registryId;
167  bool m_registryIdHasBeenSet;
168  Aws::String m_repositoryName;
169  bool m_repositoryNameHasBeenSet;
170  Aws::Vector<ImageIdentifier> m_imageIds;
171  bool m_imageIdsHasBeenSet;
172  };
173 
174 } // namespace Model
175 } // namespace ECR
176 } // namespace Aws
BatchGetImageRequest & WithImageIds(const Aws::Vector< ImageIdentifier > &value)
BatchGetImageRequest & AddImageIds(ImageIdentifier &&value)
const Aws::String & GetRepositoryName() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
BatchGetImageRequest & WithRepositoryName(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
BatchGetImageRequest & WithRegistryId(Aws::String &&value)
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:34
void SetImageIds(const Aws::Vector< ImageIdentifier > &value)
BatchGetImageRequest & WithRepositoryName(const char *value)
BatchGetImageRequest & WithRepositoryName(const Aws::String &value)
void SetImageIds(Aws::Vector< ImageIdentifier > &&value)
void SetRepositoryName(const Aws::String &value)
BatchGetImageRequest & WithRegistryId(const Aws::String &value)
const Aws::String & GetRegistryId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
BatchGetImageRequest & AddImageIds(const ImageIdentifier &value)
void SetRepositoryName(Aws::String &&value)
BatchGetImageRequest & WithImageIds(Aws::Vector< ImageIdentifier > &&value)
const Aws::Vector< ImageIdentifier > & GetImageIds() const
void SetRegistryId(const Aws::String &value)
BatchGetImageRequest & WithRegistryId(const char *value)
JSON (JavaScript Object Notation).