AWS SDK for C++  1.9.104
AWS SDK for C++
InitiateMultipartUploadRequest.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 
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 "InitiateMultipartUpload"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
48  inline const Aws::String& GetAccountId() const{ return m_accountId; }
49 
57  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
58 
66  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
67 
75  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
76 
84  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
85 
93  inline InitiateMultipartUploadRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
94 
102  inline InitiateMultipartUploadRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
103 
111  inline InitiateMultipartUploadRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
112 
113 
117  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
118 
122  inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
123 
127  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
128 
132  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
133 
137  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
138 
142  inline InitiateMultipartUploadRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
143 
147  inline InitiateMultipartUploadRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
148 
152  inline InitiateMultipartUploadRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
153 
154 
161  inline const Aws::String& GetArchiveDescription() const{ return m_archiveDescription; }
162 
169  inline bool ArchiveDescriptionHasBeenSet() const { return m_archiveDescriptionHasBeenSet; }
170 
177  inline void SetArchiveDescription(const Aws::String& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = value; }
178 
185  inline void SetArchiveDescription(Aws::String&& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = std::move(value); }
186 
193  inline void SetArchiveDescription(const char* value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription.assign(value); }
194 
201  inline InitiateMultipartUploadRequest& WithArchiveDescription(const Aws::String& value) { SetArchiveDescription(value); return *this;}
202 
209  inline InitiateMultipartUploadRequest& WithArchiveDescription(Aws::String&& value) { SetArchiveDescription(std::move(value)); return *this;}
210 
217  inline InitiateMultipartUploadRequest& WithArchiveDescription(const char* value) { SetArchiveDescription(value); return *this;}
218 
219 
224  inline const Aws::String& GetPartSize() const{ return m_partSize; }
225 
230  inline bool PartSizeHasBeenSet() const { return m_partSizeHasBeenSet; }
231 
236  inline void SetPartSize(const Aws::String& value) { m_partSizeHasBeenSet = true; m_partSize = value; }
237 
242  inline void SetPartSize(Aws::String&& value) { m_partSizeHasBeenSet = true; m_partSize = std::move(value); }
243 
248  inline void SetPartSize(const char* value) { m_partSizeHasBeenSet = true; m_partSize.assign(value); }
249 
254  inline InitiateMultipartUploadRequest& WithPartSize(const Aws::String& value) { SetPartSize(value); return *this;}
255 
260  inline InitiateMultipartUploadRequest& WithPartSize(Aws::String&& value) { SetPartSize(std::move(value)); return *this;}
261 
266  inline InitiateMultipartUploadRequest& WithPartSize(const char* value) { SetPartSize(value); return *this;}
267 
268  private:
269 
270  Aws::String m_accountId;
271  bool m_accountIdHasBeenSet;
272 
273  Aws::String m_vaultName;
274  bool m_vaultNameHasBeenSet;
275 
276  Aws::String m_archiveDescription;
277  bool m_archiveDescriptionHasBeenSet;
278 
279  Aws::String m_partSize;
280  bool m_partSizeHasBeenSet;
281  };
282 
283 } // namespace Model
284 } // namespace Glacier
285 } // namespace Aws
Aws::Glacier::Model::InitiateMultipartUploadRequest::SetVaultName
void SetVaultName(const char *value)
Definition: InitiateMultipartUploadRequest.h:137
Aws::Glacier::Model::InitiateMultipartUploadRequest::GetVaultName
const Aws::String & GetVaultName() const
Definition: InitiateMultipartUploadRequest.h:117
Aws::Glacier::Model::InitiateMultipartUploadRequest::SetArchiveDescription
void SetArchiveDescription(const Aws::String &value)
Definition: InitiateMultipartUploadRequest.h:177
Aws::Glacier::Model::InitiateMultipartUploadRequest::WithVaultName
InitiateMultipartUploadRequest & WithVaultName(const Aws::String &value)
Definition: InitiateMultipartUploadRequest.h:142
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Glacier::Model::InitiateMultipartUploadRequest::SetPartSize
void SetPartSize(const char *value)
Definition: InitiateMultipartUploadRequest.h:248
Aws::Glacier::Model::InitiateMultipartUploadRequest::SetVaultName
void SetVaultName(const Aws::String &value)
Definition: InitiateMultipartUploadRequest.h:127
Aws::Glacier::Model::InitiateMultipartUploadRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: InitiateMultipartUploadRequest.h:34
Aws::Glacier::Model::InitiateMultipartUploadRequest
Definition: InitiateMultipartUploadRequest.h:26
Aws::Glacier::Model::InitiateMultipartUploadRequest::PartSizeHasBeenSet
bool PartSizeHasBeenSet() const
Definition: InitiateMultipartUploadRequest.h:230
Aws::Glacier::Model::InitiateMultipartUploadRequest::VaultNameHasBeenSet
bool VaultNameHasBeenSet() const
Definition: InitiateMultipartUploadRequest.h:122
Aws::Glacier::Model::InitiateMultipartUploadRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: InitiateMultipartUploadRequest.h:57
Aws::Glacier::Model::InitiateMultipartUploadRequest::SetPartSize
void SetPartSize(Aws::String &&value)
Definition: InitiateMultipartUploadRequest.h:242
Aws::Glacier::Model::InitiateMultipartUploadRequest::WithVaultName
InitiateMultipartUploadRequest & WithVaultName(const char *value)
Definition: InitiateMultipartUploadRequest.h:152
Aws::Glacier::Model::InitiateMultipartUploadRequest::WithPartSize
InitiateMultipartUploadRequest & WithPartSize(const char *value)
Definition: InitiateMultipartUploadRequest.h:266
Aws::Glacier::Model::InitiateMultipartUploadRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Glacier::GlacierRequest
Definition: GlacierRequest.h:18
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::InitiateMultipartUploadRequest::ArchiveDescriptionHasBeenSet
bool ArchiveDescriptionHasBeenSet() const
Definition: InitiateMultipartUploadRequest.h:169
Aws::Glacier::Model::InitiateMultipartUploadRequest::WithArchiveDescription
InitiateMultipartUploadRequest & WithArchiveDescription(const char *value)
Definition: InitiateMultipartUploadRequest.h:217
Aws::Glacier::Model::InitiateMultipartUploadRequest::SetArchiveDescription
void SetArchiveDescription(Aws::String &&value)
Definition: InitiateMultipartUploadRequest.h:185
Aws::Glacier::Model::InitiateMultipartUploadRequest::GetPartSize
const Aws::String & GetPartSize() const
Definition: InitiateMultipartUploadRequest.h:224
Aws::Glacier::Model::InitiateMultipartUploadRequest::WithAccountId
InitiateMultipartUploadRequest & WithAccountId(const Aws::String &value)
Definition: InitiateMultipartUploadRequest.h:93
Aws::Glacier::Model::InitiateMultipartUploadRequest::SetPartSize
void SetPartSize(const Aws::String &value)
Definition: InitiateMultipartUploadRequest.h:236
Aws::Glacier::Model::InitiateMultipartUploadRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: InitiateMultipartUploadRequest.h:66
Aws::Glacier::Model::InitiateMultipartUploadRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Glacier::Model::InitiateMultipartUploadRequest::WithArchiveDescription
InitiateMultipartUploadRequest & WithArchiveDescription(Aws::String &&value)
Definition: InitiateMultipartUploadRequest.h:209
AWSString.h
Aws::Glacier::Model::InitiateMultipartUploadRequest::WithArchiveDescription
InitiateMultipartUploadRequest & WithArchiveDescription(const Aws::String &value)
Definition: InitiateMultipartUploadRequest.h:201
GlacierRequest.h
Aws::Glacier::Model::InitiateMultipartUploadRequest::WithPartSize
InitiateMultipartUploadRequest & WithPartSize(Aws::String &&value)
Definition: InitiateMultipartUploadRequest.h:260
Aws::Glacier::Model::InitiateMultipartUploadRequest::WithAccountId
InitiateMultipartUploadRequest & WithAccountId(const char *value)
Definition: InitiateMultipartUploadRequest.h:111
Aws::Glacier::Model::InitiateMultipartUploadRequest::GetArchiveDescription
const Aws::String & GetArchiveDescription() const
Definition: InitiateMultipartUploadRequest.h:161
Aws::Glacier::Model::InitiateMultipartUploadRequest::WithVaultName
InitiateMultipartUploadRequest & WithVaultName(Aws::String &&value)
Definition: InitiateMultipartUploadRequest.h:147
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::InitiateMultipartUploadRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: InitiateMultipartUploadRequest.h:48
Aws::Glacier::Model::InitiateMultipartUploadRequest::SetAccountId
void SetAccountId(const char *value)
Definition: InitiateMultipartUploadRequest.h:84
Aws::Glacier::Model::InitiateMultipartUploadRequest::SetArchiveDescription
void SetArchiveDescription(const char *value)
Definition: InitiateMultipartUploadRequest.h:193
Aws::Glacier::Model::InitiateMultipartUploadRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: InitiateMultipartUploadRequest.h:75
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::InitiateMultipartUploadRequest::WithPartSize
InitiateMultipartUploadRequest & WithPartSize(const Aws::String &value)
Definition: InitiateMultipartUploadRequest.h:254
Aws::Glacier::Model::InitiateMultipartUploadRequest::InitiateMultipartUploadRequest
InitiateMultipartUploadRequest()
Aws::Glacier::Model::InitiateMultipartUploadRequest::WithAccountId
InitiateMultipartUploadRequest & WithAccountId(Aws::String &&value)
Definition: InitiateMultipartUploadRequest.h:102
Aws::Glacier::Model::InitiateMultipartUploadRequest::SetVaultName
void SetVaultName(Aws::String &&value)
Definition: InitiateMultipartUploadRequest.h:132
Glacier_EXPORTS.h