AWS SDK for C++  0.14.3
AWS SDK for C++
CreateMultipartUploadResult.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>
21 
22 namespace Aws
23 {
24 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlDocument;
32 } // namespace Xml
33 } // namespace Utils
34 namespace S3
35 {
36 namespace Model
37 {
39  {
40  public:
44 
49  inline const Aws::Utils::DateTime& GetAbortDate() const{ return m_abortDate; }
50 
55  inline void SetAbortDate(const Aws::Utils::DateTime& value) { m_abortDate = value; }
56 
61  inline void SetAbortDate(Aws::Utils::DateTime&& value) { m_abortDate = value; }
62 
67  inline CreateMultipartUploadResult& WithAbortDate(const Aws::Utils::DateTime& value) { SetAbortDate(value); return *this;}
68 
73  inline CreateMultipartUploadResult& WithAbortDate(Aws::Utils::DateTime&& value) { SetAbortDate(value); return *this;}
74 
79  inline const Aws::String& GetAbortRuleId() const{ return m_abortRuleId; }
80 
85  inline void SetAbortRuleId(const Aws::String& value) { m_abortRuleId = value; }
86 
91  inline void SetAbortRuleId(Aws::String&& value) { m_abortRuleId = value; }
92 
97  inline void SetAbortRuleId(const char* value) { m_abortRuleId.assign(value); }
98 
103  inline CreateMultipartUploadResult& WithAbortRuleId(const Aws::String& value) { SetAbortRuleId(value); return *this;}
104 
109  inline CreateMultipartUploadResult& WithAbortRuleId(Aws::String&& value) { SetAbortRuleId(value); return *this;}
110 
115  inline CreateMultipartUploadResult& WithAbortRuleId(const char* value) { SetAbortRuleId(value); return *this;}
116 
120  inline const Aws::String& GetBucket() const{ return m_bucket; }
121 
125  inline void SetBucket(const Aws::String& value) { m_bucket = value; }
126 
130  inline void SetBucket(Aws::String&& value) { m_bucket = value; }
131 
135  inline void SetBucket(const char* value) { m_bucket.assign(value); }
136 
140  inline CreateMultipartUploadResult& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
141 
145  inline CreateMultipartUploadResult& WithBucket(Aws::String&& value) { SetBucket(value); return *this;}
146 
150  inline CreateMultipartUploadResult& WithBucket(const char* value) { SetBucket(value); return *this;}
151 
155  inline const Aws::String& GetKey() const{ return m_key; }
156 
160  inline void SetKey(const Aws::String& value) { m_key = value; }
161 
165  inline void SetKey(Aws::String&& value) { m_key = value; }
166 
170  inline void SetKey(const char* value) { m_key.assign(value); }
171 
175  inline CreateMultipartUploadResult& WithKey(const Aws::String& value) { SetKey(value); return *this;}
176 
180  inline CreateMultipartUploadResult& WithKey(Aws::String&& value) { SetKey(value); return *this;}
181 
185  inline CreateMultipartUploadResult& WithKey(const char* value) { SetKey(value); return *this;}
186 
190  inline const Aws::String& GetUploadId() const{ return m_uploadId; }
191 
195  inline void SetUploadId(const Aws::String& value) { m_uploadId = value; }
196 
200  inline void SetUploadId(Aws::String&& value) { m_uploadId = value; }
201 
205  inline void SetUploadId(const char* value) { m_uploadId.assign(value); }
206 
210  inline CreateMultipartUploadResult& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
211 
215  inline CreateMultipartUploadResult& WithUploadId(Aws::String&& value) { SetUploadId(value); return *this;}
216 
220  inline CreateMultipartUploadResult& WithUploadId(const char* value) { SetUploadId(value); return *this;}
221 
226  inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
227 
232  inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryption = value; }
233 
238  inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryption = value; }
239 
244  inline CreateMultipartUploadResult& WithServerSideEncryption(const ServerSideEncryption& value) { SetServerSideEncryption(value); return *this;}
245 
250  inline CreateMultipartUploadResult& WithServerSideEncryption(ServerSideEncryption&& value) { SetServerSideEncryption(value); return *this;}
251 
256  inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
257 
262  inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithm = value; }
263 
268  inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithm = value; }
269 
274  inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithm.assign(value); }
275 
280  inline CreateMultipartUploadResult& WithSSECustomerAlgorithm(const Aws::String& value) { SetSSECustomerAlgorithm(value); return *this;}
281 
286  inline CreateMultipartUploadResult& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(value); return *this;}
287 
292  inline CreateMultipartUploadResult& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
293 
299  inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
300 
306  inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5 = value; }
307 
313  inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5 = value; }
314 
320  inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5.assign(value); }
321 
327  inline CreateMultipartUploadResult& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
328 
334  inline CreateMultipartUploadResult& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(value); return *this;}
335 
341  inline CreateMultipartUploadResult& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
342 
347  inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
348 
353  inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyId = value; }
354 
359  inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyId = value; }
360 
365  inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyId.assign(value); }
366 
371  inline CreateMultipartUploadResult& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
372 
377  inline CreateMultipartUploadResult& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(value); return *this;}
378 
383  inline CreateMultipartUploadResult& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
384 
385 
386  inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
387 
388 
389  inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
390 
391 
392  inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = value; }
393 
394 
395  inline CreateMultipartUploadResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
396 
397 
398  inline CreateMultipartUploadResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(value); return *this;}
399 
400  private:
401  Aws::Utils::DateTime m_abortDate;
402  Aws::String m_abortRuleId;
403  Aws::String m_bucket;
404  Aws::String m_key;
405  Aws::String m_uploadId;
406  ServerSideEncryption m_serverSideEncryption;
407  Aws::String m_sSECustomerAlgorithm;
408  Aws::String m_sSECustomerKeyMD5;
409  Aws::String m_sSEKMSKeyId;
410  RequestCharged m_requestCharged;
411  };
412 
413 } // namespace Model
414 } // namespace S3
415 } // namespace Aws
CreateMultipartUploadResult & WithServerSideEncryption(const ServerSideEncryption &value)
CreateMultipartUploadResult & WithServerSideEncryption(ServerSideEncryption &&value)
CreateMultipartUploadResult & WithSSEKMSKeyId(const char *value)
CreateMultipartUploadResult & WithUploadId(const Aws::String &value)
CreateMultipartUploadResult & WithUploadId(Aws::String &&value)
CreateMultipartUploadResult & WithSSECustomerAlgorithm(const char *value)
void SetServerSideEncryption(ServerSideEncryption &&value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:37
CreateMultipartUploadResult & WithKey(const char *value)
CreateMultipartUploadResult & WithAbortDate(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetAbortDate() const
CreateMultipartUploadResult & WithSSECustomerAlgorithm(const Aws::String &value)
CreateMultipartUploadResult & WithBucket(const Aws::String &value)
CreateMultipartUploadResult & WithAbortRuleId(Aws::String &&value)
CreateMultipartUploadResult & WithKey(Aws::String &&value)
CreateMultipartUploadResult & WithSSECustomerAlgorithm(Aws::String &&value)
CreateMultipartUploadResult & WithUploadId(const char *value)
const ServerSideEncryption & GetServerSideEncryption() const
CreateMultipartUploadResult & WithSSECustomerKeyMD5(const char *value)
CreateMultipartUploadResult & WithRequestCharged(RequestCharged &&value)
CreateMultipartUploadResult & WithAbortDate(Aws::Utils::DateTime &&value)
CreateMultipartUploadResult & WithBucket(const char *value)
CreateMultipartUploadResult & WithAbortRuleId(const char *value)
CreateMultipartUploadResult & WithRequestCharged(const RequestCharged &value)
CreateMultipartUploadResult & WithKey(const Aws::String &value)
CreateMultipartUploadResult & WithAbortRuleId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateMultipartUploadResult & WithSSEKMSKeyId(Aws::String &&value)
void SetServerSideEncryption(const ServerSideEncryption &value)
CreateMultipartUploadResult & WithBucket(Aws::String &&value)
CreateMultipartUploadResult & WithSSEKMSKeyId(const Aws::String &value)
CreateMultipartUploadResult & WithSSECustomerKeyMD5(Aws::String &&value)
JSON (JavaScript Object Notation).
CreateMultipartUploadResult & WithSSECustomerKeyMD5(const Aws::String &value)
void SetAbortDate(const Aws::Utils::DateTime &value)