AWS SDK for C++  1.9.104
AWS SDK for C++
CompleteMultipartUploadRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Glacier
15 {
16 namespace Model
17 {
18 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CompleteMultipartUpload"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
51  inline const Aws::String& GetAccountId() const{ return m_accountId; }
52 
60  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
61 
69  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
70 
78  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
79 
87  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
88 
96  inline CompleteMultipartUploadRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
97 
105  inline CompleteMultipartUploadRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
106 
114  inline CompleteMultipartUploadRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
115 
116 
120  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
121 
125  inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
126 
130  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
131 
135  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
136 
140  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
141 
145  inline CompleteMultipartUploadRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
146 
150  inline CompleteMultipartUploadRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
151 
155  inline CompleteMultipartUploadRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
156 
157 
161  inline const Aws::String& GetUploadId() const{ return m_uploadId; }
162 
166  inline bool UploadIdHasBeenSet() const { return m_uploadIdHasBeenSet; }
167 
171  inline void SetUploadId(const Aws::String& value) { m_uploadIdHasBeenSet = true; m_uploadId = value; }
172 
176  inline void SetUploadId(Aws::String&& value) { m_uploadIdHasBeenSet = true; m_uploadId = std::move(value); }
177 
181  inline void SetUploadId(const char* value) { m_uploadIdHasBeenSet = true; m_uploadId.assign(value); }
182 
186  inline CompleteMultipartUploadRequest& WithUploadId(const Aws::String& value) { SetUploadId(value); return *this;}
187 
191  inline CompleteMultipartUploadRequest& WithUploadId(Aws::String&& value) { SetUploadId(std::move(value)); return *this;}
192 
196  inline CompleteMultipartUploadRequest& WithUploadId(const char* value) { SetUploadId(value); return *this;}
197 
198 
203  inline const Aws::String& GetArchiveSize() const{ return m_archiveSize; }
204 
209  inline bool ArchiveSizeHasBeenSet() const { return m_archiveSizeHasBeenSet; }
210 
215  inline void SetArchiveSize(const Aws::String& value) { m_archiveSizeHasBeenSet = true; m_archiveSize = value; }
216 
221  inline void SetArchiveSize(Aws::String&& value) { m_archiveSizeHasBeenSet = true; m_archiveSize = std::move(value); }
222 
227  inline void SetArchiveSize(const char* value) { m_archiveSizeHasBeenSet = true; m_archiveSize.assign(value); }
228 
233  inline CompleteMultipartUploadRequest& WithArchiveSize(const Aws::String& value) { SetArchiveSize(value); return *this;}
234 
239  inline CompleteMultipartUploadRequest& WithArchiveSize(Aws::String&& value) { SetArchiveSize(std::move(value)); return *this;}
240 
245  inline CompleteMultipartUploadRequest& WithArchiveSize(const char* value) { SetArchiveSize(value); return *this;}
246 
247 
254  inline const Aws::String& GetChecksum() const{ return m_checksum; }
255 
262  inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
263 
270  inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
271 
278  inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
279 
286  inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
287 
294  inline CompleteMultipartUploadRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
295 
302  inline CompleteMultipartUploadRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
303 
310  inline CompleteMultipartUploadRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
311 
312  private:
313 
314  Aws::String m_accountId;
315  bool m_accountIdHasBeenSet;
316 
317  Aws::String m_vaultName;
318  bool m_vaultNameHasBeenSet;
319 
320  Aws::String m_uploadId;
321  bool m_uploadIdHasBeenSet;
322 
323  Aws::String m_archiveSize;
324  bool m_archiveSizeHasBeenSet;
325 
326  Aws::String m_checksum;
327  bool m_checksumHasBeenSet;
328  };
329 
330 } // namespace Model
331 } // namespace Glacier
332 } // namespace Aws
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetUploadId
void SetUploadId(const Aws::String &value)
Definition: CompleteMultipartUploadRequest.h:171
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetUploadId
void SetUploadId(Aws::String &&value)
Definition: CompleteMultipartUploadRequest.h:176
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithArchiveSize
CompleteMultipartUploadRequest & WithArchiveSize(const char *value)
Definition: CompleteMultipartUploadRequest.h:245
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Glacier::Model::CompleteMultipartUploadRequest::ArchiveSizeHasBeenSet
bool ArchiveSizeHasBeenSet() const
Definition: CompleteMultipartUploadRequest.h:209
Aws::Glacier::Model::CompleteMultipartUploadRequest::VaultNameHasBeenSet
bool VaultNameHasBeenSet() const
Definition: CompleteMultipartUploadRequest.h:125
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: CompleteMultipartUploadRequest.h:69
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithAccountId
CompleteMultipartUploadRequest & WithAccountId(const Aws::String &value)
Definition: CompleteMultipartUploadRequest.h:96
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetArchiveSize
void SetArchiveSize(Aws::String &&value)
Definition: CompleteMultipartUploadRequest.h:221
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithAccountId
CompleteMultipartUploadRequest & WithAccountId(const char *value)
Definition: CompleteMultipartUploadRequest.h:114
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithVaultName
CompleteMultipartUploadRequest & WithVaultName(const char *value)
Definition: CompleteMultipartUploadRequest.h:155
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithArchiveSize
CompleteMultipartUploadRequest & WithArchiveSize(Aws::String &&value)
Definition: CompleteMultipartUploadRequest.h:239
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetAccountId
void SetAccountId(const char *value)
Definition: CompleteMultipartUploadRequest.h:87
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetChecksum
void SetChecksum(const char *value)
Definition: CompleteMultipartUploadRequest.h:286
Aws::Glacier::Model::CompleteMultipartUploadRequest::UploadIdHasBeenSet
bool UploadIdHasBeenSet() const
Definition: CompleteMultipartUploadRequest.h:166
Aws::Glacier::GlacierRequest
Definition: GlacierRequest.h:18
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::CompleteMultipartUploadRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetVaultName
void SetVaultName(const char *value)
Definition: CompleteMultipartUploadRequest.h:140
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithChecksum
CompleteMultipartUploadRequest & WithChecksum(const char *value)
Definition: CompleteMultipartUploadRequest.h:310
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetChecksum
void SetChecksum(Aws::String &&value)
Definition: CompleteMultipartUploadRequest.h:278
Aws::Glacier::Model::CompleteMultipartUploadRequest::CompleteMultipartUploadRequest
CompleteMultipartUploadRequest()
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetArchiveSize
void SetArchiveSize(const char *value)
Definition: CompleteMultipartUploadRequest.h:227
Aws::Glacier::Model::CompleteMultipartUploadRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: CompleteMultipartUploadRequest.h:51
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetVaultName
void SetVaultName(const Aws::String &value)
Definition: CompleteMultipartUploadRequest.h:130
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetVaultName
void SetVaultName(Aws::String &&value)
Definition: CompleteMultipartUploadRequest.h:135
Aws::Glacier::Model::CompleteMultipartUploadRequest::ChecksumHasBeenSet
bool ChecksumHasBeenSet() const
Definition: CompleteMultipartUploadRequest.h:262
AWSString.h
Aws::Glacier::Model::CompleteMultipartUploadRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: CompleteMultipartUploadRequest.h:60
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithAccountId
CompleteMultipartUploadRequest & WithAccountId(Aws::String &&value)
Definition: CompleteMultipartUploadRequest.h:105
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithChecksum
CompleteMultipartUploadRequest & WithChecksum(const Aws::String &value)
Definition: CompleteMultipartUploadRequest.h:294
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithVaultName
CompleteMultipartUploadRequest & WithVaultName(Aws::String &&value)
Definition: CompleteMultipartUploadRequest.h:150
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithUploadId
CompleteMultipartUploadRequest & WithUploadId(const char *value)
Definition: CompleteMultipartUploadRequest.h:196
GlacierRequest.h
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithArchiveSize
CompleteMultipartUploadRequest & WithArchiveSize(const Aws::String &value)
Definition: CompleteMultipartUploadRequest.h:233
Aws::Glacier::Model::CompleteMultipartUploadRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: CompleteMultipartUploadRequest.h:78
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetArchiveSize
void SetArchiveSize(const Aws::String &value)
Definition: CompleteMultipartUploadRequest.h:215
Aws::Glacier::Model::CompleteMultipartUploadRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CompleteMultipartUploadRequest.h:37
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::CompleteMultipartUploadRequest::GetVaultName
const Aws::String & GetVaultName() const
Definition: CompleteMultipartUploadRequest.h:120
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::CompleteMultipartUploadRequest
Definition: CompleteMultipartUploadRequest.h:29
Aws::Glacier::Model::CompleteMultipartUploadRequest::GetUploadId
const Aws::String & GetUploadId() const
Definition: CompleteMultipartUploadRequest.h:161
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithVaultName
CompleteMultipartUploadRequest & WithVaultName(const Aws::String &value)
Definition: CompleteMultipartUploadRequest.h:145
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithChecksum
CompleteMultipartUploadRequest & WithChecksum(Aws::String &&value)
Definition: CompleteMultipartUploadRequest.h:302
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetChecksum
void SetChecksum(const Aws::String &value)
Definition: CompleteMultipartUploadRequest.h:270
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithUploadId
CompleteMultipartUploadRequest & WithUploadId(const Aws::String &value)
Definition: CompleteMultipartUploadRequest.h:186
Aws::Glacier::Model::CompleteMultipartUploadRequest::GetChecksum
const Aws::String & GetChecksum() const
Definition: CompleteMultipartUploadRequest.h:254
Aws::Glacier::Model::CompleteMultipartUploadRequest::GetArchiveSize
const Aws::String & GetArchiveSize() const
Definition: CompleteMultipartUploadRequest.h:203
Aws::Glacier::Model::CompleteMultipartUploadRequest::WithUploadId
CompleteMultipartUploadRequest & WithUploadId(Aws::String &&value)
Definition: CompleteMultipartUploadRequest.h:191
Aws::Glacier::Model::CompleteMultipartUploadRequest::SetUploadId
void SetUploadId(const char *value)
Definition: CompleteMultipartUploadRequest.h:181
Glacier_EXPORTS.h