AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
46 inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
47 inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
48 inline UploadArchiveRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
49 inline UploadArchiveRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
50 inline UploadArchiveRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
52
54
61 inline const Aws::String& GetAccountId() const{ return m_accountId; }
62 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
63 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
64 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
65 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
66 inline UploadArchiveRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
67 inline UploadArchiveRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
68 inline UploadArchiveRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
70
72
75 inline const Aws::String& GetArchiveDescription() const{ return m_archiveDescription; }
76 inline bool ArchiveDescriptionHasBeenSet() const { return m_archiveDescriptionHasBeenSet; }
77 inline void SetArchiveDescription(const Aws::String& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = value; }
78 inline void SetArchiveDescription(Aws::String&& value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription = std::move(value); }
79 inline void SetArchiveDescription(const char* value) { m_archiveDescriptionHasBeenSet = true; m_archiveDescription.assign(value); }
81 inline UploadArchiveRequest& WithArchiveDescription(Aws::String&& value) { SetArchiveDescription(std::move(value)); return *this;}
82 inline UploadArchiveRequest& WithArchiveDescription(const char* value) { SetArchiveDescription(value); return *this;}
84
86
89 inline const Aws::String& GetChecksum() const{ return m_checksum; }
90 inline bool ChecksumHasBeenSet() const { return m_checksumHasBeenSet; }
91 inline void SetChecksum(const Aws::String& value) { m_checksumHasBeenSet = true; m_checksum = value; }
92 inline void SetChecksum(Aws::String&& value) { m_checksumHasBeenSet = true; m_checksum = std::move(value); }
93 inline void SetChecksum(const char* value) { m_checksumHasBeenSet = true; m_checksum.assign(value); }
94 inline UploadArchiveRequest& WithChecksum(const Aws::String& value) { SetChecksum(value); return *this;}
95 inline UploadArchiveRequest& WithChecksum(Aws::String&& value) { SetChecksum(std::move(value)); return *this;}
96 inline UploadArchiveRequest& WithChecksum(const char* value) { SetChecksum(value); return *this;}
98 private:
99
100 Aws::String m_vaultName;
101 bool m_vaultNameHasBeenSet = false;
102
103 Aws::String m_accountId;
104 bool m_accountIdHasBeenSet = false;
105
106 Aws::String m_archiveDescription;
107 bool m_archiveDescriptionHasBeenSet = false;
108
109 Aws::String m_checksum;
110 bool m_checksumHasBeenSet = false;
111
112 };
113
114} // namespace Model
115} // namespace Glacier
116} // namespace Aws
void SetArchiveDescription(const Aws::String &value)
AWS_GLACIER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UploadArchiveRequest & WithArchiveDescription(Aws::String &&value)
UploadArchiveRequest & WithVaultName(Aws::String &&value)
UploadArchiveRequest & WithAccountId(Aws::String &&value)
UploadArchiveRequest & WithChecksum(const Aws::String &value)
void SetChecksum(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UploadArchiveRequest & WithVaultName(const char *value)
UploadArchiveRequest & WithAccountId(const char *value)
UploadArchiveRequest & WithChecksum(Aws::String &&value)
UploadArchiveRequest & WithVaultName(const Aws::String &value)
UploadArchiveRequest & WithArchiveDescription(const char *value)
const Aws::String & GetArchiveDescription() const
void SetVaultName(const Aws::String &value)
void SetAccountId(const Aws::String &value)
UploadArchiveRequest & WithAccountId(const Aws::String &value)
UploadArchiveRequest & WithChecksum(const char *value)
UploadArchiveRequest & WithArchiveDescription(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String