AWS SDK for C++  1.9.102
AWS SDK for C++
Image.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace ECR
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  Image();
39 
40 
45  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
46 
51  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
52 
57  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
58 
63  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
64 
69  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
70 
75  inline Image& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
76 
81  inline Image& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
82 
87  inline Image& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
88 
89 
93  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
94 
98  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
99 
103  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
104 
108  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
109 
113  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
114 
118  inline Image& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
119 
123  inline Image& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
124 
128  inline Image& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
129 
130 
135  inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
136 
141  inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
142 
147  inline void SetImageId(const ImageIdentifier& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
148 
153  inline void SetImageId(ImageIdentifier&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
154 
159  inline Image& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
160 
165  inline Image& WithImageId(ImageIdentifier&& value) { SetImageId(std::move(value)); return *this;}
166 
167 
171  inline const Aws::String& GetImageManifest() const{ return m_imageManifest; }
172 
176  inline bool ImageManifestHasBeenSet() const { return m_imageManifestHasBeenSet; }
177 
181  inline void SetImageManifest(const Aws::String& value) { m_imageManifestHasBeenSet = true; m_imageManifest = value; }
182 
186  inline void SetImageManifest(Aws::String&& value) { m_imageManifestHasBeenSet = true; m_imageManifest = std::move(value); }
187 
191  inline void SetImageManifest(const char* value) { m_imageManifestHasBeenSet = true; m_imageManifest.assign(value); }
192 
196  inline Image& WithImageManifest(const Aws::String& value) { SetImageManifest(value); return *this;}
197 
201  inline Image& WithImageManifest(Aws::String&& value) { SetImageManifest(std::move(value)); return *this;}
202 
206  inline Image& WithImageManifest(const char* value) { SetImageManifest(value); return *this;}
207 
208 
212  inline const Aws::String& GetImageManifestMediaType() const{ return m_imageManifestMediaType; }
213 
217  inline bool ImageManifestMediaTypeHasBeenSet() const { return m_imageManifestMediaTypeHasBeenSet; }
218 
222  inline void SetImageManifestMediaType(const Aws::String& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = value; }
223 
227  inline void SetImageManifestMediaType(Aws::String&& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = std::move(value); }
228 
232  inline void SetImageManifestMediaType(const char* value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType.assign(value); }
233 
237  inline Image& WithImageManifestMediaType(const Aws::String& value) { SetImageManifestMediaType(value); return *this;}
238 
242  inline Image& WithImageManifestMediaType(Aws::String&& value) { SetImageManifestMediaType(std::move(value)); return *this;}
243 
247  inline Image& WithImageManifestMediaType(const char* value) { SetImageManifestMediaType(value); return *this;}
248 
249  private:
250 
251  Aws::String m_registryId;
252  bool m_registryIdHasBeenSet;
253 
254  Aws::String m_repositoryName;
255  bool m_repositoryNameHasBeenSet;
256 
257  ImageIdentifier m_imageId;
258  bool m_imageIdHasBeenSet;
259 
260  Aws::String m_imageManifest;
261  bool m_imageManifestHasBeenSet;
262 
263  Aws::String m_imageManifestMediaType;
264  bool m_imageManifestMediaTypeHasBeenSet;
265  };
266 
267 } // namespace Model
268 } // namespace ECR
269 } // namespace Aws
Aws::ECR::Model::Image::operator=
Image & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::Image::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: Image.h:108
Aws::ECR::Model::Image::GetImageManifestMediaType
const Aws::String & GetImageManifestMediaType() const
Definition: Image.h:212
Aws::ECR::Model::Image::SetImageManifestMediaType
void SetImageManifestMediaType(const Aws::String &value)
Definition: Image.h:222
Aws::ECR::Model::Image::SetImageManifestMediaType
void SetImageManifestMediaType(const char *value)
Definition: Image.h:232
ImageIdentifier.h
Aws::ECR::Model::Image::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: Image.h:51
Aws::ECR::Model::Image::WithImageManifest
Image & WithImageManifest(const Aws::String &value)
Definition: Image.h:196
Aws::ECR::Model::Image::WithRepositoryName
Image & WithRepositoryName(const Aws::String &value)
Definition: Image.h:118
Aws::ECR::Model::Image::GetImageId
const ImageIdentifier & GetImageId() const
Definition: Image.h:135
Aws::ECR::Model::Image::Image
Image(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::Image::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: Image.h:103
Aws::ECR::Model::Image::SetImageManifest
void SetImageManifest(const char *value)
Definition: Image.h:191
Aws::ECR::Model::Image::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: Image.h:45
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::Image::SetImageManifestMediaType
void SetImageManifestMediaType(Aws::String &&value)
Definition: Image.h:227
Aws::ECR::Model::Image::ImageIdHasBeenSet
bool ImageIdHasBeenSet() const
Definition: Image.h:141
Aws::ECR::Model::Image::Image
Image()
Aws::ECR::Model::Image::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: Image.h:63
Aws::ECR::Model::Image::WithImageManifestMediaType
Image & WithImageManifestMediaType(const char *value)
Definition: Image.h:247
ECR_EXPORTS.h
Aws::ECR::Model::Image::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECR::Model::Image::WithImageManifestMediaType
Image & WithImageManifestMediaType(const Aws::String &value)
Definition: Image.h:237
Aws::ECR::Model::Image::WithRepositoryName
Image & WithRepositoryName(const char *value)
Definition: Image.h:128
Aws::ECR::Model::Image::WithRegistryId
Image & WithRegistryId(const Aws::String &value)
Definition: Image.h:75
Aws::ECR::Model::Image::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: Image.h:57
Aws::ECR::Model::Image::WithRepositoryName
Image & WithRepositoryName(Aws::String &&value)
Definition: Image.h:123
Aws::ECR::Model::Image::WithImageId
Image & WithImageId(ImageIdentifier &&value)
Definition: Image.h:165
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECR::Model::Image::SetRegistryId
void SetRegistryId(const char *value)
Definition: Image.h:69
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::Image::SetImageManifest
void SetImageManifest(const Aws::String &value)
Definition: Image.h:181
Aws::ECR::Model::Image::SetImageManifest
void SetImageManifest(Aws::String &&value)
Definition: Image.h:186
Aws::ECR::Model::Image::WithRegistryId
Image & WithRegistryId(const char *value)
Definition: Image.h:87
Aws::ECR::Model::Image::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: Image.h:98
Aws::ECR::Model::Image::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: Image.h:93
Aws::ECR::Model::Image::WithImageManifestMediaType
Image & WithImageManifestMediaType(Aws::String &&value)
Definition: Image.h:242
Aws::ECR::Model::Image::GetImageManifest
const Aws::String & GetImageManifest() const
Definition: Image.h:171
Aws::ECR::Model::ImageIdentifier
Definition: ImageIdentifier.h:33
Aws::ECR::Model::Image::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: Image.h:113
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::Image::WithImageManifest
Image & WithImageManifest(Aws::String &&value)
Definition: Image.h:201
Aws::ECR::Model::Image::SetImageId
void SetImageId(ImageIdentifier &&value)
Definition: Image.h:153
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::Image::WithImageManifest
Image & WithImageManifest(const char *value)
Definition: Image.h:206
Aws::ECR::Model::Image::WithImageId
Image & WithImageId(const ImageIdentifier &value)
Definition: Image.h:159
Aws::ECR::Model::Image
Definition: Image.h:33
Aws::ECR::Model::Image::ImageManifestHasBeenSet
bool ImageManifestHasBeenSet() const
Definition: Image.h:176
Aws::ECR::Model::Image::WithRegistryId
Image & WithRegistryId(Aws::String &&value)
Definition: Image.h:81
Aws::ECR::Model::Image::SetImageId
void SetImageId(const ImageIdentifier &value)
Definition: Image.h:147
Aws::ECR::Model::Image::ImageManifestMediaTypeHasBeenSet
bool ImageManifestMediaTypeHasBeenSet() const
Definition: Image.h:217