AWS SDK for C++

AWS SDK for C++ Version 1.11.931

Loading...
Searching...
No Matches
DeleteRuleGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wafv2/WAFV2Request.h>
9#include <aws/wafv2/WAFV2_EXPORTS.h>
10#include <aws/wafv2/model/Scope.h>
11
12#include <utility>
13
14namespace Aws {
15namespace WAFV2 {
16namespace Model {
17
21 public:
22 AWS_WAFV2_API DeleteRuleGroupRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DeleteRuleGroup"; }
29
30 AWS_WAFV2_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
63 inline Scope GetScope() const { return m_scope; }
64 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
65 inline void SetScope(Scope value) {
66 m_scopeHasBeenSet = true;
67 m_scope = value;
68 }
70 SetScope(value);
71 return *this;
72 }
74
76
81 inline const Aws::String& GetId() const { return m_id; }
82 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
83 template <typename IdT = Aws::String>
84 void SetId(IdT&& value) {
85 m_idHasBeenSet = true;
86 m_id = std::forward<IdT>(value);
87 }
88 template <typename IdT = Aws::String>
90 SetId(std::forward<IdT>(value));
91 return *this;
92 }
94
96
106 inline const Aws::String& GetLockToken() const { return m_lockToken; }
107 inline bool LockTokenHasBeenSet() const { return m_lockTokenHasBeenSet; }
108 template <typename LockTokenT = Aws::String>
109 void SetLockToken(LockTokenT&& value) {
110 m_lockTokenHasBeenSet = true;
111 m_lockToken = std::forward<LockTokenT>(value);
112 }
113 template <typename LockTokenT = Aws::String>
115 SetLockToken(std::forward<LockTokenT>(value));
116 return *this;
117 }
119 private:
120 Aws::String m_name;
121
122 Scope m_scope{Scope::NOT_SET};
123
124 Aws::String m_id;
125
126 Aws::String m_lockToken;
127 bool m_nameHasBeenSet = false;
128 bool m_scopeHasBeenSet = false;
129 bool m_idHasBeenSet = false;
130 bool m_lockTokenHasBeenSet = false;
131};
132
133} // namespace Model
134} // namespace WAFV2
135} // namespace Aws
AWS_WAFV2_API Aws::String SerializePayload() const override
DeleteRuleGroupRequest & WithId(IdT &&value)
DeleteRuleGroupRequest & WithScope(Scope value)
DeleteRuleGroupRequest & WithName(NameT &&value)
DeleteRuleGroupRequest & WithLockToken(LockTokenT &&value)
AWS_WAFV2_API DeleteRuleGroupRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_WAFV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String