AWS SDK for C++  1.9.106
AWS SDK for C++
DeleteWebACLRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <aws/wafv2/model/Scope.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace WAFV2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
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 "DeleteWebACL"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
42  inline const Aws::String& GetName() const{ return m_name; }
43 
48  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49 
54  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
55 
60  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
61 
66  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
67 
72  inline DeleteWebACLRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
78  inline DeleteWebACLRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 
84  inline DeleteWebACLRequest& WithName(const char* value) { SetName(value); return *this;}
85 
86 
97  inline const Scope& GetScope() const{ return m_scope; }
98 
109  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
110 
121  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
122 
133  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
134 
145  inline DeleteWebACLRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
146 
157  inline DeleteWebACLRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
158 
159 
165  inline const Aws::String& GetId() const{ return m_id; }
166 
172  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
173 
179  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
180 
186  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
187 
193  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
194 
200  inline DeleteWebACLRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
201 
207  inline DeleteWebACLRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
208 
214  inline DeleteWebACLRequest& WithId(const char* value) { SetId(value); return *this;}
215 
216 
227  inline const Aws::String& GetLockToken() const{ return m_lockToken; }
228 
239  inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
240 
251  inline void SetLockToken(const Aws::String& value) { m_lockTokenHasBeenSet = true; m_lockToken = value; }
252 
263  inline void SetLockToken(Aws::String&& value) { m_lockTokenHasBeenSet = true; m_lockToken = std::move(value); }
264 
275  inline void SetLockToken(const char* value) { m_lockTokenHasBeenSet = true; m_lockToken.assign(value); }
276 
287  inline DeleteWebACLRequest& WithLockToken(const Aws::String& value) { SetLockToken(value); return *this;}
288 
299  inline DeleteWebACLRequest& WithLockToken(Aws::String&& value) { SetLockToken(std::move(value)); return *this;}
300 
311  inline DeleteWebACLRequest& WithLockToken(const char* value) { SetLockToken(value); return *this;}
312 
313  private:
314 
315  Aws::String m_name;
316  bool m_nameHasBeenSet;
317 
318  Scope m_scope;
319  bool m_scopeHasBeenSet;
320 
321  Aws::String m_id;
322  bool m_idHasBeenSet;
323 
324  Aws::String m_lockToken;
325  bool m_lockTokenHasBeenSet;
326  };
327 
328 } // namespace Model
329 } // namespace WAFV2
330 } // namespace Aws
WAFV2Request.h
Scope.h
Aws::WAFV2::Model::DeleteWebACLRequest::WithId
DeleteWebACLRequest & WithId(const Aws::String &value)
Definition: DeleteWebACLRequest.h:200
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFV2::Model::DeleteWebACLRequest::SetLockToken
void SetLockToken(const char *value)
Definition: DeleteWebACLRequest.h:275
Aws::WAFV2::Model::DeleteWebACLRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFV2::Model::DeleteWebACLRequest::SetLockToken
void SetLockToken(Aws::String &&value)
Definition: DeleteWebACLRequest.h:263
Aws::WAFV2::Model::DeleteWebACLRequest::GetScope
const Scope & GetScope() const
Definition: DeleteWebACLRequest.h:97
Aws::WAFV2::Model::DeleteWebACLRequest::WithName
DeleteWebACLRequest & WithName(Aws::String &&value)
Definition: DeleteWebACLRequest.h:78
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::DeleteWebACLRequest
Definition: DeleteWebACLRequest.h:23
Aws::WAFV2::Model::DeleteWebACLRequest::SetScope
void SetScope(Scope &&value)
Definition: DeleteWebACLRequest.h:133
Aws::WAFV2::Model::DeleteWebACLRequest::SetId
void SetId(const Aws::String &value)
Definition: DeleteWebACLRequest.h:179
WAFV2_EXPORTS.h
Aws::WAFV2::Model::DeleteWebACLRequest::LockTokenHasBeenSet
bool LockTokenHasBeenSet() const
Definition: DeleteWebACLRequest.h:239
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::DeleteWebACLRequest::WithLockToken
DeleteWebACLRequest & WithLockToken(const char *value)
Definition: DeleteWebACLRequest.h:311
Aws::WAFV2::Model::DeleteWebACLRequest::WithName
DeleteWebACLRequest & WithName(const char *value)
Definition: DeleteWebACLRequest.h:84
Aws::WAFV2::Model::DeleteWebACLRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFV2::Model::DeleteWebACLRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: DeleteWebACLRequest.h:172
Aws::WAFV2::Model::DeleteWebACLRequest::SetName
void SetName(const Aws::String &value)
Definition: DeleteWebACLRequest.h:54
Aws::WAFV2::Model::DeleteWebACLRequest::WithName
DeleteWebACLRequest & WithName(const Aws::String &value)
Definition: DeleteWebACLRequest.h:72
AWSString.h
Aws::WAFV2::Model::DeleteWebACLRequest::SetName
void SetName(const char *value)
Definition: DeleteWebACLRequest.h:66
Aws::WAFV2::Model::DeleteWebACLRequest::SetLockToken
void SetLockToken(const Aws::String &value)
Definition: DeleteWebACLRequest.h:251
Aws::WAFV2::Model::DeleteWebACLRequest::SetId
void SetId(const char *value)
Definition: DeleteWebACLRequest.h:193
Aws::WAFV2::Model::DeleteWebACLRequest::GetName
const Aws::String & GetName() const
Definition: DeleteWebACLRequest.h:42
Aws::WAFV2::Model::DeleteWebACLRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DeleteWebACLRequest.h:48
Aws::WAFV2::Model::DeleteWebACLRequest::WithScope
DeleteWebACLRequest & WithScope(Scope &&value)
Definition: DeleteWebACLRequest.h:157
Aws::WAFV2::Model::DeleteWebACLRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteWebACLRequest.h:31
Aws::WAFV2::Model::DeleteWebACLRequest::WithLockToken
DeleteWebACLRequest & WithLockToken(Aws::String &&value)
Definition: DeleteWebACLRequest.h:299
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::DeleteWebACLRequest::WithId
DeleteWebACLRequest & WithId(Aws::String &&value)
Definition: DeleteWebACLRequest.h:207
Aws::WAFV2::Model::DeleteWebACLRequest::WithId
DeleteWebACLRequest & WithId(const char *value)
Definition: DeleteWebACLRequest.h:214
Aws::WAFV2::Model::DeleteWebACLRequest::SetId
void SetId(Aws::String &&value)
Definition: DeleteWebACLRequest.h:186
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::DeleteWebACLRequest::WithScope
DeleteWebACLRequest & WithScope(const Scope &value)
Definition: DeleteWebACLRequest.h:145
Aws::WAFV2::Model::DeleteWebACLRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: DeleteWebACLRequest.h:109
Aws::WAFV2::Model::DeleteWebACLRequest::SetName
void SetName(Aws::String &&value)
Definition: DeleteWebACLRequest.h:60
Aws::WAFV2::Model::Scope
Scope
Definition: Scope.h:17
Aws::WAFV2::Model::DeleteWebACLRequest::GetId
const Aws::String & GetId() const
Definition: DeleteWebACLRequest.h:165
Aws::WAFV2::Model::DeleteWebACLRequest::WithLockToken
DeleteWebACLRequest & WithLockToken(const Aws::String &value)
Definition: DeleteWebACLRequest.h:287
Aws::WAFV2::Model::DeleteWebACLRequest::GetLockToken
const Aws::String & GetLockToken() const
Definition: DeleteWebACLRequest.h:227
Aws::WAFV2::Model::DeleteWebACLRequest::DeleteWebACLRequest
DeleteWebACLRequest()
Aws::WAFV2::Model::DeleteWebACLRequest::SetScope
void SetScope(const Scope &value)
Definition: DeleteWebACLRequest.h:121