AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Image.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecr/model/ImageIdentifier.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECR
23{
24namespace Model
25{
26
32 class Image
33 {
34 public:
35 AWS_ECR_API Image();
36 AWS_ECR_API Image(Aws::Utils::Json::JsonView jsonValue);
39
40
42
46 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
47 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
48 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
49 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
50 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
51 inline Image& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
52 inline Image& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
53 inline Image& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
55
57
60 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
61 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
62 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
63 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
64 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
65 inline Image& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
66 inline Image& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
67 inline Image& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
69
71
75 inline const ImageIdentifier& GetImageId() const{ return m_imageId; }
76 inline bool ImageIdHasBeenSet() const { return m_imageIdHasBeenSet; }
77 inline void SetImageId(const ImageIdentifier& value) { m_imageIdHasBeenSet = true; m_imageId = value; }
78 inline void SetImageId(ImageIdentifier&& value) { m_imageIdHasBeenSet = true; m_imageId = std::move(value); }
79 inline Image& WithImageId(const ImageIdentifier& value) { SetImageId(value); return *this;}
80 inline Image& WithImageId(ImageIdentifier&& value) { SetImageId(std::move(value)); return *this;}
82
84
87 inline const Aws::String& GetImageManifest() const{ return m_imageManifest; }
88 inline bool ImageManifestHasBeenSet() const { return m_imageManifestHasBeenSet; }
89 inline void SetImageManifest(const Aws::String& value) { m_imageManifestHasBeenSet = true; m_imageManifest = value; }
90 inline void SetImageManifest(Aws::String&& value) { m_imageManifestHasBeenSet = true; m_imageManifest = std::move(value); }
91 inline void SetImageManifest(const char* value) { m_imageManifestHasBeenSet = true; m_imageManifest.assign(value); }
92 inline Image& WithImageManifest(const Aws::String& value) { SetImageManifest(value); return *this;}
93 inline Image& WithImageManifest(Aws::String&& value) { SetImageManifest(std::move(value)); return *this;}
94 inline Image& WithImageManifest(const char* value) { SetImageManifest(value); return *this;}
96
98
101 inline const Aws::String& GetImageManifestMediaType() const{ return m_imageManifestMediaType; }
102 inline bool ImageManifestMediaTypeHasBeenSet() const { return m_imageManifestMediaTypeHasBeenSet; }
103 inline void SetImageManifestMediaType(const Aws::String& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = value; }
104 inline void SetImageManifestMediaType(Aws::String&& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = std::move(value); }
105 inline void SetImageManifestMediaType(const char* value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType.assign(value); }
106 inline Image& WithImageManifestMediaType(const Aws::String& value) { SetImageManifestMediaType(value); return *this;}
107 inline Image& WithImageManifestMediaType(Aws::String&& value) { SetImageManifestMediaType(std::move(value)); return *this;}
108 inline Image& WithImageManifestMediaType(const char* value) { SetImageManifestMediaType(value); return *this;}
110 private:
111
112 Aws::String m_registryId;
113 bool m_registryIdHasBeenSet = false;
114
115 Aws::String m_repositoryName;
116 bool m_repositoryNameHasBeenSet = false;
117
118 ImageIdentifier m_imageId;
119 bool m_imageIdHasBeenSet = false;
120
121 Aws::String m_imageManifest;
122 bool m_imageManifestHasBeenSet = false;
123
124 Aws::String m_imageManifestMediaType;
125 bool m_imageManifestMediaTypeHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace ECR
130} // namespace Aws
AWS_ECR_API Image & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetRepositoryName() const
Definition Image.h:60
Image & WithImageId(const ImageIdentifier &value)
Definition Image.h:79
Image & WithImageManifest(const char *value)
Definition Image.h:94
const Aws::String & GetImageManifest() const
Definition Image.h:87
const ImageIdentifier & GetImageId() const
Definition Image.h:75
Image & WithRepositoryName(const Aws::String &value)
Definition Image.h:65
void SetImageManifest(Aws::String &&value)
Definition Image.h:90
const Aws::String & GetImageManifestMediaType() const
Definition Image.h:101
Image & WithImageId(ImageIdentifier &&value)
Definition Image.h:80
void SetImageManifest(const char *value)
Definition Image.h:91
void SetImageManifestMediaType(const Aws::String &value)
Definition Image.h:103
Image & WithRepositoryName(Aws::String &&value)
Definition Image.h:66
Image & WithRegistryId(Aws::String &&value)
Definition Image.h:52
Image & WithRegistryId(const char *value)
Definition Image.h:53
void SetRepositoryName(const Aws::String &value)
Definition Image.h:62
Image & WithImageManifestMediaType(const Aws::String &value)
Definition Image.h:106
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
bool ImageManifestHasBeenSet() const
Definition Image.h:88
Image & WithImageManifestMediaType(const char *value)
Definition Image.h:108
void SetRegistryId(const Aws::String &value)
Definition Image.h:48
void SetRepositoryName(const char *value)
Definition Image.h:64
void SetImageManifest(const Aws::String &value)
Definition Image.h:89
bool ImageManifestMediaTypeHasBeenSet() const
Definition Image.h:102
void SetImageManifestMediaType(const char *value)
Definition Image.h:105
Image & WithRepositoryName(const char *value)
Definition Image.h:67
void SetImageId(ImageIdentifier &&value)
Definition Image.h:78
AWS_ECR_API Image(Aws::Utils::Json::JsonView jsonValue)
Image & WithRegistryId(const Aws::String &value)
Definition Image.h:51
Image & WithImageManifestMediaType(Aws::String &&value)
Definition Image.h:107
bool RegistryIdHasBeenSet() const
Definition Image.h:47
void SetImageManifestMediaType(Aws::String &&value)
Definition Image.h:104
void SetRegistryId(Aws::String &&value)
Definition Image.h:49
bool ImageIdHasBeenSet() const
Definition Image.h:76
Image & WithImageManifest(const Aws::String &value)
Definition Image.h:92
void SetImageId(const ImageIdentifier &value)
Definition Image.h:77
Image & WithImageManifest(Aws::String &&value)
Definition Image.h:93
void SetRegistryId(const char *value)
Definition Image.h:50
const Aws::String & GetRegistryId() const
Definition Image.h:46
void SetRepositoryName(Aws::String &&value)
Definition Image.h:63
bool RepositoryNameHasBeenSet() const
Definition Image.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue