AWS SDK for C++  0.12.9
AWS SDK for C++
Image.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>
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace ECR
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Image();
41  Image(const Aws::Utils::Json::JsonValue& jsonValue);
42  Image& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
49 
53  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
54 
58  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
59 
63  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
64 
68  inline Image& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
69 
73  inline Image& WithRegistryId(Aws::String&& value) { SetRegistryId(value); return *this;}
74 
78  inline Image& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
79 
83  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
84 
88  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
89 
93  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
94 
98  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
99 
103  inline Image& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
104 
108  inline Image& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
109 
113  inline Image& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
114 
119  inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
120 
125  inline void SetImageId(const ImageIdentifier& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
126 
131  inline void SetImageId(ImageIdentifier&& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
132 
137  inline Image& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
138 
143  inline Image& WithImageId(ImageIdentifier&& value) { SetImageId(value); return *this;}
144 
148  inline const Aws::String& GetImageManifest() const{ return m_imageManifest; }
149 
153  inline void SetImageManifest(const Aws::String& value) { m_imageManifestHasBeenSet = true; m_imageManifest = value; }
154 
158  inline void SetImageManifest(Aws::String&& value) { m_imageManifestHasBeenSet = true; m_imageManifest = value; }
159 
163  inline void SetImageManifest(const char* value) { m_imageManifestHasBeenSet = true; m_imageManifest.assign(value); }
164 
168  inline Image& WithImageManifest(const Aws::String& value) { SetImageManifest(value); return *this;}
169 
173  inline Image& WithImageManifest(Aws::String&& value) { SetImageManifest(value); return *this;}
174 
178  inline Image& WithImageManifest(const char* value) { SetImageManifest(value); return *this;}
179 
180  private:
181  Aws::String m_registryId;
182  bool m_registryIdHasBeenSet;
183  Aws::String m_repositoryName;
184  bool m_repositoryNameHasBeenSet;
185  ImageIdentifier m_imageId;
186  bool m_imageIdHasBeenSet;
187  Aws::String m_imageManifest;
188  bool m_imageManifestHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace ECR
193 } // namespace Aws
Image & WithRegistryId(Aws::String &&value)
Definition: Image.h:73
Image & WithRepositoryName(const Aws::String &value)
Definition: Image.h:103
Image & WithImageId(const ImageIdentifier &value)
Definition: Image.h:137
void SetRepositoryName(Aws::String &&value)
Definition: Image.h:93
Image & WithImageManifest(const Aws::String &value)
Definition: Image.h:168
void SetRepositoryName(const Aws::String &value)
Definition: Image.h:88
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:34
void SetRegistryId(const Aws::String &value)
Definition: Image.h:53
void SetImageManifest(const char *value)
Definition: Image.h:163
Image & WithRepositoryName(Aws::String &&value)
Definition: Image.h:108
void SetRegistryId(Aws::String &&value)
Definition: Image.h:58
Image & WithImageId(ImageIdentifier &&value)
Definition: Image.h:143
const ImageIdentifier & GetImageId() const
Definition: Image.h:119
const Aws::String & GetRepositoryName() const
Definition: Image.h:83
const Aws::String & GetImageManifest() const
Definition: Image.h:148
void SetRegistryId(const char *value)
Definition: Image.h:63
Image & WithRegistryId(const Aws::String &value)
Definition: Image.h:68
void SetImageManifest(Aws::String &&value)
Definition: Image.h:158
Image & WithRepositoryName(const char *value)
Definition: Image.h:113
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Image & WithRegistryId(const char *value)
Definition: Image.h:78
void SetImageManifest(const Aws::String &value)
Definition: Image.h:153
void SetImageId(ImageIdentifier &&value)
Definition: Image.h:131
const Aws::String & GetRegistryId() const
Definition: Image.h:48
void SetImageId(const ImageIdentifier &value)
Definition: Image.h:125
void SetRepositoryName(const char *value)
Definition: Image.h:98
Image & WithImageManifest(Aws::String &&value)
Definition: Image.h:173
JSON (JavaScript Object Notation).
Image & WithImageManifest(const char *value)
Definition: Image.h:178