AWS SDK for C++  0.12.9
AWS SDK for C++
UploadPartResult.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>
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Xml
29 {
30  class XmlDocument;
31 } // namespace Xml
32 } // namespace Utils
33 namespace S3
34 {
35 namespace Model
36 {
38  {
39  public:
43 
48  inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
49 
54  inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryption = value; }
55 
60  inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryption = value; }
61 
66  inline UploadPartResult& WithServerSideEncryption(const ServerSideEncryption& value) { SetServerSideEncryption(value); return *this;}
67 
72  inline UploadPartResult& WithServerSideEncryption(ServerSideEncryption&& value) { SetServerSideEncryption(value); return *this;}
73 
77  inline const Aws::String& GetETag() const{ return m_eTag; }
78 
82  inline void SetETag(const Aws::String& value) { m_eTag = value; }
83 
87  inline void SetETag(Aws::String&& value) { m_eTag = value; }
88 
92  inline void SetETag(const char* value) { m_eTag.assign(value); }
93 
97  inline UploadPartResult& WithETag(const Aws::String& value) { SetETag(value); return *this;}
98 
102  inline UploadPartResult& WithETag(Aws::String&& value) { SetETag(value); return *this;}
103 
107  inline UploadPartResult& WithETag(const char* value) { SetETag(value); return *this;}
108 
113  inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
114 
119  inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithm = value; }
120 
125  inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithm = value; }
126 
131  inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithm.assign(value); }
132 
137  inline UploadPartResult& WithSSECustomerAlgorithm(const Aws::String& value) { SetSSECustomerAlgorithm(value); return *this;}
138 
143  inline UploadPartResult& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(value); return *this;}
144 
149  inline UploadPartResult& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
150 
156  inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
157 
163  inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5 = value; }
164 
170  inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5 = value; }
171 
177  inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5.assign(value); }
178 
184  inline UploadPartResult& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
185 
191  inline UploadPartResult& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(value); return *this;}
192 
198  inline UploadPartResult& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
199 
204  inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
205 
210  inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyId = value; }
211 
216  inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyId = value; }
217 
222  inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyId.assign(value); }
223 
228  inline UploadPartResult& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
229 
234  inline UploadPartResult& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(value); return *this;}
235 
240  inline UploadPartResult& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
241 
242 
243  inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
244 
245 
246  inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
247 
248 
249  inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = value; }
250 
251 
252  inline UploadPartResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
253 
254 
255  inline UploadPartResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(value); return *this;}
256 
257  private:
258  ServerSideEncryption m_serverSideEncryption;
259  Aws::String m_eTag;
260  Aws::String m_sSECustomerAlgorithm;
261  Aws::String m_sSECustomerKeyMD5;
262  Aws::String m_sSEKMSKeyId;
263  RequestCharged m_requestCharged;
264  };
265 
266 } // namespace Model
267 } // namespace S3
268 } // namespace Aws
void SetETag(Aws::String &&value)
UploadPartResult & WithSSECustomerKeyMD5(const char *value)
void SetRequestCharged(const RequestCharged &value)
UploadPartResult & WithSSEKMSKeyId(Aws::String &&value)
void SetETag(const char *value)
UploadPartResult & WithSSEKMSKeyId(const char *value)
UploadPartResult & WithServerSideEncryption(ServerSideEncryption &&value)
const RequestCharged & GetRequestCharged() const
void SetSSEKMSKeyId(const char *value)
void SetServerSideEncryption(ServerSideEncryption &&value)
void SetETag(const Aws::String &value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
void SetSSECustomerKeyMD5(Aws::String &&value)
void SetRequestCharged(RequestCharged &&value)
UploadPartResult & WithRequestCharged(RequestCharged &&value)
UploadPartResult & WithSSECustomerAlgorithm(const char *value)
UploadPartResult & WithSSEKMSKeyId(const Aws::String &value)
UploadPartResult & WithRequestCharged(const RequestCharged &value)
UploadPartResult & WithServerSideEncryption(const ServerSideEncryption &value)
void SetSSECustomerKeyMD5(const char *value)
void SetServerSideEncryption(const ServerSideEncryption &value)
void SetSSEKMSKeyId(const Aws::String &value)
const Aws::String & GetETag() const
UploadPartResult & WithSSECustomerKeyMD5(Aws::String &&value)
void SetSSECustomerKeyMD5(const Aws::String &value)
UploadPartResult & WithETag(const char *value)
UploadPartResult & WithSSECustomerKeyMD5(const Aws::String &value)
void SetSSECustomerAlgorithm(Aws::String &&value)
UploadPartResult & WithSSECustomerAlgorithm(Aws::String &&value)
const Aws::String & GetSSEKMSKeyId() const
void SetSSECustomerAlgorithm(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetSSECustomerAlgorithm(const char *value)
void SetSSEKMSKeyId(Aws::String &&value)
UploadPartResult & WithETag(Aws::String &&value)
UploadPartResult & WithETag(const Aws::String &value)
const Aws::String & GetSSECustomerAlgorithm() const
const Aws::String & GetSSECustomerKeyMD5() const
const ServerSideEncryption & GetServerSideEncryption() const
JSON (JavaScript Object Notation).
UploadPartResult & WithSSECustomerAlgorithm(const Aws::String &value)