AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PutImageRequest.h
1
6#pragma once
7#include <aws/ecr-public/ECRPublic_EXPORTS.h>
8#include <aws/ecr-public/ECRPublicRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace ECRPublic
15{
16namespace Model
17{
18
22 {
23 public:
24 AWS_ECRPUBLIC_API PutImageRequest();
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_ECRPUBLIC_API Aws::String SerializePayload() const override;
33
35
36
38
43 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
44 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
45 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
46 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
47 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
48 inline PutImageRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
49 inline PutImageRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
50 inline PutImageRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
52
54
57 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
58 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
59 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
60 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
61 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
62 inline PutImageRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
63 inline PutImageRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
64 inline PutImageRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
66
68
71 inline const Aws::String& GetImageManifest() const{ return m_imageManifest; }
72 inline bool ImageManifestHasBeenSet() const { return m_imageManifestHasBeenSet; }
73 inline void SetImageManifest(const Aws::String& value) { m_imageManifestHasBeenSet = true; m_imageManifest = value; }
74 inline void SetImageManifest(Aws::String&& value) { m_imageManifestHasBeenSet = true; m_imageManifest = std::move(value); }
75 inline void SetImageManifest(const char* value) { m_imageManifestHasBeenSet = true; m_imageManifest.assign(value); }
76 inline PutImageRequest& WithImageManifest(const Aws::String& value) { SetImageManifest(value); return *this;}
77 inline PutImageRequest& WithImageManifest(Aws::String&& value) { SetImageManifest(std::move(value)); return *this;}
78 inline PutImageRequest& WithImageManifest(const char* value) { SetImageManifest(value); return *this;}
80
82
87 inline const Aws::String& GetImageManifestMediaType() const{ return m_imageManifestMediaType; }
88 inline bool ImageManifestMediaTypeHasBeenSet() const { return m_imageManifestMediaTypeHasBeenSet; }
89 inline void SetImageManifestMediaType(const Aws::String& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = value; }
90 inline void SetImageManifestMediaType(Aws::String&& value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType = std::move(value); }
91 inline void SetImageManifestMediaType(const char* value) { m_imageManifestMediaTypeHasBeenSet = true; m_imageManifestMediaType.assign(value); }
93 inline PutImageRequest& WithImageManifestMediaType(Aws::String&& value) { SetImageManifestMediaType(std::move(value)); return *this;}
94 inline PutImageRequest& WithImageManifestMediaType(const char* value) { SetImageManifestMediaType(value); return *this;}
96
98
103 inline const Aws::String& GetImageTag() const{ return m_imageTag; }
104 inline bool ImageTagHasBeenSet() const { return m_imageTagHasBeenSet; }
105 inline void SetImageTag(const Aws::String& value) { m_imageTagHasBeenSet = true; m_imageTag = value; }
106 inline void SetImageTag(Aws::String&& value) { m_imageTagHasBeenSet = true; m_imageTag = std::move(value); }
107 inline void SetImageTag(const char* value) { m_imageTagHasBeenSet = true; m_imageTag.assign(value); }
108 inline PutImageRequest& WithImageTag(const Aws::String& value) { SetImageTag(value); return *this;}
109 inline PutImageRequest& WithImageTag(Aws::String&& value) { SetImageTag(std::move(value)); return *this;}
110 inline PutImageRequest& WithImageTag(const char* value) { SetImageTag(value); return *this;}
112
114
117 inline const Aws::String& GetImageDigest() const{ return m_imageDigest; }
118 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
119 inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; }
120 inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); }
121 inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); }
122 inline PutImageRequest& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;}
123 inline PutImageRequest& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;}
124 inline PutImageRequest& WithImageDigest(const char* value) { SetImageDigest(value); return *this;}
126 private:
127
128 Aws::String m_registryId;
129 bool m_registryIdHasBeenSet = false;
130
131 Aws::String m_repositoryName;
132 bool m_repositoryNameHasBeenSet = false;
133
134 Aws::String m_imageManifest;
135 bool m_imageManifestHasBeenSet = false;
136
137 Aws::String m_imageManifestMediaType;
138 bool m_imageManifestMediaTypeHasBeenSet = false;
139
140 Aws::String m_imageTag;
141 bool m_imageTagHasBeenSet = false;
142
143 Aws::String m_imageDigest;
144 bool m_imageDigestHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace ECRPublic
149} // namespace Aws
AWS_ECRPUBLIC_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutImageRequest & WithImageTag(Aws::String &&value)
void SetImageManifestMediaType(const char *value)
PutImageRequest & WithImageManifest(const char *value)
void SetImageManifest(const Aws::String &value)
void SetImageManifestMediaType(const Aws::String &value)
PutImageRequest & WithImageManifestMediaType(Aws::String &&value)
PutImageRequest & WithImageDigest(const char *value)
void SetImageTag(const Aws::String &value)
void SetRepositoryName(const char *value)
const Aws::String & GetImageManifest() const
const Aws::String & GetRepositoryName() const
PutImageRequest & WithRegistryId(Aws::String &&value)
PutImageRequest & WithRepositoryName(Aws::String &&value)
void SetImageManifestMediaType(Aws::String &&value)
PutImageRequest & WithImageManifestMediaType(const Aws::String &value)
void SetRegistryId(Aws::String &&value)
PutImageRequest & WithImageTag(const Aws::String &value)
void SetImageDigest(const Aws::String &value)
PutImageRequest & WithRepositoryName(const Aws::String &value)
void SetImageManifest(Aws::String &&value)
const Aws::String & GetImageManifestMediaType() const
PutImageRequest & WithRegistryId(const Aws::String &value)
PutImageRequest & WithImageManifest(Aws::String &&value)
PutImageRequest & WithImageDigest(Aws::String &&value)
PutImageRequest & WithRegistryId(const char *value)
PutImageRequest & WithImageManifest(const Aws::String &value)
PutImageRequest & WithRepositoryName(const char *value)
void SetImageManifest(const char *value)
PutImageRequest & WithImageManifestMediaType(const char *value)
void SetRepositoryName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
AWS_ECRPUBLIC_API Aws::String SerializePayload() const override
const Aws::String & GetImageTag() const
void SetImageDigest(Aws::String &&value)
const Aws::String & GetImageDigest() const
PutImageRequest & WithImageDigest(const Aws::String &value)
void SetImageTag(Aws::String &&value)
const Aws::String & GetRegistryId() const
void SetRepositoryName(Aws::String &&value)
PutImageRequest & WithImageTag(const char *value)
void SetRegistryId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String