AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
InitiateMultipartUploadRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/glacier/GlacierRequest.h>
9#include <aws/glacier/Glacier_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Glacier {
15namespace Model {
16
24 public:
25 AWS_GLACIER_API InitiateMultipartUploadRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "InitiateMultipartUpload"; }
32
33 AWS_GLACIER_API Aws::String SerializePayload() const override;
34
36
38
45 inline const Aws::String& GetAccountId() const { return m_accountId; }
46 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
47 template <typename AccountIdT = Aws::String>
48 void SetAccountId(AccountIdT&& value) {
49 m_accountIdHasBeenSet = true;
50 m_accountId = std::forward<AccountIdT>(value);
51 }
52 template <typename AccountIdT = Aws::String>
54 SetAccountId(std::forward<AccountIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetVaultName() const { return m_vaultName; }
64 inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
65 template <typename VaultNameT = Aws::String>
66 void SetVaultName(VaultNameT&& value) {
67 m_vaultNameHasBeenSet = true;
68 m_vaultName = std::forward<VaultNameT>(value);
69 }
70 template <typename VaultNameT = Aws::String>
72 SetVaultName(std::forward<VaultNameT>(value));
73 return *this;
74 }
76
78
84 inline const Aws::String& GetArchiveDescription() const { return m_archiveDescription; }
85 inline bool ArchiveDescriptionHasBeenSet() const { return m_archiveDescriptionHasBeenSet; }
86 template <typename ArchiveDescriptionT = Aws::String>
87 void SetArchiveDescription(ArchiveDescriptionT&& value) {
88 m_archiveDescriptionHasBeenSet = true;
89 m_archiveDescription = std::forward<ArchiveDescriptionT>(value);
90 }
91 template <typename ArchiveDescriptionT = Aws::String>
93 SetArchiveDescription(std::forward<ArchiveDescriptionT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetPartSize() const { return m_partSize; }
104 inline bool PartSizeHasBeenSet() const { return m_partSizeHasBeenSet; }
105 template <typename PartSizeT = Aws::String>
106 void SetPartSize(PartSizeT&& value) {
107 m_partSizeHasBeenSet = true;
108 m_partSize = std::forward<PartSizeT>(value);
109 }
110 template <typename PartSizeT = Aws::String>
112 SetPartSize(std::forward<PartSizeT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_accountId;
118
119 Aws::String m_vaultName;
120
121 Aws::String m_archiveDescription;
122
123 Aws::String m_partSize;
124 bool m_accountIdHasBeenSet = false;
125 bool m_vaultNameHasBeenSet = false;
126 bool m_archiveDescriptionHasBeenSet = false;
127 bool m_partSizeHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace Glacier
132} // 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