AWS SDK for C++  0.12.9
AWS SDK for C++
PutObjectResult.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 Aws::String& GetExpiration() const{ return m_expiration; }
49 
54  inline void SetExpiration(const Aws::String& value) { m_expiration = value; }
55 
60  inline void SetExpiration(Aws::String&& value) { m_expiration = value; }
61 
66  inline void SetExpiration(const char* value) { m_expiration.assign(value); }
67 
72  inline PutObjectResult& WithExpiration(const Aws::String& value) { SetExpiration(value); return *this;}
73 
78  inline PutObjectResult& WithExpiration(Aws::String&& value) { SetExpiration(value); return *this;}
79 
84  inline PutObjectResult& WithExpiration(const char* value) { SetExpiration(value); return *this;}
85 
89  inline const Aws::String& GetETag() const{ return m_eTag; }
90 
94  inline void SetETag(const Aws::String& value) { m_eTag = value; }
95 
99  inline void SetETag(Aws::String&& value) { m_eTag = value; }
100 
104  inline void SetETag(const char* value) { m_eTag.assign(value); }
105 
109  inline PutObjectResult& WithETag(const Aws::String& value) { SetETag(value); return *this;}
110 
114  inline PutObjectResult& WithETag(Aws::String&& value) { SetETag(value); return *this;}
115 
119  inline PutObjectResult& WithETag(const char* value) { SetETag(value); return *this;}
120 
125  inline const ServerSideEncryption& GetServerSideEncryption() const{ return m_serverSideEncryption; }
126 
131  inline void SetServerSideEncryption(const ServerSideEncryption& value) { m_serverSideEncryption = value; }
132 
137  inline void SetServerSideEncryption(ServerSideEncryption&& value) { m_serverSideEncryption = value; }
138 
143  inline PutObjectResult& WithServerSideEncryption(const ServerSideEncryption& value) { SetServerSideEncryption(value); return *this;}
144 
149  inline PutObjectResult& WithServerSideEncryption(ServerSideEncryption&& value) { SetServerSideEncryption(value); return *this;}
150 
154  inline const Aws::String& GetVersionId() const{ return m_versionId; }
155 
159  inline void SetVersionId(const Aws::String& value) { m_versionId = value; }
160 
164  inline void SetVersionId(Aws::String&& value) { m_versionId = value; }
165 
169  inline void SetVersionId(const char* value) { m_versionId.assign(value); }
170 
174  inline PutObjectResult& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
175 
179  inline PutObjectResult& WithVersionId(Aws::String&& value) { SetVersionId(value); return *this;}
180 
184  inline PutObjectResult& WithVersionId(const char* value) { SetVersionId(value); return *this;}
185 
190  inline const Aws::String& GetSSECustomerAlgorithm() const{ return m_sSECustomerAlgorithm; }
191 
196  inline void SetSSECustomerAlgorithm(const Aws::String& value) { m_sSECustomerAlgorithm = value; }
197 
202  inline void SetSSECustomerAlgorithm(Aws::String&& value) { m_sSECustomerAlgorithm = value; }
203 
208  inline void SetSSECustomerAlgorithm(const char* value) { m_sSECustomerAlgorithm.assign(value); }
209 
214  inline PutObjectResult& WithSSECustomerAlgorithm(const Aws::String& value) { SetSSECustomerAlgorithm(value); return *this;}
215 
220  inline PutObjectResult& WithSSECustomerAlgorithm(Aws::String&& value) { SetSSECustomerAlgorithm(value); return *this;}
221 
226  inline PutObjectResult& WithSSECustomerAlgorithm(const char* value) { SetSSECustomerAlgorithm(value); return *this;}
227 
233  inline const Aws::String& GetSSECustomerKeyMD5() const{ return m_sSECustomerKeyMD5; }
234 
240  inline void SetSSECustomerKeyMD5(const Aws::String& value) { m_sSECustomerKeyMD5 = value; }
241 
247  inline void SetSSECustomerKeyMD5(Aws::String&& value) { m_sSECustomerKeyMD5 = value; }
248 
254  inline void SetSSECustomerKeyMD5(const char* value) { m_sSECustomerKeyMD5.assign(value); }
255 
261  inline PutObjectResult& WithSSECustomerKeyMD5(const Aws::String& value) { SetSSECustomerKeyMD5(value); return *this;}
262 
268  inline PutObjectResult& WithSSECustomerKeyMD5(Aws::String&& value) { SetSSECustomerKeyMD5(value); return *this;}
269 
275  inline PutObjectResult& WithSSECustomerKeyMD5(const char* value) { SetSSECustomerKeyMD5(value); return *this;}
276 
281  inline const Aws::String& GetSSEKMSKeyId() const{ return m_sSEKMSKeyId; }
282 
287  inline void SetSSEKMSKeyId(const Aws::String& value) { m_sSEKMSKeyId = value; }
288 
293  inline void SetSSEKMSKeyId(Aws::String&& value) { m_sSEKMSKeyId = value; }
294 
299  inline void SetSSEKMSKeyId(const char* value) { m_sSEKMSKeyId.assign(value); }
300 
305  inline PutObjectResult& WithSSEKMSKeyId(const Aws::String& value) { SetSSEKMSKeyId(value); return *this;}
306 
311  inline PutObjectResult& WithSSEKMSKeyId(Aws::String&& value) { SetSSEKMSKeyId(value); return *this;}
312 
317  inline PutObjectResult& WithSSEKMSKeyId(const char* value) { SetSSEKMSKeyId(value); return *this;}
318 
319 
320  inline const RequestCharged& GetRequestCharged() const{ return m_requestCharged; }
321 
322 
323  inline void SetRequestCharged(const RequestCharged& value) { m_requestCharged = value; }
324 
325 
326  inline void SetRequestCharged(RequestCharged&& value) { m_requestCharged = value; }
327 
328 
329  inline PutObjectResult& WithRequestCharged(const RequestCharged& value) { SetRequestCharged(value); return *this;}
330 
331 
332  inline PutObjectResult& WithRequestCharged(RequestCharged&& value) { SetRequestCharged(value); return *this;}
333 
334  private:
335  Aws::String m_expiration;
336  Aws::String m_eTag;
337  ServerSideEncryption m_serverSideEncryption;
338  Aws::String m_versionId;
339  Aws::String m_sSECustomerAlgorithm;
340  Aws::String m_sSECustomerKeyMD5;
341  Aws::String m_sSEKMSKeyId;
342  RequestCharged m_requestCharged;
343  };
344 
345 } // namespace Model
346 } // namespace S3
347 } // namespace Aws
void SetServerSideEncryption(ServerSideEncryption &&value)
void SetSSEKMSKeyId(const char *value)
const Aws::String & GetSSECustomerKeyMD5() const
PutObjectResult & WithETag(const Aws::String &value)
const Aws::String & GetExpiration() const
PutObjectResult & WithVersionId(const Aws::String &value)
void SetVersionId(const char *value)
void SetSSECustomerKeyMD5(const char *value)
void SetETag(Aws::String &&value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
PutObjectResult & WithServerSideEncryption(ServerSideEncryption &&value)
PutObjectResult & WithSSECustomerKeyMD5(const char *value)
void SetVersionId(Aws::String &&value)
PutObjectResult & WithSSECustomerKeyMD5(const Aws::String &value)
void SetSSECustomerAlgorithm(const Aws::String &value)
PutObjectResult & WithServerSideEncryption(const ServerSideEncryption &value)
PutObjectResult & WithSSECustomerKeyMD5(Aws::String &&value)
PutObjectResult & WithExpiration(const Aws::String &value)
PutObjectResult & WithRequestCharged(const RequestCharged &value)
const Aws::String & GetSSECustomerAlgorithm() const
const Aws::String & GetVersionId() const
void SetServerSideEncryption(const ServerSideEncryption &value)
void SetSSECustomerAlgorithm(const char *value)
PutObjectResult & WithETag(Aws::String &&value)
PutObjectResult & WithSSEKMSKeyId(const Aws::String &value)
PutObjectResult & WithRequestCharged(RequestCharged &&value)
void SetVersionId(const Aws::String &value)
void SetExpiration(const Aws::String &value)
PutObjectResult & WithExpiration(Aws::String &&value)
const Aws::String & GetSSEKMSKeyId() const
const ServerSideEncryption & GetServerSideEncryption() const
void SetETag(const char *value)
void SetRequestCharged(RequestCharged &&value)
void SetSSECustomerAlgorithm(Aws::String &&value)
PutObjectResult & WithSSECustomerAlgorithm(const Aws::String &value)
PutObjectResult & WithVersionId(Aws::String &&value)
void SetSSEKMSKeyId(const Aws::String &value)
void SetSSECustomerKeyMD5(const Aws::String &value)
PutObjectResult & WithVersionId(const char *value)
void SetExpiration(const char *value)
void SetETag(const Aws::String &value)
void SetExpiration(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
PutObjectResult & WithExpiration(const char *value)
PutObjectResult & WithETag(const char *value)
PutObjectResult & WithSSECustomerAlgorithm(Aws::String &&value)
const Aws::String & GetETag() const
PutObjectResult & WithSSECustomerAlgorithm(const char *value)
void SetSSECustomerKeyMD5(Aws::String &&value)
void SetSSEKMSKeyId(Aws::String &&value)
const RequestCharged & GetRequestCharged() const
PutObjectResult & WithSSEKMSKeyId(const char *value)
void SetRequestCharged(const RequestCharged &value)
JSON (JavaScript Object Notation).
PutObjectResult & WithSSEKMSKeyId(Aws::String &&value)