AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
UploadArchiveRequest.h
1
6#pragma once
7#include <aws/core/utils/Array.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/glacier/GlacierRequest.h>
10#include <aws/glacier/Glacier_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Glacier {
16namespace Model {
17
24 public:
25 AWS_GLACIER_API UploadArchiveRequest() = 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 "UploadArchive"; }
32
34
36
39 inline const Aws::String& GetVaultName() const { return m_vaultName; }
40 inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
41 template <typename VaultNameT = Aws::String>
42 void SetVaultName(VaultNameT&& value) {
43 m_vaultNameHasBeenSet = true;
44 m_vaultName = std::forward<VaultNameT>(value);
45 }
46 template <typename VaultNameT = Aws::String>
47 UploadArchiveRequest& WithVaultName(VaultNameT&& value) {
48 SetVaultName(std::forward<VaultNameT>(value));
49 return *this;
50 }
52
54
61 inline const Aws::String& GetAccountId() const { return m_accountId; }
62 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
63 template <typename AccountIdT = Aws::String>
64 void SetAccountId(AccountIdT&& value) {
65 m_accountIdHasBeenSet = true;
66 m_accountId = std::forward<AccountIdT>(value);
67 }
68 template <typename AccountIdT = Aws::String>
69 UploadArchiveRequest& WithAccountId(AccountIdT&& value) {
70 SetAccountId(std::forward<AccountIdT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetArchiveDescription() const { return m_archiveDescription; }
80 inline bool ArchiveDescriptionHasBeenSet() const { return m_archiveDescriptionHasBeenSet; }
81 template <typename ArchiveDescriptionT = Aws::String>
82 void SetArchiveDescription(ArchiveDescriptionT&& value) {
83 m_archiveDescriptionHasBeenSet = true;
84 m_archiveDescription = std::forward<ArchiveDescriptionT>(value);
85 }
86 template <typename ArchiveDescriptionT = Aws::String>
87 UploadArchiveRequest& WithArchiveDescription(ArchiveDescriptionT&& value) {
88 SetArchiveDescription(std::forward<ArchiveDescriptionT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetChecksum() const { return m_checksum; }
98 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
99 template <typename ChecksumT = Aws::String>
100 void SetChecksum(ChecksumT&& value) {
101 m_checksumHasBeenSet = true;
102 m_checksum = std::forward<ChecksumT>(value);
103 }
104 template <typename ChecksumT = Aws::String>
105 UploadArchiveRequest& WithChecksum(ChecksumT&& value) {
106 SetChecksum(std::forward<ChecksumT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_vaultName;
112
113 Aws::String m_accountId;
114
115 Aws::String m_archiveDescription;
116
117 Aws::String m_checksum;
118
119 bool m_vaultNameHasBeenSet = false;
120 bool m_accountIdHasBeenSet = false;
121 bool m_archiveDescriptionHasBeenSet = false;
122 bool m_checksumHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Glacier
127} // namespace Aws
AWS_GLACIER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GLACIER_API UploadArchiveRequest()=default
void SetArchiveDescription(ArchiveDescriptionT &&value)
virtual const char * GetServiceRequestName() const override
UploadArchiveRequest & WithAccountId(AccountIdT &&value)
UploadArchiveRequest & WithChecksum(ChecksumT &&value)
UploadArchiveRequest & WithArchiveDescription(ArchiveDescriptionT &&value)
const Aws::String & GetArchiveDescription() const
UploadArchiveRequest & WithVaultName(VaultNameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String