AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
DeleteArchiveRequest.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 DeleteArchiveRequest() = 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 "DeleteArchive"; }
32
33 AWS_GLACIER_API Aws::String SerializePayload() const override;
34
36
43 inline const Aws::String& GetAccountId() const { return m_accountId; }
44 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
45 template <typename AccountIdT = Aws::String>
46 void SetAccountId(AccountIdT&& value) {
47 m_accountIdHasBeenSet = true;
48 m_accountId = std::forward<AccountIdT>(value);
49 }
50 template <typename AccountIdT = Aws::String>
51 DeleteArchiveRequest& WithAccountId(AccountIdT&& value) {
52 SetAccountId(std::forward<AccountIdT>(value));
53 return *this;
54 }
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) {
65 m_vaultNameHasBeenSet = true;
66 m_vaultName = std::forward<VaultNameT>(value);
67 }
68 template <typename VaultNameT = Aws::String>
69 DeleteArchiveRequest& WithVaultName(VaultNameT&& value) {
70 SetVaultName(std::forward<VaultNameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetArchiveId() const { return m_archiveId; }
80 inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; }
81 template <typename ArchiveIdT = Aws::String>
82 void SetArchiveId(ArchiveIdT&& value) {
83 m_archiveIdHasBeenSet = true;
84 m_archiveId = std::forward<ArchiveIdT>(value);
85 }
86 template <typename ArchiveIdT = Aws::String>
87 DeleteArchiveRequest& WithArchiveId(ArchiveIdT&& value) {
88 SetArchiveId(std::forward<ArchiveIdT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_accountId;
94
95 Aws::String m_vaultName;
96
97 Aws::String m_archiveId;
98 bool m_accountIdHasBeenSet = false;
99 bool m_vaultNameHasBeenSet = false;
100 bool m_archiveIdHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace Glacier
105} // namespace Aws
DeleteArchiveRequest & WithVaultName(VaultNameT &&value)
DeleteArchiveRequest & WithArchiveId(ArchiveIdT &&value)
AWS_GLACIER_API DeleteArchiveRequest()=default
DeleteArchiveRequest & WithAccountId(AccountIdT &&value)
AWS_GLACIER_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String