AWS SDK for C++  0.12.9
AWS SDK for C++
UploadPartCopyResult.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::String& GetCopySourceVersionId() const{ return m_copySourceVersionId; }
50 
55  inline void SetCopySourceVersionId(const Aws::String& value) { m_copySourceVersionId = value; }
56 
61  inline void SetCopySourceVersionId(Aws::String&& value) { m_copySourceVersionId = value; }
62 
67  inline void SetCopySourceVersionId(const char* value) { m_copySourceVersionId.assign(value); }
68 
73  inline UploadPartCopyResult& WithCopySourceVersionId(const Aws::String& value) { SetCopySourceVersionId(value); return *this;}
74 
79  inline UploadPartCopyResult& WithCopySourceVersionId(Aws::String&& value) { SetCopySourceVersionId(value); return *this;}
80 
85  inline UploadPartCopyResult& WithCopySourceVersionId(const char* value) { SetCopySourceVersionId(value); return *this;}
86 
87 
88  inline const CopyPartResult& GetCopyPartResult() const{ return m_copyPartResult; }
89 
90 
91  inline void SetCopyPartResult(const CopyPartResult& value) { m_copyPartResult = value; }
92 
93 
94  inline void SetCopyPartResult(CopyPartResult&& value) { m_copyPartResult = value; }
95 
96 
97  inline UploadPartCopyResult& WithCopyPartResult(const CopyPartResult& value) { SetCopyPartResult(value); return *this;}
98 
99 
100  inline UploadPartCopyResult& WithCopyPartResult(CopyPartResult&& value) { SetCopyPartResult(value); return *this;}
101 
106  inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
107 
112  inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryption = value; }
113 
118  inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryption = value; }
119 
124  inline UploadPartCopyResult& WithServerSideEncryption(const ServerSideEncryption& value) { SetServerSideEncryption(value); return *this;}
125 
130  inline UploadPartCopyResult& WithServerSideEncryption(ServerSideEncryption&& value) { SetServerSideEncryption(value); return *this;}
131 
136  inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
137 
142  inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithm = value; }
143 
148  inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithm = value; }
149 
154  inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithm.assign(value); }
155 
160  inline UploadPartCopyResult& WithSSECustomerAlgorithm(const Aws::String& value) { SetSSECustomerAlgorithm(value); return *this;}
161 
166  inline UploadPartCopyResult& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(value); return *this;}
167 
172  inline UploadPartCopyResult& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
173 
179  inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
180 
186  inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5 = value; }
187 
193  inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5 = value; }
194 
200  inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5.assign(value); }
201 
207  inline UploadPartCopyResult& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
208 
214  inline UploadPartCopyResult& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(value); return *this;}
215 
221  inline UploadPartCopyResult& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
222 
227  inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
228 
233  inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyId = value; }
234 
239  inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyId = value; }
240 
245  inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyId.assign(value); }
246 
251  inline UploadPartCopyResult& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
252 
257  inline UploadPartCopyResult& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(value); return *this;}
258 
263  inline UploadPartCopyResult& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
264 
265 
266  inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
267 
268 
269  inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
270 
271 
272  inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = value; }
273 
274 
275  inline UploadPartCopyResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
276 
277 
278  inline UploadPartCopyResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(value); return *this;}
279 
280  private:
281  Aws::String m_copySourceVersionId;
282  CopyPartResult m_copyPartResult;
283  ServerSideEncryption m_serverSideEncryption;
284  Aws::String m_sSECustomerAlgorithm;
285  Aws::String m_sSECustomerKeyMD5;
286  Aws::String m_sSEKMSKeyId;
287  RequestCharged m_requestCharged;
288  };
289 
290 } // namespace Model
291 } // namespace S3
292 } // namespace Aws
const Aws::String & GetSSECustomerKeyMD5() const
void SetServerSideEncryption(const ServerSideEncryption &value)
UploadPartCopyResult & WithSSEKMSKeyId(const char *value)
UploadPartCopyResult & WithServerSideEncryption(const ServerSideEncryption &value)
UploadPartCopyResult & WithCopyPartResult(CopyPartResult &&value)
const RequestCharged & GetRequestCharged() const
void SetRequestCharged(RequestCharged &&value)
void SetSSEKMSKeyId(Aws::String &&value)
void SetSSEKMSKeyId(const Aws::String &value)
UploadPartCopyResult & WithCopyPartResult(const CopyPartResult &value)
void SetCopyPartResult(CopyPartResult &&value)
UploadPartCopyResult & WithCopySourceVersionId(const char *value)
UploadPartCopyResult & WithCopySourceVersionId(Aws::String &&value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
void SetSSECustomerAlgorithm(Aws::String &&value)
UploadPartCopyResult & WithSSECustomerKeyMD5(Aws::String &&value)
const Aws::String & GetSSEKMSKeyId() const
void SetSSECustomerKeyMD5(const char *value)
void SetRequestCharged(const RequestCharged &value)
UploadPartCopyResult & WithServerSideEncryption(ServerSideEncryption &&value)
UploadPartCopyResult & WithRequestCharged(const RequestCharged &value)
void SetSSECustomerKeyMD5(const Aws::String &value)
void SetSSECustomerAlgorithm(const char *value)
void SetCopySourceVersionId(Aws::String &&value)
UploadPartCopyResult & WithCopySourceVersionId(const Aws::String &value)
UploadPartCopyResult & WithSSEKMSKeyId(Aws::String &&value)
const CopyPartResult & GetCopyPartResult() const
UploadPartCopyResult & WithRequestCharged(RequestCharged &&value)
const Aws::String & GetCopySourceVersionId() const
const Aws::String & GetSSECustomerAlgorithm() const
void SetServerSideEncryption(ServerSideEncryption &&value)
UploadPartCopyResult & WithSSEKMSKeyId(const Aws::String &value)
void SetSSECustomerAlgorithm(const Aws::String &value)
UploadPartCopyResult & WithSSECustomerAlgorithm(const Aws::String &value)
UploadPartCopyResult & WithSSECustomerKeyMD5(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UploadPartCopyResult & WithSSECustomerKeyMD5(const Aws::String &value)
const ServerSideEncryption & GetServerSideEncryption() const
UploadPartCopyResult & WithSSECustomerAlgorithm(const char *value)
void SetCopySourceVersionId(const Aws::String &value)
void SetCopyPartResult(const CopyPartResult &value)
void SetCopySourceVersionId(const char *value)
void SetSSECustomerKeyMD5(Aws::String &&value)
UploadPartCopyResult & WithSSECustomerAlgorithm(Aws::String &&value)
JSON (JavaScript Object Notation).