AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
InitiateMultipartUploadRequest.h
1
6#pragma once
7#include <aws/glacier/Glacier_EXPORTS.h>
8#include <aws/glacier/GlacierRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Glacier
15{
16namespace Model
17{
18
26 {
27 public:
28 AWS_GLACIER_API InitiateMultipartUploadRequest() = default;
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_GLACIER_API Aws::String SerializePayload() const override;
37
39
40
42
49 inline const Aws::String& GetAccountId() const { return m_accountId; }
50 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
51 template<typename AccountIdT = Aws::String>
52 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
53 template<typename AccountIdT = Aws::String>
54 InitiateMultipartUploadRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
56
58
61 inline const Aws::String& GetVaultName() const { return m_vaultName; }
62 inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
63 template<typename VaultNameT = Aws::String>
64 void SetVaultName(VaultNameT&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::forward<VaultNameT>(value); }
65 template<typename VaultNameT = Aws::String>
66 InitiateMultipartUploadRequest& WithVaultName(VaultNameT&& value) { SetVaultName(std::forward<VaultNameT>(value)); return *this;}
68
70
76 inline const Aws::String& GetArchiveDescription() const { return m_archiveDescription; }
77 inline bool ArchiveDescriptionHasBeenSet() const { return m_archiveDescriptionHasBeenSet; }
78 template<typename ArchiveDescriptionT = Aws::String>
79 void SetArchiveDescription(ArchiveDescriptionT&& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = std::forward<ArchiveDescriptionT>(value); }
80 template<typename ArchiveDescriptionT = Aws::String>
81 InitiateMultipartUploadRequest& WithArchiveDescription(ArchiveDescriptionT&& value) { SetArchiveDescription(std::forward<ArchiveDescriptionT>(value)); return *this;}
83
85
89 inline const Aws::String& GetPartSize() const { return m_partSize; }
90 inline bool PartSizeHasBeenSet() const { return m_partSizeHasBeenSet; }
91 template<typename PartSizeT = Aws::String>
92 void SetPartSize(PartSizeT&& value) { m_partSizeHasBeenSet = true; m_partSize = std::forward<PartSizeT>(value); }
93 template<typename PartSizeT = Aws::String>
94 InitiateMultipartUploadRequest& WithPartSize(PartSizeT&& value) { SetPartSize(std::forward<PartSizeT>(value)); return *this;}
96 private:
97
98 Aws::String m_accountId;
99 bool m_accountIdHasBeenSet = false;
100
101 Aws::String m_vaultName;
102 bool m_vaultNameHasBeenSet = false;
103
104 Aws::String m_archiveDescription;
105 bool m_archiveDescriptionHasBeenSet = false;
106
107 Aws::String m_partSize;
108 bool m_partSizeHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace Glacier
113} // namespace Aws
AWS_GLACIER_API Aws::String SerializePayload() const override
AWS_GLACIER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
InitiateMultipartUploadRequest & WithAccountId(AccountIdT &&value)
InitiateMultipartUploadRequest & WithPartSize(PartSizeT &&value)
AWS_GLACIER_API InitiateMultipartUploadRequest()=default
InitiateMultipartUploadRequest & WithVaultName(VaultNameT &&value)
InitiateMultipartUploadRequest & WithArchiveDescription(ArchiveDescriptionT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String