AWS SDK for C++  1.9.66
AWS SDK for C++
PutImageRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ECR
15 {
16 namespace Model
17 {
18 
22  {
23  public:
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 "PutImage"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
42  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
43 
49  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
50 
56  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
57 
63  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
64 
70  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
71 
77  inline PutImageRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
78 
84  inline PutImageRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
85 
91  inline PutImageRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
92 
93 
97  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
98 
102  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
103 
107  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
108 
112  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
113 
117  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
118 
122  inline PutImageRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
123 
127  inline PutImageRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
128 
132  inline PutImageRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
133 
134 
138  inline const Aws::String& GetImageManifest() const{ return m_imageManifest; }
139 
143  inline bool ImageManifestHasBeenSet() const { return m_imageManifestHasBeenSet; }
144 
148  inline void SetImageManifest(const Aws::String& value) { m_imageManifestHasBeenSet = true; m_imageManifest = value; }
149 
153  inline void SetImageManifest(Aws::String&& value) { m_imageManifestHasBeenSet = true; m_imageManifest = std::move(value); }
154 
158  inline void SetImageManifest(const char* value) { m_imageManifestHasBeenSet = true; m_imageManifest.assign(value); }
159 
163  inline PutImageRequest& WithImageManifest(const Aws::String& value) { SetImageManifest(value); return *this;}
164 
168  inline PutImageRequest& WithImageManifest(Aws::String&& value) { SetImageManifest(std::move(value)); return *this;}
169 
173  inline PutImageRequest& WithImageManifest(const char* value) { SetImageManifest(value); return *this;}
174 
175 
181  inline const Aws::String& GetImageManifestMediaType() const{ return m_imageManifestMediaType; }
182 
188  inline bool ImageManifestMediaTypeHasBeenSet() const { return m_imageManifestMediaTypeHasBeenSet; }
189 
195  inline void SetImageManifestMediaType(const Aws::String& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = value; }
196 
202  inline void SetImageManifestMediaType(Aws::String&& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = std::move(value); }
203 
209  inline void SetImageManifestMediaType(const char* value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType.assign(value); }
210 
216  inline PutImageRequest& WithImageManifestMediaType(const Aws::String& value) { SetImageManifestMediaType(value); return *this;}
217 
223  inline PutImageRequest& WithImageManifestMediaType(Aws::String&& value) { SetImageManifestMediaType(std::move(value)); return *this;}
224 
230  inline PutImageRequest& WithImageManifestMediaType(const char* value) { SetImageManifestMediaType(value); return *this;}
231 
232 
238  inline const Aws::String& GetImageTag() const{ return m_imageTag; }
239 
245  inline bool ImageTagHasBeenSet() const { return m_imageTagHasBeenSet; }
246 
252  inline void SetImageTag(const Aws::String& value) { m_imageTagHasBeenSet = true; m_imageTag = value; }
253 
259  inline void SetImageTag(Aws::String&& value) { m_imageTagHasBeenSet = true; m_imageTag = std::move(value); }
260 
266  inline void SetImageTag(const char* value) { m_imageTagHasBeenSet = true; m_imageTag.assign(value); }
267 
273  inline PutImageRequest& WithImageTag(const Aws::String& value) { SetImageTag(value); return *this;}
274 
280  inline PutImageRequest& WithImageTag(Aws::String&& value) { SetImageTag(std::move(value)); return *this;}
281 
287  inline PutImageRequest& WithImageTag(const char* value) { SetImageTag(value); return *this;}
288 
289 
293  inline const Aws::String& GetImageDigest() const{ return m_imageDigest; }
294 
298  inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
299 
303  inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; }
304 
308  inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); }
309 
313  inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); }
314 
318  inline PutImageRequest& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;}
319 
323  inline PutImageRequest& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;}
324 
328  inline PutImageRequest& WithImageDigest(const char* value) { SetImageDigest(value); return *this;}
329 
330  private:
331 
332  Aws::String m_registryId;
333  bool m_registryIdHasBeenSet;
334 
335  Aws::String m_repositoryName;
336  bool m_repositoryNameHasBeenSet;
337 
338  Aws::String m_imageManifest;
339  bool m_imageManifestHasBeenSet;
340 
341  Aws::String m_imageManifestMediaType;
342  bool m_imageManifestMediaTypeHasBeenSet;
343 
344  Aws::String m_imageTag;
345  bool m_imageTagHasBeenSet;
346 
347  Aws::String m_imageDigest;
348  bool m_imageDigestHasBeenSet;
349  };
350 
351 } // namespace Model
352 } // namespace ECR
353 } // namespace Aws
Aws::ECR::Model::PutImageRequest::SetImageTag
void SetImageTag(const char *value)
Definition: PutImageRequest.h:266
Aws::ECR::Model::PutImageRequest::WithImageDigest
PutImageRequest & WithImageDigest(Aws::String &&value)
Definition: PutImageRequest.h:323
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::PutImageRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: PutImageRequest.h:97
Aws::ECR::Model::PutImageRequest::PutImageRequest
PutImageRequest()
Aws::ECR::Model::PutImageRequest::GetImageManifest
const Aws::String & GetImageManifest() const
Definition: PutImageRequest.h:138
Aws::ECR::Model::PutImageRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: PutImageRequest.h:42
Aws::ECR::Model::PutImageRequest::GetImageDigest
const Aws::String & GetImageDigest() const
Definition: PutImageRequest.h:293
Aws::ECR::Model::PutImageRequest::ImageManifestMediaTypeHasBeenSet
bool ImageManifestMediaTypeHasBeenSet() const
Definition: PutImageRequest.h:188
Aws::ECR::Model::PutImageRequest::WithImageTag
PutImageRequest & WithImageTag(Aws::String &&value)
Definition: PutImageRequest.h:280
Aws::ECR::Model::PutImageRequest::SetImageManifest
void SetImageManifest(const Aws::String &value)
Definition: PutImageRequest.h:148
Aws::ECR::Model::PutImageRequest::WithImageManifestMediaType
PutImageRequest & WithImageManifestMediaType(const Aws::String &value)
Definition: PutImageRequest.h:216
Aws::ECR::Model::PutImageRequest::SetImageDigest
void SetImageDigest(const char *value)
Definition: PutImageRequest.h:313
Aws::ECR::Model::PutImageRequest::ImageManifestHasBeenSet
bool ImageManifestHasBeenSet() const
Definition: PutImageRequest.h:143
Aws::ECR::Model::PutImageRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: PutImageRequest.h:56
Aws::ECR::Model::PutImageRequest::SetImageDigest
void SetImageDigest(const Aws::String &value)
Definition: PutImageRequest.h:303
Aws::ECR::Model::PutImageRequest::SetImageManifestMediaType
void SetImageManifestMediaType(const char *value)
Definition: PutImageRequest.h:209
Aws::ECR::Model::PutImageRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: PutImageRequest.h:107
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::PutImageRequest::SetImageDigest
void SetImageDigest(Aws::String &&value)
Definition: PutImageRequest.h:308
Aws::ECR::Model::PutImageRequest::WithRegistryId
PutImageRequest & WithRegistryId(const Aws::String &value)
Definition: PutImageRequest.h:77
Aws::ECR::Model::PutImageRequest::SetImageTag
void SetImageTag(Aws::String &&value)
Definition: PutImageRequest.h:259
Aws::ECR::Model::PutImageRequest::GetImageTag
const Aws::String & GetImageTag() const
Definition: PutImageRequest.h:238
Aws::ECR::Model::PutImageRequest::WithImageManifest
PutImageRequest & WithImageManifest(const Aws::String &value)
Definition: PutImageRequest.h:163
Aws::ECR::Model::PutImageRequest::SetImageTag
void SetImageTag(const Aws::String &value)
Definition: PutImageRequest.h:252
ECR_EXPORTS.h
Aws::ECR::Model::PutImageRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECR::Model::PutImageRequest::SetImageManifestMediaType
void SetImageManifestMediaType(const Aws::String &value)
Definition: PutImageRequest.h:195
Aws::ECR::Model::PutImageRequest::WithImageManifest
PutImageRequest & WithImageManifest(const char *value)
Definition: PutImageRequest.h:173
Aws::ECR::Model::PutImageRequest::SetImageManifest
void SetImageManifest(const char *value)
Definition: PutImageRequest.h:158
Aws::ECR::Model::PutImageRequest::WithRepositoryName
PutImageRequest & WithRepositoryName(Aws::String &&value)
Definition: PutImageRequest.h:127
Aws::ECR::Model::PutImageRequest::GetImageManifestMediaType
const Aws::String & GetImageManifestMediaType() const
Definition: PutImageRequest.h:181
Aws::ECR::Model::PutImageRequest::WithImageTag
PutImageRequest & WithImageTag(const char *value)
Definition: PutImageRequest.h:287
Aws::ECR::Model::PutImageRequest::WithRegistryId
PutImageRequest & WithRegistryId(const char *value)
Definition: PutImageRequest.h:91
AWSString.h
Aws::ECR::Model::PutImageRequest::WithImageManifestMediaType
PutImageRequest & WithImageManifestMediaType(const char *value)
Definition: PutImageRequest.h:230
Aws::ECR::Model::PutImageRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: PutImageRequest.h:30
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::PutImageRequest::SetImageManifest
void SetImageManifest(Aws::String &&value)
Definition: PutImageRequest.h:153
ECRRequest.h
Aws::ECR::Model::PutImageRequest::WithRepositoryName
PutImageRequest & WithRepositoryName(const char *value)
Definition: PutImageRequest.h:132
Aws::ECR::Model::PutImageRequest::WithRegistryId
PutImageRequest & WithRegistryId(Aws::String &&value)
Definition: PutImageRequest.h:84
Aws::ECR::Model::PutImageRequest::WithImageManifest
PutImageRequest & WithImageManifest(Aws::String &&value)
Definition: PutImageRequest.h:168
Aws::ECR::Model::PutImageRequest::ImageTagHasBeenSet
bool ImageTagHasBeenSet() const
Definition: PutImageRequest.h:245
Aws::ECR::Model::PutImageRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: PutImageRequest.h:63
Aws::ECR::Model::PutImageRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECR::Model::PutImageRequest::WithImageDigest
PutImageRequest & WithImageDigest(const char *value)
Definition: PutImageRequest.h:328
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::PutImageRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: PutImageRequest.h:70
Aws::ECR::Model::PutImageRequest::WithImageManifestMediaType
PutImageRequest & WithImageManifestMediaType(Aws::String &&value)
Definition: PutImageRequest.h:223
Aws::ECR::Model::PutImageRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: PutImageRequest.h:112
Aws::ECR::Model::PutImageRequest::SetImageManifestMediaType
void SetImageManifestMediaType(Aws::String &&value)
Definition: PutImageRequest.h:202
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::PutImageRequest::ImageDigestHasBeenSet
bool ImageDigestHasBeenSet() const
Definition: PutImageRequest.h:298
Aws::ECR::Model::PutImageRequest
Definition: PutImageRequest.h:22
Aws::ECR::Model::PutImageRequest::WithImageTag
PutImageRequest & WithImageTag(const Aws::String &value)
Definition: PutImageRequest.h:273
Aws::ECR::Model::PutImageRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: PutImageRequest.h:102
Aws::ECR::Model::PutImageRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: PutImageRequest.h:49
Aws::ECR::Model::PutImageRequest::WithRepositoryName
PutImageRequest & WithRepositoryName(const Aws::String &value)
Definition: PutImageRequest.h:122
Aws::ECR::Model::PutImageRequest::WithImageDigest
PutImageRequest & WithImageDigest(const Aws::String &value)
Definition: PutImageRequest.h:318
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::PutImageRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: PutImageRequest.h:117