AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UploadArchiveRequest.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 <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Glacier
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_GLACIER_API UploadArchiveRequest() = 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 "UploadArchive"; }
35
37
38
40
43 inline const Aws::String& GetVaultName() const { return m_vaultName; }
44 inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
45 template<typename VaultNameT = Aws::String>
46 void SetVaultName(VaultNameT&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::forward<VaultNameT>(value); }
47 template<typename VaultNameT = Aws::String>
48 UploadArchiveRequest& WithVaultName(VaultNameT&& value) { SetVaultName(std::forward<VaultNameT>(value)); return *this;}
50
52
59 inline const Aws::String& GetAccountId() const { return m_accountId; }
60 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
61 template<typename AccountIdT = Aws::String>
62 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
63 template<typename AccountIdT = Aws::String>
64 UploadArchiveRequest& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
66
68
71 inline const Aws::String& GetArchiveDescription() const { return m_archiveDescription; }
72 inline bool ArchiveDescriptionHasBeenSet() const { return m_archiveDescriptionHasBeenSet; }
73 template<typename ArchiveDescriptionT = Aws::String>
74 void SetArchiveDescription(ArchiveDescriptionT&& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = std::forward<ArchiveDescriptionT>(value); }
75 template<typename ArchiveDescriptionT = Aws::String>
76 UploadArchiveRequest& WithArchiveDescription(ArchiveDescriptionT&& value) { SetArchiveDescription(std::forward<ArchiveDescriptionT>(value)); return *this;}
78
80
83 inline const Aws::String& GetChecksum() const { return m_checksum; }
84 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
85 template<typename ChecksumT = Aws::String>
86 void SetChecksum(ChecksumT&& value) { m_checksumHasBeenSet = true; m_checksum = std::forward<ChecksumT>(value); }
87 template<typename ChecksumT = Aws::String>
88 UploadArchiveRequest& WithChecksum(ChecksumT&& value) { SetChecksum(std::forward<ChecksumT>(value)); return *this;}
90 private:
91
92 Aws::String m_vaultName;
93 bool m_vaultNameHasBeenSet = false;
94
95 Aws::String m_accountId;
96 bool m_accountIdHasBeenSet = false;
97
98 Aws::String m_archiveDescription;
99 bool m_archiveDescriptionHasBeenSet = false;
100
101 Aws::String m_checksum;
102 bool m_checksumHasBeenSet = false;
103
104 };
105
106} // namespace Model
107} // namespace Glacier
108} // 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