AWS SDK for C++  1.9.15
AWS SDK for C++
UploadArchiveRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/core/utils/Array.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Glacier
16 {
17 namespace Model
18 {
19 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "UploadArchive"; }
35 
37 
38 
42  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
43 
47  inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
48 
52  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
53 
57  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
58 
62  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
63 
67  inline UploadArchiveRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
68 
72  inline UploadArchiveRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
73 
77  inline UploadArchiveRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
78 
79 
87  inline const Aws::String& GetAccountId() const{ return m_accountId; }
88 
96  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
97 
105  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
106 
114  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
115 
123  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
124 
132  inline UploadArchiveRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
133 
141  inline UploadArchiveRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
142 
150  inline UploadArchiveRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
151 
152 
156  inline const Aws::String& GetArchiveDescription() const{ return m_archiveDescription; }
157 
161  inline bool ArchiveDescriptionHasBeenSet() const { return m_archiveDescriptionHasBeenSet; }
162 
166  inline void SetArchiveDescription(const Aws::String& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = value; }
167 
171  inline void SetArchiveDescription(Aws::String&& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = std::move(value); }
172 
176  inline void SetArchiveDescription(const char* value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription.assign(value); }
177 
181  inline UploadArchiveRequest& WithArchiveDescription(const Aws::String& value) { SetArchiveDescription(value); return *this;}
182 
186  inline UploadArchiveRequest& WithArchiveDescription(Aws::String&& value) { SetArchiveDescription(std::move(value)); return *this;}
187 
191  inline UploadArchiveRequest& WithArchiveDescription(const char* value) { SetArchiveDescription(value); return *this;}
192 
193 
197  inline const Aws::String& GetChecksum() const{ return m_checksum; }
198 
202  inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
203 
207  inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
208 
212  inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
213 
217  inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
218 
222  inline UploadArchiveRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
223 
227  inline UploadArchiveRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
228 
232  inline UploadArchiveRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
233 
234  private:
235 
236  Aws::String m_vaultName;
237  bool m_vaultNameHasBeenSet;
238 
239  Aws::String m_accountId;
240  bool m_accountIdHasBeenSet;
241 
242  Aws::String m_archiveDescription;
243  bool m_archiveDescriptionHasBeenSet;
244 
245  Aws::String m_checksum;
246  bool m_checksumHasBeenSet;
247 
248  };
249 
250 } // namespace Model
251 } // namespace Glacier
252 } // namespace Aws
Aws::Glacier::Model::UploadArchiveRequest::WithVaultName
UploadArchiveRequest & WithVaultName(const char *value)
Definition: UploadArchiveRequest.h:77
Aws::Glacier::Model::UploadArchiveRequest::WithArchiveDescription
UploadArchiveRequest & WithArchiveDescription(const char *value)
Definition: UploadArchiveRequest.h:191
Aws::Glacier::Model::UploadArchiveRequest::SetChecksum
void SetChecksum(const Aws::String &value)
Definition: UploadArchiveRequest.h:207
Aws::Glacier::Model::UploadArchiveRequest::WithVaultName
UploadArchiveRequest & WithVaultName(Aws::String &&value)
Definition: UploadArchiveRequest.h:72
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Glacier::Model::UploadArchiveRequest::WithChecksum
UploadArchiveRequest & WithChecksum(Aws::String &&value)
Definition: UploadArchiveRequest.h:227
Aws::Glacier::Model::UploadArchiveRequest::WithAccountId
UploadArchiveRequest & WithAccountId(Aws::String &&value)
Definition: UploadArchiveRequest.h:141
Aws::Glacier::Model::UploadArchiveRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: UploadArchiveRequest.h:105
Aws::Glacier::Model::UploadArchiveRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: UploadArchiveRequest.h:87
Aws::Glacier::Model::UploadArchiveRequest::WithArchiveDescription
UploadArchiveRequest & WithArchiveDescription(Aws::String &&value)
Definition: UploadArchiveRequest.h:186
Aws::Glacier::Model::UploadArchiveRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: UploadArchiveRequest.h:96
Aws::Glacier::Model::UploadArchiveRequest::GetArchiveDescription
const Aws::String & GetArchiveDescription() const
Definition: UploadArchiveRequest.h:156
Aws::Glacier::Model::UploadArchiveRequest::VaultNameHasBeenSet
bool VaultNameHasBeenSet() const
Definition: UploadArchiveRequest.h:47
Aws::Glacier::Model::UploadArchiveRequest::WithArchiveDescription
UploadArchiveRequest & WithArchiveDescription(const Aws::String &value)
Definition: UploadArchiveRequest.h:181
Aws::Glacier::Model::UploadArchiveRequest::WithAccountId
UploadArchiveRequest & WithAccountId(const Aws::String &value)
Definition: UploadArchiveRequest.h:132
Aws::Glacier::Model::UploadArchiveRequest::ArchiveDescriptionHasBeenSet
bool ArchiveDescriptionHasBeenSet() const
Definition: UploadArchiveRequest.h:161
Aws::Glacier::Model::UploadArchiveRequest::WithAccountId
UploadArchiveRequest & WithAccountId(const char *value)
Definition: UploadArchiveRequest.h:150
Aws::Glacier::Model::UploadArchiveRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: UploadArchiveRequest.h:114
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::UploadArchiveRequest::SetArchiveDescription
void SetArchiveDescription(const Aws::String &value)
Definition: UploadArchiveRequest.h:166
Aws::Glacier::Model::UploadArchiveRequest::UploadArchiveRequest
UploadArchiveRequest()
Aws::Glacier::Model::UploadArchiveRequest::SetArchiveDescription
void SetArchiveDescription(const char *value)
Definition: UploadArchiveRequest.h:176
Aws::Glacier::Model::UploadArchiveRequest::GetVaultName
const Aws::String & GetVaultName() const
Definition: UploadArchiveRequest.h:42
Aws::Glacier::Model::UploadArchiveRequest::SetVaultName
void SetVaultName(const char *value)
Definition: UploadArchiveRequest.h:62
AWSString.h
Aws::Glacier::Model::UploadArchiveRequest::SetChecksum
void SetChecksum(const char *value)
Definition: UploadArchiveRequest.h:217
Aws::Glacier::Model::UploadArchiveRequest::WithChecksum
UploadArchiveRequest & WithChecksum(const Aws::String &value)
Definition: UploadArchiveRequest.h:222
Aws::Glacier::Model::UploadArchiveRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UploadArchiveRequest.h:34
GlacierRequest.h
Aws::Glacier::Model::UploadArchiveRequest::ChecksumHasBeenSet
bool ChecksumHasBeenSet() const
Definition: UploadArchiveRequest.h:202
Aws::Glacier::Model::UploadArchiveRequest::SetVaultName
void SetVaultName(const Aws::String &value)
Definition: UploadArchiveRequest.h:52
Aws::AmazonStreamingWebServiceRequest
Definition: AmazonStreamingWebServiceRequest.h:26
Aws::Glacier::Model::UploadArchiveRequest
Definition: UploadArchiveRequest.h:26
Aws::Glacier::Model::UploadArchiveRequest::GetChecksum
const Aws::String & GetChecksum() const
Definition: UploadArchiveRequest.h:197
Aws
Definition: AccessManagementClient.h:15
Array.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::UploadArchiveRequest::SetChecksum
void SetChecksum(Aws::String &&value)
Definition: UploadArchiveRequest.h:212
Aws::Glacier::Model::UploadArchiveRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Glacier::Model::UploadArchiveRequest::WithVaultName
UploadArchiveRequest & WithVaultName(const Aws::String &value)
Definition: UploadArchiveRequest.h:67
Aws::Glacier::Model::UploadArchiveRequest::SetAccountId
void SetAccountId(const char *value)
Definition: UploadArchiveRequest.h:123
Aws::Glacier::Model::UploadArchiveRequest::SetArchiveDescription
void SetArchiveDescription(Aws::String &&value)
Definition: UploadArchiveRequest.h:171
Aws::Glacier::Model::UploadArchiveRequest::WithChecksum
UploadArchiveRequest & WithChecksum(const char *value)
Definition: UploadArchiveRequest.h:232
Aws::Glacier::Model::UploadArchiveRequest::SetVaultName
void SetVaultName(Aws::String &&value)
Definition: UploadArchiveRequest.h:57
Glacier_EXPORTS.h