AWS SDK for C++  1.9.104
AWS SDK for C++
DeleteArchiveRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Glacier
15 {
16 namespace Model
17 {
18 
26  {
27  public:
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 "DeleteArchive"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
46  inline const Aws::String& GetAccountId() const{ return m_accountId; }
47 
55  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
56 
64  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
65 
73  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
74 
82  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
83 
91  inline DeleteArchiveRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
92 
100  inline DeleteArchiveRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
101 
109  inline DeleteArchiveRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;}
110 
111 
115  inline const Aws::String& GetVaultName() const{ return m_vaultName; }
116 
120  inline bool VaultNameHasBeenSet() const { return m_vaultNameHasBeenSet; }
121 
125  inline void SetVaultName(const Aws::String& value) { m_vaultNameHasBeenSet = true; m_vaultName = value; }
126 
130  inline void SetVaultName(Aws::String&& value) { m_vaultNameHasBeenSet = true; m_vaultName = std::move(value); }
131 
135  inline void SetVaultName(const char* value) { m_vaultNameHasBeenSet = true; m_vaultName.assign(value); }
136 
140  inline DeleteArchiveRequest& WithVaultName(const Aws::String& value) { SetVaultName(value); return *this;}
141 
145  inline DeleteArchiveRequest& WithVaultName(Aws::String&& value) { SetVaultName(std::move(value)); return *this;}
146 
150  inline DeleteArchiveRequest& WithVaultName(const char* value) { SetVaultName(value); return *this;}
151 
152 
156  inline const Aws::String& GetArchiveId() const{ return m_archiveId; }
157 
161  inline bool ArchiveIdHasBeenSet() const { return m_archiveIdHasBeenSet; }
162 
166  inline void SetArchiveId(const Aws::String& value) { m_archiveIdHasBeenSet = true; m_archiveId = value; }
167 
171  inline void SetArchiveId(Aws::String&& value) { m_archiveIdHasBeenSet = true; m_archiveId = std::move(value); }
172 
176  inline void SetArchiveId(const char* value) { m_archiveIdHasBeenSet = true; m_archiveId.assign(value); }
177 
181  inline DeleteArchiveRequest& WithArchiveId(const Aws::String& value) { SetArchiveId(value); return *this;}
182 
186  inline DeleteArchiveRequest& WithArchiveId(Aws::String&& value) { SetArchiveId(std::move(value)); return *this;}
187 
191  inline DeleteArchiveRequest& WithArchiveId(const char* value) { SetArchiveId(value); return *this;}
192 
193  private:
194 
195  Aws::String m_accountId;
196  bool m_accountIdHasBeenSet;
197 
198  Aws::String m_vaultName;
199  bool m_vaultNameHasBeenSet;
200 
201  Aws::String m_archiveId;
202  bool m_archiveIdHasBeenSet;
203  };
204 
205 } // namespace Model
206 } // namespace Glacier
207 } // namespace Aws
Aws::Glacier::Model::DeleteArchiveRequest::SetArchiveId
void SetArchiveId(const Aws::String &value)
Definition: DeleteArchiveRequest.h:166
Aws::Glacier::Model::DeleteArchiveRequest::SetVaultName
void SetVaultName(const Aws::String &value)
Definition: DeleteArchiveRequest.h:125
Aws::Glacier::Model::DeleteArchiveRequest::WithVaultName
DeleteArchiveRequest & WithVaultName(Aws::String &&value)
Definition: DeleteArchiveRequest.h:145
Aws::Glacier::Model::DeleteArchiveRequest::SetArchiveId
void SetArchiveId(Aws::String &&value)
Definition: DeleteArchiveRequest.h:171
Aws::Glacier::Model::DeleteArchiveRequest::WithArchiveId
DeleteArchiveRequest & WithArchiveId(const Aws::String &value)
Definition: DeleteArchiveRequest.h:181
Aws::Glacier::Model::DeleteArchiveRequest::SetAccountId
void SetAccountId(const char *value)
Definition: DeleteArchiveRequest.h:82
Aws::Glacier::Model::DeleteArchiveRequest
Definition: DeleteArchiveRequest.h:26
Aws::Glacier::Model::DeleteArchiveRequest::WithVaultName
DeleteArchiveRequest & WithVaultName(const Aws::String &value)
Definition: DeleteArchiveRequest.h:140
Aws::Glacier::Model::DeleteArchiveRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Glacier::Model::DeleteArchiveRequest::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: DeleteArchiveRequest.h:73
Aws::Glacier::Model::DeleteArchiveRequest::VaultNameHasBeenSet
bool VaultNameHasBeenSet() const
Definition: DeleteArchiveRequest.h:120
Aws::Glacier::GlacierRequest
Definition: GlacierRequest.h:18
Aws::Glacier::Model::DeleteArchiveRequest::GetVaultName
const Aws::String & GetVaultName() const
Definition: DeleteArchiveRequest.h:115
AWS_GLACIER_API
#define AWS_GLACIER_API
Definition: Glacier_EXPORTS.h:28
Aws::Glacier::Model::DeleteArchiveRequest::WithArchiveId
DeleteArchiveRequest & WithArchiveId(const char *value)
Definition: DeleteArchiveRequest.h:191
Aws::Glacier::Model::DeleteArchiveRequest::GetAccountId
const Aws::String & GetAccountId() const
Definition: DeleteArchiveRequest.h:46
Aws::Glacier::Model::DeleteArchiveRequest::SetVaultName
void SetVaultName(const char *value)
Definition: DeleteArchiveRequest.h:135
Aws::Glacier::Model::DeleteArchiveRequest::GetArchiveId
const Aws::String & GetArchiveId() const
Definition: DeleteArchiveRequest.h:156
Aws::Glacier::Model::DeleteArchiveRequest::WithAccountId
DeleteArchiveRequest & WithAccountId(const Aws::String &value)
Definition: DeleteArchiveRequest.h:91
Aws::Glacier::Model::DeleteArchiveRequest::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: DeleteArchiveRequest.h:64
AWSString.h
Aws::Glacier::Model::DeleteArchiveRequest::WithArchiveId
DeleteArchiveRequest & WithArchiveId(Aws::String &&value)
Definition: DeleteArchiveRequest.h:186
Aws::Glacier::Model::DeleteArchiveRequest::WithAccountId
DeleteArchiveRequest & WithAccountId(const char *value)
Definition: DeleteArchiveRequest.h:109
GlacierRequest.h
Aws::Glacier::Model::DeleteArchiveRequest::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: DeleteArchiveRequest.h:55
Aws
Definition: AccessManagementClient.h:15
Aws::Glacier::Model::DeleteArchiveRequest::WithVaultName
DeleteArchiveRequest & WithVaultName(const char *value)
Definition: DeleteArchiveRequest.h:150
Aws::Glacier::Model::DeleteArchiveRequest::DeleteArchiveRequest
DeleteArchiveRequest()
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Glacier::Model::DeleteArchiveRequest::WithAccountId
DeleteArchiveRequest & WithAccountId(Aws::String &&value)
Definition: DeleteArchiveRequest.h:100
Aws::Glacier::Model::DeleteArchiveRequest::SetArchiveId
void SetArchiveId(const char *value)
Definition: DeleteArchiveRequest.h:176
Aws::Glacier::Model::DeleteArchiveRequest::ArchiveIdHasBeenSet
bool ArchiveIdHasBeenSet() const
Definition: DeleteArchiveRequest.h:161
Aws::Glacier::Model::DeleteArchiveRequest::SetVaultName
void SetVaultName(Aws::String &&value)
Definition: DeleteArchiveRequest.h:130
Aws::Glacier::Model::DeleteArchiveRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteArchiveRequest.h:34
Glacier_EXPORTS.h