AWS SDK for C++  1.9.161
AWS SDK for C++
UploadLayerPartRequest.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 <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace ECR
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "UploadLayerPart"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
43  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
44 
50  inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
51 
57  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
58 
64  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
65 
71  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
72 
78  inline UploadLayerPartRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
79 
85  inline UploadLayerPartRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
86 
92  inline UploadLayerPartRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
93 
94 
98  inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
99 
103  inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
104 
108  inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
109 
113  inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
114 
118  inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
119 
123  inline UploadLayerPartRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
124 
128  inline UploadLayerPartRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
129 
133  inline UploadLayerPartRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
134 
135 
140  inline const Aws::String& GetUploadId() const{ return m_uploadId; }
141 
146  inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
147 
152  inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
153 
158  inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
159 
164  inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
165 
170  inline UploadLayerPartRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
171 
176  inline UploadLayerPartRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
177 
182  inline UploadLayerPartRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
183 
184 
189  inline long long GetPartFirstByte() const{ return m_partFirstByte; }
190 
195  inline bool PartFirstByteHasBeenSet() const { return m_partFirstByteHasBeenSet; }
196 
201  inline void SetPartFirstByte(long long value) { m_partFirstByteHasBeenSet = true; m_partFirstByte = value; }
202 
207  inline UploadLayerPartRequest& WithPartFirstByte(long long value) { SetPartFirstByte(value); return *this;}
208 
209 
214  inline long long GetPartLastByte() const{ return m_partLastByte; }
215 
220  inline bool PartLastByteHasBeenSet() const { return m_partLastByteHasBeenSet; }
221 
226  inline void SetPartLastByte(long long value) { m_partLastByteHasBeenSet = true; m_partLastByte = value; }
227 
232  inline UploadLayerPartRequest& WithPartLastByte(long long value) { SetPartLastByte(value); return *this;}
233 
234 
238  inline const Aws::Utils::ByteBuffer& GetLayerPartBlob() const{ return m_layerPartBlob; }
239 
243  inline bool LayerPartBlobHasBeenSet() const { return m_layerPartBlobHasBeenSet; }
244 
248  inline void SetLayerPartBlob(const Aws::Utils::ByteBuffer& value) { m_layerPartBlobHasBeenSet = true; m_layerPartBlob = value; }
249 
253  inline void SetLayerPartBlob(Aws::Utils::ByteBuffer&& value) { m_layerPartBlobHasBeenSet = true; m_layerPartBlob = std::move(value); }
254 
258  inline UploadLayerPartRequest& WithLayerPartBlob(const Aws::Utils::ByteBuffer& value) { SetLayerPartBlob(value); return *this;}
259 
263  inline UploadLayerPartRequest& WithLayerPartBlob(Aws::Utils::ByteBuffer&& value) { SetLayerPartBlob(std::move(value)); return *this;}
264 
265  private:
266 
267  Aws::String m_registryId;
268  bool m_registryIdHasBeenSet;
269 
270  Aws::String m_repositoryName;
271  bool m_repositoryNameHasBeenSet;
272 
273  Aws::String m_uploadId;
274  bool m_uploadIdHasBeenSet;
275 
276  long long m_partFirstByte;
277  bool m_partFirstByteHasBeenSet;
278 
279  long long m_partLastByte;
280  bool m_partLastByteHasBeenSet;
281 
282  Aws::Utils::ByteBuffer m_layerPartBlob;
283  bool m_layerPartBlobHasBeenSet;
284  };
285 
286 } // namespace Model
287 } // namespace ECR
288 } // namespace Aws
Aws::ECR::Model::UploadLayerPartRequest::RepositoryNameHasBeenSet
bool RepositoryNameHasBeenSet() const
Definition: UploadLayerPartRequest.h:103
Aws::ECR::Model::UploadLayerPartRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UploadLayerPartRequest.h:31
Aws::ECR::Model::UploadLayerPartRequest::GetPartLastByte
long long GetPartLastByte() const
Definition: UploadLayerPartRequest.h:214
Aws::ECR::Model::UploadLayerPartRequest::GetRegistryId
const Aws::String & GetRegistryId() const
Definition: UploadLayerPartRequest.h:43
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECR::Model::UploadLayerPartRequest
Definition: UploadLayerPartRequest.h:23
Aws::ECR::Model::UploadLayerPartRequest::WithPartLastByte
UploadLayerPartRequest & WithPartLastByte(long long value)
Definition: UploadLayerPartRequest.h:232
Aws::ECR::Model::UploadLayerPartRequest::SetUploadId
void SetUploadId(const Aws::String &value)
Definition: UploadLayerPartRequest.h:152
Aws::ECR::Model::UploadLayerPartRequest::UploadLayerPartRequest
UploadLayerPartRequest()
Aws::ECR::Model::UploadLayerPartRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECR::Model::UploadLayerPartRequest::WithPartFirstByte
UploadLayerPartRequest & WithPartFirstByte(long long value)
Definition: UploadLayerPartRequest.h:207
Aws::ECR::Model::UploadLayerPartRequest::WithUploadId
UploadLayerPartRequest & WithUploadId(Aws::String &&value)
Definition: UploadLayerPartRequest.h:176
Aws::ECR::Model::UploadLayerPartRequest::GetUploadId
const Aws::String & GetUploadId() const
Definition: UploadLayerPartRequest.h:140
Aws::ECR::Model::UploadLayerPartRequest::SetPartFirstByte
void SetPartFirstByte(long long value)
Definition: UploadLayerPartRequest.h:201
Aws::ECR::Model::UploadLayerPartRequest::SetUploadId
void SetUploadId(const char *value)
Definition: UploadLayerPartRequest.h:164
Aws::ECR::Model::UploadLayerPartRequest::WithRepositoryName
UploadLayerPartRequest & WithRepositoryName(Aws::String &&value)
Definition: UploadLayerPartRequest.h:128
Aws::ECR::Model::UploadLayerPartRequest::PartFirstByteHasBeenSet
bool PartFirstByteHasBeenSet() const
Definition: UploadLayerPartRequest.h:195
Aws::ECR::Model::UploadLayerPartRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::UploadLayerPartRequest::WithRegistryId
UploadLayerPartRequest & WithRegistryId(Aws::String &&value)
Definition: UploadLayerPartRequest.h:85
Aws::ECR::Model::UploadLayerPartRequest::UploadIdHasBeenSet
bool UploadIdHasBeenSet() const
Definition: UploadLayerPartRequest.h:146
Aws::ECR::Model::UploadLayerPartRequest::WithRegistryId
UploadLayerPartRequest & WithRegistryId(const char *value)
Definition: UploadLayerPartRequest.h:92
Aws::ECR::Model::UploadLayerPartRequest::WithRepositoryName
UploadLayerPartRequest & WithRepositoryName(const Aws::String &value)
Definition: UploadLayerPartRequest.h:123
Aws::ECR::Model::UploadLayerPartRequest::SetRepositoryName
void SetRepositoryName(const Aws::String &value)
Definition: UploadLayerPartRequest.h:108
ECR_EXPORTS.h
Aws::ECR::Model::UploadLayerPartRequest::LayerPartBlobHasBeenSet
bool LayerPartBlobHasBeenSet() const
Definition: UploadLayerPartRequest.h:243
Aws::ECR::Model::UploadLayerPartRequest::PartLastByteHasBeenSet
bool PartLastByteHasBeenSet() const
Definition: UploadLayerPartRequest.h:220
Aws::ECR::Model::UploadLayerPartRequest::SetPartLastByte
void SetPartLastByte(long long value)
Definition: UploadLayerPartRequest.h:226
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::ECR::Model::UploadLayerPartRequest::SetRepositoryName
void SetRepositoryName(Aws::String &&value)
Definition: UploadLayerPartRequest.h:113
Aws::ECR::Model::UploadLayerPartRequest::RegistryIdHasBeenSet
bool RegistryIdHasBeenSet() const
Definition: UploadLayerPartRequest.h:50
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
ECRRequest.h
Aws::ECR::Model::UploadLayerPartRequest::GetRepositoryName
const Aws::String & GetRepositoryName() const
Definition: UploadLayerPartRequest.h:98
Aws::ECR::Model::UploadLayerPartRequest::GetLayerPartBlob
const Aws::Utils::ByteBuffer & GetLayerPartBlob() const
Definition: UploadLayerPartRequest.h:238
Aws::ECR::Model::UploadLayerPartRequest::WithLayerPartBlob
UploadLayerPartRequest & WithLayerPartBlob(const Aws::Utils::ByteBuffer &value)
Definition: UploadLayerPartRequest.h:258
Aws::ECR::Model::UploadLayerPartRequest::GetPartFirstByte
long long GetPartFirstByte() const
Definition: UploadLayerPartRequest.h:189
Aws::ECR::Model::UploadLayerPartRequest::SetRepositoryName
void SetRepositoryName(const char *value)
Definition: UploadLayerPartRequest.h:118
Aws::ECR::Model::UploadLayerPartRequest::SetRegistryId
void SetRegistryId(const char *value)
Definition: UploadLayerPartRequest.h:71
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::UploadLayerPartRequest::SetRegistryId
void SetRegistryId(const Aws::String &value)
Definition: UploadLayerPartRequest.h:57
Aws::ECR::Model::UploadLayerPartRequest::WithUploadId
UploadLayerPartRequest & WithUploadId(const char *value)
Definition: UploadLayerPartRequest.h:182
Aws::ECR::Model::UploadLayerPartRequest::SetLayerPartBlob
void SetLayerPartBlob(const Aws::Utils::ByteBuffer &value)
Definition: UploadLayerPartRequest.h:248
Array.h
Aws::ECR::Model::UploadLayerPartRequest::SetLayerPartBlob
void SetLayerPartBlob(Aws::Utils::ByteBuffer &&value)
Definition: UploadLayerPartRequest.h:253
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::UploadLayerPartRequest::WithRegistryId
UploadLayerPartRequest & WithRegistryId(const Aws::String &value)
Definition: UploadLayerPartRequest.h:78
Aws::ECR::Model::UploadLayerPartRequest::WithUploadId
UploadLayerPartRequest & WithUploadId(const Aws::String &value)
Definition: UploadLayerPartRequest.h:170
Aws::ECR::Model::UploadLayerPartRequest::WithLayerPartBlob
UploadLayerPartRequest & WithLayerPartBlob(Aws::Utils::ByteBuffer &&value)
Definition: UploadLayerPartRequest.h:263
Aws::ECR::Model::UploadLayerPartRequest::SetRegistryId
void SetRegistryId(Aws::String &&value)
Definition: UploadLayerPartRequest.h:64
Aws::ECR::Model::UploadLayerPartRequest::SetUploadId
void SetUploadId(Aws::String &&value)
Definition: UploadLayerPartRequest.h:158
Aws::ECR::ECRRequest
Definition: ECRRequest.h:17
Aws::ECR::Model::UploadLayerPartRequest::WithRepositoryName
UploadLayerPartRequest & WithRepositoryName(const char *value)
Definition: UploadLayerPartRequest.h:133