AWS SDK for C++  0.12.9
AWS SDK for C++
UploadLayerPartRequest.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>
17 #include <aws/ecr/ECRRequest.h>
19 #include <aws/core/utils/Array.h>
20 
21 namespace Aws
22 {
23 namespace ECR
24 {
25 namespace Model
26 {
27 
31  {
32  public:
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
42  inline const Aws::String& GetRegistryId() const{ return m_registryId; }
43 
48  inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
49 
54  inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
55 
60  inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
61 
66  inline UploadLayerPartRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
67 
72  inline UploadLayerPartRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(value); return *this;}
73 
78  inline UploadLayerPartRequest& 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 UploadLayerPartRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;}
104 
108  inline UploadLayerPartRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(value); return *this;}
109 
113  inline UploadLayerPartRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
114 
119  inline const Aws::String& GetUploadId() const{ return m_uploadId; }
120 
125  inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
126 
131  inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
132 
137  inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
138 
143  inline UploadLayerPartRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
144 
149  inline UploadLayerPartRequest& WithUploadId(Aws::String&& value) { SetUploadId(value); return *this;}
150 
155  inline UploadLayerPartRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
156 
160  inline long long GetPartFirstByte() const{ return m_partFirstByte; }
161 
165  inline void SetPartFirstByte(long long value) { m_partFirstByteHasBeenSet = true; m_partFirstByte = value; }
166 
170  inline UploadLayerPartRequest& WithPartFirstByte(long long value) { SetPartFirstByte(value); return *this;}
171 
175  inline long long GetPartLastByte() const{ return m_partLastByte; }
176 
180  inline void SetPartLastByte(long long value) { m_partLastByteHasBeenSet = true; m_partLastByte = value; }
181 
185  inline UploadLayerPartRequest& WithPartLastByte(long long value) { SetPartLastByte(value); return *this;}
186 
190  inline const Aws::Utils::ByteBuffer& GetLayerPartBlob() const{ return m_layerPartBlob; }
191 
195  inline void SetLayerPartBlob(const Aws::Utils::ByteBuffer& value) { m_layerPartBlobHasBeenSet = true; m_layerPartBlob = value; }
196 
200  inline void SetLayerPartBlob(Aws::Utils::ByteBuffer&& value) { m_layerPartBlobHasBeenSet = true; m_layerPartBlob = value; }
201 
205  inline UploadLayerPartRequest& WithLayerPartBlob(const Aws::Utils::ByteBuffer& value) { SetLayerPartBlob(value); return *this;}
206 
210  inline UploadLayerPartRequest& WithLayerPartBlob(Aws::Utils::ByteBuffer&& value) { SetLayerPartBlob(value); return *this;}
211 
212  private:
213  Aws::String m_registryId;
214  bool m_registryIdHasBeenSet;
215  Aws::String m_repositoryName;
216  bool m_repositoryNameHasBeenSet;
217  Aws::String m_uploadId;
218  bool m_uploadIdHasBeenSet;
219  long long m_partFirstByte;
220  bool m_partFirstByteHasBeenSet;
221  long long m_partLastByte;
222  bool m_partLastByteHasBeenSet;
223  Aws::Utils::ByteBuffer m_layerPartBlob;
224  bool m_layerPartBlobHasBeenSet;
225  };
226 
227 } // namespace Model
228 } // namespace ECR
229 } // namespace Aws
const Aws::String & GetRepositoryName() const
UploadLayerPartRequest & WithRepositoryName(Aws::String &&value)
UploadLayerPartRequest & WithPartFirstByte(long long value)
UploadLayerPartRequest & WithUploadId(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:34
void SetUploadId(const Aws::String &value)
const Aws::String & GetRegistryId() const
void SetRepositoryName(const Aws::String &value)
UploadLayerPartRequest & WithRegistryId(const char *value)
void SetRegistryId(const Aws::String &value)
UploadLayerPartRequest & WithUploadId(const char *value)
UploadLayerPartRequest & WithPartLastByte(long long value)
UploadLayerPartRequest & WithLayerPartBlob(Aws::Utils::ByteBuffer &&value)
UploadLayerPartRequest & WithRegistryId(const Aws::String &value)
UploadLayerPartRequest & WithRegistryId(Aws::String &&value)
UploadLayerPartRequest & WithRepositoryName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UploadLayerPartRequest & WithRepositoryName(const Aws::String &value)
const Aws::Utils::ByteBuffer & GetLayerPartBlob() const
void SetLayerPartBlob(const Aws::Utils::ByteBuffer &value)
void SetLayerPartBlob(Aws::Utils::ByteBuffer &&value)
UploadLayerPartRequest & WithLayerPartBlob(const Aws::Utils::ByteBuffer &value)
UploadLayerPartRequest & WithUploadId(Aws::String &&value)
JSON (JavaScript Object Notation).