AWS SDK for C++  0.12.9
AWS SDK for C++
MultipartUpload.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 #include <aws/s3/model/Owner.h>
21 #include <aws/s3/model/Initiator.h>
22 
23 namespace Aws
24 {
25 namespace Utils
26 {
27 namespace Xml
28 {
29  class XmlNode;
30 } // namespace Xml
31 } // namespace Utils
32 namespace S3
33 {
34 namespace Model
35 {
36 
38  {
39  public:
42  MultipartUpload& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43 
44  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45 
49  inline const Aws::String& GetUploadId() const{ return m_uploadId; }
50 
54  inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
55 
59  inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
60 
64  inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
65 
69  inline MultipartUpload& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
70 
74  inline MultipartUpload& WithUploadId(Aws::String&& value) { SetUploadId(value); return *this;}
75 
79  inline MultipartUpload& WithUploadId(const char* value) { SetUploadId(value); return *this;}
80 
84  inline const Aws::String& GetKey() const{ return m_key; }
85 
89  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
90 
94  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = value; }
95 
99  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
100 
104  inline MultipartUpload& WithKey(const Aws::String& value) { SetKey(value); return *this;}
105 
109  inline MultipartUpload& WithKey(Aws::String&& value) { SetKey(value); return *this;}
110 
114  inline MultipartUpload& WithKey(const char* value) { SetKey(value); return *this;}
115 
119  inline const Aws::Utils::DateTime& GetInitiated() const{ return m_initiated; }
120 
124  inline void SetInitiated(const Aws::Utils::DateTime& value) { m_initiatedHasBeenSet = true; m_initiated = value; }
125 
129  inline void SetInitiated(Aws::Utils::DateTime&& value) { m_initiatedHasBeenSet = true; m_initiated = value; }
130 
134  inline MultipartUpload& WithInitiated(const Aws::Utils::DateTime& value) { SetInitiated(value); return *this;}
135 
139  inline MultipartUpload& WithInitiated(Aws::Utils::DateTime&& value) { SetInitiated(value); return *this;}
140 
144  inline const StorageClass& GetStorageClass() const{ return m_storageClass; }
145 
149  inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
150 
154  inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = value; }
155 
159  inline MultipartUpload& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;}
160 
164  inline MultipartUpload& WithStorageClass(StorageClass&& value) { SetStorageClass(value); return *this;}
165 
166 
167  inline const Owner& GetOwner() const{ return m_owner; }
168 
169 
170  inline void SetOwner(const Owner& value) { m_ownerHasBeenSet = true; m_owner = value; }
171 
172 
173  inline void SetOwner(Owner&& value) { m_ownerHasBeenSet = true; m_owner = value; }
174 
175 
176  inline MultipartUpload& WithOwner(const Owner& value) { SetOwner(value); return *this;}
177 
178 
179  inline MultipartUpload& WithOwner(Owner&& value) { SetOwner(value); return *this;}
180 
184  inline const Initiator& GetInitiator() const{ return m_initiator; }
185 
189  inline void SetInitiator(const Initiator& value) { m_initiatorHasBeenSet = true; m_initiator = value; }
190 
194  inline void SetInitiator(Initiator&& value) { m_initiatorHasBeenSet = true; m_initiator = value; }
195 
199  inline MultipartUpload& WithInitiator(const Initiator& value) { SetInitiator(value); return *this;}
200 
204  inline MultipartUpload& WithInitiator(Initiator&& value) { SetInitiator(value); return *this;}
205 
206  private:
207  Aws::String m_uploadId;
208  bool m_uploadIdHasBeenSet;
209  Aws::String m_key;
210  bool m_keyHasBeenSet;
211  Aws::Utils::DateTime m_initiated;
212  bool m_initiatedHasBeenSet;
213  StorageClass m_storageClass;
214  bool m_storageClassHasBeenSet;
215  Owner m_owner;
216  bool m_ownerHasBeenSet;
217  Initiator m_initiator;
218  bool m_initiatorHasBeenSet;
219  };
220 
221 } // namespace Model
222 } // namespace S3
223 } // namespace Aws
void SetInitiated(const Aws::Utils::DateTime &value)
MultipartUpload & WithInitiated(const Aws::Utils::DateTime &value)
MultipartUpload & WithOwner(const Owner &value)
const Initiator & GetInitiator() const
void SetKey(const Aws::String &value)
MultipartUpload & WithKey(Aws::String &&value)
MultipartUpload & WithInitiated(Aws::Utils::DateTime &&value)
void SetInitiator(Initiator &&value)
void SetInitiated(Aws::Utils::DateTime &&value)
MultipartUpload & WithKey(const Aws::String &value)
#define AWS_S3_API
Definition: S3_EXPORTS.h:34
void SetKey(Aws::String &&value)
MultipartUpload & WithInitiator(const Initiator &value)
const Aws::String & GetKey() const
const Aws::String & GetUploadId() const
MultipartUpload & WithStorageClass(StorageClass &&value)
void SetStorageClass(StorageClass &&value)
MultipartUpload & WithStorageClass(const StorageClass &value)
MultipartUpload & WithUploadId(Aws::String &&value)
void SetUploadId(Aws::String &&value)
void SetKey(const char *value)
void SetUploadId(const char *value)
void SetUploadId(const Aws::String &value)
MultipartUpload & WithKey(const char *value)
void SetInitiator(const Initiator &value)
const StorageClass & GetStorageClass() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetOwner(const Owner &value)
MultipartUpload & WithUploadId(const char *value)
const Owner & GetOwner() const
MultipartUpload & WithUploadId(const Aws::String &value)
MultipartUpload & WithOwner(Owner &&value)
MultipartUpload & WithInitiator(Initiator &&value)
JSON (JavaScript Object Notation).
const Aws::Utils::DateTime & GetInitiated() const
void SetStorageClass(const StorageClass &value)