AWS SDK for C++  0.12.9
AWS SDK for C++
UploadPartRequest.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/s3/S3_EXPORTS.h>
17 #include <aws/s3/S3Request.h>
18 #include <aws/core/utils/Array.h>
21 
22 namespace Aws
23 {
24 namespace Http
25 {
26  class URI;
27 } //namespace Http
28 namespace S3
29 {
30 namespace Model
31 {
32 
36  {
37  public:
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
42 
46  inline const Aws::String& GetBucket() const{ return m_bucket; }
47 
51  inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
52 
56  inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = value; }
57 
61  inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
62 
66  inline UploadPartRequest& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
67 
71  inline UploadPartRequest& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
72 
76  inline UploadPartRequest& WithBucket(const char* value) { SetBucket(value); return *this;}
77 
82  inline long long GetContentLength() const{ return m_contentLength; }
83 
88  inline void SetContentLength(long long value) { m_contentLengthHasBeenSet = true; m_contentLength = value; }
89 
94  inline UploadPartRequest& WithContentLength(long long value) { SetContentLength(value); return *this;}
95 
99  inline const Aws::String& GetContentMD5() const{ return m_contentMD5; }
100 
104  inline void SetContentMD5(const Aws::String& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
105 
109  inline void SetContentMD5(Aws::String&& value) { m_contentMD5HasBeenSet = true; m_contentMD5 = value; }
110 
114  inline void SetContentMD5(const char* value) { m_contentMD5HasBeenSet = true; m_contentMD5.assign(value); }
115 
119  inline UploadPartRequest& WithContentMD5(const Aws::String& value) { SetContentMD5(value); return *this;}
120 
124  inline UploadPartRequest& WithContentMD5(Aws::String&& value) { SetContentMD5(value); return *this;}
125 
129  inline UploadPartRequest& WithContentMD5(const char* value) { SetContentMD5(value); return *this;}
130 
134  inline const Aws::String& GetKey() const{ return m_key; }
135 
139  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
140 
144  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
145 
149  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
150 
154  inline UploadPartRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
155 
159  inline UploadPartRequest& WithKey(Aws::String&& value) { SetKey(value); return *this;}
160 
164  inline UploadPartRequest& WithKey(const char* value) { SetKey(value); return *this;}
165 
170  inline long GetPartNumber() const{ return m_partNumber; }
171 
176  inline void SetPartNumber(long value) { m_partNumberHasBeenSet = true; m_partNumber = value; }
177 
182  inline UploadPartRequest& WithPartNumber(long value) { SetPartNumber(value); return *this;}
183 
187  inline const Aws::String& GetUploadId() const{ return m_uploadId; }
188 
192  inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
193 
197  inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
198 
202  inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
203 
207  inline UploadPartRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
208 
212  inline UploadPartRequest& WithUploadId(Aws::String&& value) { SetUploadId(value); return *this;}
213 
217  inline UploadPartRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
218 
222  inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
223 
227  inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = value; }
228 
232  inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm = value; }
233 
237  inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithmHasBeenSet = true; m_sSECustomerAlgorithm.assign(value); }
238 
242  inline UploadPartRequest& WithSSECustomerAlgorithm(const Aws::String& value) { SetSSECustomerAlgorithm(value); return *this;}
243 
247  inline UploadPartRequest& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(value); return *this;}
248 
252  inline UploadPartRequest& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
253 
262  inline const Aws::String& GetSSECustomerKey() const{ return m_sSECustomerKey; }
263 
272  inline void SetSSECustomerKey(const Aws::String& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = value; }
273 
282  inline void SetSSECustomerKey(Aws::String&& value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey = value; }
283 
292  inline void SetSSECustomerKey(const char* value) { m_sSECustomerKeyHasBeenSet = true; m_sSECustomerKey.assign(value); }
293 
302  inline UploadPartRequest& WithSSECustomerKey(const Aws::String& value) { SetSSECustomerKey(value); return *this;}
303 
312  inline UploadPartRequest& WithSSECustomerKey(Aws::String&& value) { SetSSECustomerKey(value); return *this;}
313 
322  inline UploadPartRequest& WithSSECustomerKey(const char* value) { SetSSECustomerKey(value); return *this;}
323 
329  inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
330 
336  inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = value; }
337 
343  inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5 = value; }
344 
350  inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5HasBeenSet = true; m_sSECustomerKeyMD5.assign(value); }
351 
357  inline UploadPartRequest& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
358 
364  inline UploadPartRequest& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(value); return *this;}
365 
371  inline UploadPartRequest& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
372 
373 
374  inline const RequestPayer& GetRequestPayer() const{ return m_requestPayer; }
375 
376 
377  inline void SetRequestPayer(const RequestPayer& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
378 
379 
380  inline void SetRequestPayer(RequestPayer&& value) { m_requestPayerHasBeenSet = true; m_requestPayer = value; }
381 
382 
383  inline UploadPartRequest& WithRequestPayer(const RequestPayer& value) { SetRequestPayer(value); return *this;}
384 
385 
386  inline UploadPartRequest& WithRequestPayer(RequestPayer&& value) { SetRequestPayer(value); return *this;}
387 
388  private:
389  Aws::String m_bucket;
390  bool m_bucketHasBeenSet;
391  long long m_contentLength;
392  bool m_contentLengthHasBeenSet;
393  Aws::String m_contentMD5;
394  bool m_contentMD5HasBeenSet;
395  Aws::String m_key;
396  bool m_keyHasBeenSet;
397  long m_partNumber;
398  bool m_partNumberHasBeenSet;
399  Aws::String m_uploadId;
400  bool m_uploadIdHasBeenSet;
401  Aws::String m_sSECustomerAlgorithm;
402  bool m_sSECustomerAlgorithmHasBeenSet;
403  Aws::String m_sSECustomerKey;
404  bool m_sSECustomerKeyHasBeenSet;
405  Aws::String m_sSECustomerKeyMD5;
406  bool m_sSECustomerKeyMD5HasBeenSet;
407  RequestPayer m_requestPayer;
408  bool m_requestPayerHasBeenSet;
409  };
410 
411 } // namespace Model
412 } // namespace S3
413 } // namespace Aws
void SetContentMD5(const Aws::String &value)
UploadPartRequest & WithSSECustomerKeyMD5(const char *value)
UploadPartRequest & WithBucket(const Aws::String &value)
void SetSSECustomerKey(Aws::String &&value)
UploadPartRequest & WithUploadId(Aws::String &&value)
UploadPartRequest & WithSSECustomerKeyMD5(Aws::String &&value)
UploadPartRequest & WithSSECustomerAlgorithm(const Aws::String &value)
void SetContentMD5(const char *value)
const Aws::String & GetContentMD5() const
UploadPartRequest & WithKey(Aws::String &&value)
UploadPartRequest & WithSSECustomerKey(const Aws::String &value)
void SetUploadId(const Aws::String &value)
UploadPartRequest & WithKey(const char *value)
UploadPartRequest & WithSSECustomerKey(Aws::String &&value)
void SetRequestPayer(const RequestPayer &value)
const Aws::String & GetBucket() const
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
UploadPartRequest & WithContentMD5(const char *value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
void SetBucket(const char *value)
UploadPartRequest & WithSSECustomerKeyMD5(const Aws::String &value)
UploadPartRequest & WithSSECustomerKey(const char *value)
UploadPartRequest & WithPartNumber(long value)
void SetSSECustomerKeyMD5(Aws::String &&value)
UploadPartRequest & WithRequestPayer(RequestPayer &&value)
UploadPartRequest & WithUploadId(const char *value)
void SetRequestPayer(RequestPayer &&value)
const Aws::String & GetSSECustomerKeyMD5() const
void SetUploadId(Aws::String &&value)
UploadPartRequest & WithKey(const Aws::String &value)
const Aws::String & GetKey() const
UploadPartRequest & WithBucket(Aws::String &&value)
UploadPartRequest & WithContentLength(long long value)
UploadPartRequest & WithSSECustomerAlgorithm(Aws::String &&value)
UploadPartRequest & WithRequestPayer(const RequestPayer &value)
const Aws::String & GetSSECustomerKey() const
UploadPartRequest & WithContentMD5(const Aws::String &value)
void SetSSECustomerKey(const Aws::String &value)
const Aws::String & GetUploadId() const
void SetSSECustomerKey(const char *value)
void SetKey(Aws::String &&value)
void SetContentMD5(Aws::String &&value)
void SetBucket(const Aws::String &value)
UploadPartRequest & WithBucket(const char *value)
void SetSSECustomerAlgorithm(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UploadPartRequest & WithContentMD5(Aws::String &&value)
const RequestPayer & GetRequestPayer() const
void SetSSECustomerKeyMD5(const Aws::String &value)
UploadPartRequest & WithSSECustomerAlgorithm(const char *value)
const Aws::String & GetSSECustomerAlgorithm() const
void SetContentLength(long long value)
void SetUploadId(const char *value)
void SetSSECustomerAlgorithm(const char *value)
void SetKey(const Aws::String &value)
void SetBucket(Aws::String &&value)
JSON (JavaScript Object Notation).
void SetSSECustomerKeyMD5(const char *value)
void SetSSECustomerAlgorithm(const Aws::String &value)
UploadPartRequest & WithUploadId(const Aws::String &value)