AWS SDK for C++  1.9.66
AWS SDK for C++
BatchGetImageRequest.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>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECR
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "BatchGetImage"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
44 
49  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
50 
55  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
56 
61  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
62 
67  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
68 
73  inline BatchGetImageRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
74 
79  inline BatchGetImageRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
80 
85  inline BatchGetImageRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
86 
87 
91  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
92 
96  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
97 
101  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
102 
106  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
107 
111  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
112 
116  inline BatchGetImageRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
117 
121  inline BatchGetImageRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
122 
126  inline BatchGetImageRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
127 
128 
134  inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
135 
141  inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
142 
148  inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
149 
155  inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
156 
162  inline BatchGetImageRequest& WithImageIds(const Aws::Vector<ImageIdentifier>& value) { SetImageIds(value); return *this;}
163 
169  inline BatchGetImageRequest& WithImageIds(Aws::Vector<ImageIdentifier>&& value) { SetImageIds(std::move(value)); return *this;}
170 
176  inline BatchGetImageRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
177 
183  inline BatchGetImageRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
184 
185 
192  inline const Aws::Vector<Aws::String>& GetAcceptedMediaTypes() const{ return m_acceptedMediaTypes; }
193 
200  inline bool AcceptedMediaTypesHasBeenSet() const { return m_acceptedMediaTypesHasBeenSet; }
201 
208  inline void SetAcceptedMediaTypes(const Aws::Vector<Aws::String>& value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes = value; }
209 
216  inline void SetAcceptedMediaTypes(Aws::Vector<Aws::String>&& value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes = std::move(value); }
217 
224  inline BatchGetImageRequest& WithAcceptedMediaTypes(const Aws::Vector<Aws::String>& value) { SetAcceptedMediaTypes(value); return *this;}
225 
232  inline BatchGetImageRequest& WithAcceptedMediaTypes(Aws::Vector<Aws::String>&& value) { SetAcceptedMediaTypes(std::move(value)); return *this;}
233 
240  inline BatchGetImageRequest& AddAcceptedMediaTypes(const Aws::String& value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes.push_back(value); return *this; }
241 
248  inline BatchGetImageRequest& AddAcceptedMediaTypes(Aws::String&& value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes.push_back(std::move(value)); return *this; }
249 
256  inline BatchGetImageRequest& AddAcceptedMediaTypes(const char* value) { m_acceptedMediaTypesHasBeenSet = true; m_acceptedMediaTypes.push_back(value); return *this; }
257 
258  private:
259 
260  Aws::String m_registryId;
261  bool m_registryIdHasBeenSet;
262 
263  Aws::String m_repositoryName;
264  bool m_repositoryNameHasBeenSet;
265 
266  Aws::Vector<ImageIdentifier> m_imageIds;
267  bool m_imageIdsHasBeenSet;
268 
269  Aws::Vector<Aws::String> m_acceptedMediaTypes;
270  bool m_acceptedMediaTypesHasBeenSet;
271  };
272 
273 } // namespace Model
274 } // namespace ECR
275 } // namespace Aws
Aws::ECR::Model::BatchGetImageRequest::AddAcceptedMediaTypes
BatchGetImageRequest & AddAcceptedMediaTypes(Aws::String &&value)
Definition: BatchGetImageRequest.h:248
Aws::ECR::Model::BatchGetImageRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: BatchGetImageRequest.h:101
Aws::ECR::Model::BatchGetImageRequest::WithRepositoryName
BatchGetImageRequest & WithRepositoryName(const Aws::String &value)
Definition: BatchGetImageRequest.h:116
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::BatchGetImageRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: BatchGetImageRequest.h:67
ImageIdentifier.h
Aws::ECR::Model::BatchGetImageRequest::WithAcceptedMediaTypes
BatchGetImageRequest & WithAcceptedMediaTypes(const Aws::Vector< Aws::String > &value)
Definition: BatchGetImageRequest.h:224
Aws::ECR::Model::BatchGetImageRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: BatchGetImageRequest.h:55
Aws::ECR::Model::BatchGetImageRequest::AddAcceptedMediaTypes
BatchGetImageRequest & AddAcceptedMediaTypes(const char *value)
Definition: BatchGetImageRequest.h:256
Aws::ECR::Model::BatchGetImageRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECR::Model::BatchGetImageRequest::SetImageIds
void SetImageIds(Aws::Vector< ImageIdentifier > &&value)
Definition: BatchGetImageRequest.h:155
Aws::ECR::Model::BatchGetImageRequest::GetAcceptedMediaTypes
const Aws::Vector< Aws::String > & GetAcceptedMediaTypes() const
Definition: BatchGetImageRequest.h:192
Aws::ECR::Model::BatchGetImageRequest::ImageIdsHasBeenSet
bool ImageIdsHasBeenSet() const
Definition: BatchGetImageRequest.h:141
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECR::Model::BatchGetImageRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: BatchGetImageRequest.h:43
Aws::ECR::Model::BatchGetImageRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: BatchGetImageRequest.h:49
Aws::ECR::Model::BatchGetImageRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: BatchGetImageRequest.h:61
Aws::ECR::Model::BatchGetImageRequest::WithRegistryId
BatchGetImageRequest & WithRegistryId(const Aws::String &value)
Definition: BatchGetImageRequest.h:73
AWSVector.h
Aws::ECR::Model::BatchGetImageRequest::AddImageIds
BatchGetImageRequest & AddImageIds(ImageIdentifier &&value)
Definition: BatchGetImageRequest.h:183
Aws::ECR::Model::BatchGetImageRequest::WithRegistryId
BatchGetImageRequest & WithRegistryId(const char *value)
Definition: BatchGetImageRequest.h:85
Aws::ECR::Model::BatchGetImageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::BatchGetImageRequest::AcceptedMediaTypesHasBeenSet
bool AcceptedMediaTypesHasBeenSet() const
Definition: BatchGetImageRequest.h:200
Aws::ECR::Model::BatchGetImageRequest::SetAcceptedMediaTypes
void SetAcceptedMediaTypes(Aws::Vector< Aws::String > &&value)
Definition: BatchGetImageRequest.h:216
Aws::ECR::Model::BatchGetImageRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: BatchGetImageRequest.h:111
Aws::ECR::Model::BatchGetImageRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: BatchGetImageRequest.h:91
Aws::ECR::Model::BatchGetImageRequest::AddImageIds
BatchGetImageRequest & AddImageIds(const ImageIdentifier &value)
Definition: BatchGetImageRequest.h:176
ECR_EXPORTS.h
Aws::ECR::Model::BatchGetImageRequest::WithImageIds
BatchGetImageRequest & WithImageIds(Aws::Vector< ImageIdentifier > &&value)
Definition: BatchGetImageRequest.h:169
Aws::ECR::Model::BatchGetImageRequest::WithRepositoryName
BatchGetImageRequest & WithRepositoryName(Aws::String &&value)
Definition: BatchGetImageRequest.h:121
Aws::ECR::Model::BatchGetImageRequest::WithRegistryId
BatchGetImageRequest & WithRegistryId(Aws::String &&value)
Definition: BatchGetImageRequest.h:79
Aws::ECR::Model::BatchGetImageRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: BatchGetImageRequest.h:96
AWSString.h
Aws::ECR::Model::BatchGetImageRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: BatchGetImageRequest.h:106
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::BatchGetImageRequest::WithAcceptedMediaTypes
BatchGetImageRequest & WithAcceptedMediaTypes(Aws::Vector< Aws::String > &&value)
Definition: BatchGetImageRequest.h:232
ECRRequest.h
Aws::ECR::Model::BatchGetImageRequest::SetAcceptedMediaTypes
void SetAcceptedMediaTypes(const Aws::Vector< Aws::String > &value)
Definition: BatchGetImageRequest.h:208
Aws::ECR::Model::BatchGetImageRequest::SetImageIds
void SetImageIds(const Aws::Vector< ImageIdentifier > &value)
Definition: BatchGetImageRequest.h:148
Aws::ECR::Model::BatchGetImageRequest::WithRepositoryName
BatchGetImageRequest & WithRepositoryName(const char *value)
Definition: BatchGetImageRequest.h:126
Aws::ECR::Model::ImageIdentifier
Definition: ImageIdentifier.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::BatchGetImageRequest::WithImageIds
BatchGetImageRequest & WithImageIds(const Aws::Vector< ImageIdentifier > &value)
Definition: BatchGetImageRequest.h:162
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::BatchGetImageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: BatchGetImageRequest.h:32
Aws::ECR::Model::BatchGetImageRequest::BatchGetImageRequest
BatchGetImageRequest()
Aws::ECR::Model::BatchGetImageRequest::GetImageIds
const Aws::Vector< ImageIdentifier > & GetImageIds() const
Definition: BatchGetImageRequest.h:134
Aws::ECR::Model::BatchGetImageRequest
Definition: BatchGetImageRequest.h:24
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::BatchGetImageRequest::AddAcceptedMediaTypes
BatchGetImageRequest & AddAcceptedMediaTypes(const Aws::String &value)
Definition: BatchGetImageRequest.h:240