AWS SDK for C++  1.9.108
AWS SDK for C++
GetRuleGroupRequest.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 "GetRuleGroup"; }
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 GetRuleGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
78  inline GetRuleGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 
84  inline GetRuleGroupRequest& 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 GetRuleGroupRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
146 
157  inline GetRuleGroupRequest& 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 GetRuleGroupRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
201 
207  inline GetRuleGroupRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
208 
214  inline GetRuleGroupRequest& WithId(const char* value) { SetId(value); return *this;}
215 
216 
220  inline const Aws::String& GetARN() const{ return m_aRN; }
221 
225  inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
226 
230  inline void SetARN(const Aws::String& value) { m_aRNHasBeenSet = true; m_aRN = value; }
231 
235  inline void SetARN(Aws::String&& value) { m_aRNHasBeenSet = true; m_aRN = std::move(value); }
236 
240  inline void SetARN(const char* value) { m_aRNHasBeenSet = true; m_aRN.assign(value); }
241 
245  inline GetRuleGroupRequest& WithARN(const Aws::String& value) { SetARN(value); return *this;}
246 
250  inline GetRuleGroupRequest& WithARN(Aws::String&& value) { SetARN(std::move(value)); return *this;}
251 
255  inline GetRuleGroupRequest& WithARN(const char* value) { SetARN(value); return *this;}
256 
257  private:
258 
259  Aws::String m_name;
260  bool m_nameHasBeenSet;
261 
262  Scope m_scope;
263  bool m_scopeHasBeenSet;
264 
265  Aws::String m_id;
266  bool m_idHasBeenSet;
267 
268  Aws::String m_aRN;
269  bool m_aRNHasBeenSet;
270  };
271 
272 } // namespace Model
273 } // namespace WAFV2
274 } // namespace Aws
WAFV2Request.h
Aws::WAFV2::Model::GetRuleGroupRequest::SetScope
void SetScope(const Scope &value)
Definition: GetRuleGroupRequest.h:121
Scope.h
Aws::WAFV2::Model::GetRuleGroupRequest::GetName
const Aws::String & GetName() const
Definition: GetRuleGroupRequest.h:42
Aws::WAFV2::Model::GetRuleGroupRequest::SetARN
void SetARN(Aws::String &&value)
Definition: GetRuleGroupRequest.h:235
Aws::WAFV2::Model::GetRuleGroupRequest::SetARN
void SetARN(const Aws::String &value)
Definition: GetRuleGroupRequest.h:230
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFV2::Model::GetRuleGroupRequest::SetId
void SetId(const char *value)
Definition: GetRuleGroupRequest.h:193
Aws::WAFV2::Model::GetRuleGroupRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: GetRuleGroupRequest.h:109
Aws::WAFV2::Model::GetRuleGroupRequest::ARNHasBeenSet
bool ARNHasBeenSet() const
Definition: GetRuleGroupRequest.h:225
Aws::WAFV2::Model::GetRuleGroupRequest::GetRuleGroupRequest
GetRuleGroupRequest()
Aws::WAFV2::Model::GetRuleGroupRequest::GetARN
const Aws::String & GetARN() const
Definition: GetRuleGroupRequest.h:220
Aws::WAFV2::Model::GetRuleGroupRequest::SetName
void SetName(const char *value)
Definition: GetRuleGroupRequest.h:66
Aws::WAFV2::Model::GetRuleGroupRequest::WithScope
GetRuleGroupRequest & WithScope(const Scope &value)
Definition: GetRuleGroupRequest.h:145
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::GetRuleGroupRequest::WithId
GetRuleGroupRequest & WithId(const char *value)
Definition: GetRuleGroupRequest.h:214
Aws::WAFV2::Model::GetRuleGroupRequest::WithARN
GetRuleGroupRequest & WithARN(const char *value)
Definition: GetRuleGroupRequest.h:255
Aws::WAFV2::Model::GetRuleGroupRequest::GetId
const Aws::String & GetId() const
Definition: GetRuleGroupRequest.h:165
WAFV2_EXPORTS.h
Aws::WAFV2::Model::GetRuleGroupRequest::WithName
GetRuleGroupRequest & WithName(const Aws::String &value)
Definition: GetRuleGroupRequest.h:72
Aws::WAFV2::Model::GetRuleGroupRequest::WithName
GetRuleGroupRequest & WithName(Aws::String &&value)
Definition: GetRuleGroupRequest.h:78
Aws::WAFV2::Model::GetRuleGroupRequest::SetName
void SetName(const Aws::String &value)
Definition: GetRuleGroupRequest.h:54
Aws::WAFV2::Model::GetRuleGroupRequest::SetId
void SetId(Aws::String &&value)
Definition: GetRuleGroupRequest.h:186
Aws::WAFV2::Model::GetRuleGroupRequest::SetScope
void SetScope(Scope &&value)
Definition: GetRuleGroupRequest.h:133
Aws::WAFV2::Model::GetRuleGroupRequest::SetName
void SetName(Aws::String &&value)
Definition: GetRuleGroupRequest.h:60
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::GetRuleGroupRequest::SetARN
void SetARN(const char *value)
Definition: GetRuleGroupRequest.h:240
Aws::WAFV2::Model::GetRuleGroupRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFV2::Model::GetRuleGroupRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetRuleGroupRequest.h:31
Aws::WAFV2::Model::GetRuleGroupRequest::WithId
GetRuleGroupRequest & WithId(const Aws::String &value)
Definition: GetRuleGroupRequest.h:200
AWSString.h
Aws::WAFV2::Model::GetRuleGroupRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: GetRuleGroupRequest.h:48
Aws::WAFV2::Model::GetRuleGroupRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::GetRuleGroupRequest::WithName
GetRuleGroupRequest & WithName(const char *value)
Definition: GetRuleGroupRequest.h:84
Aws::WAFV2::Model::GetRuleGroupRequest::SetId
void SetId(const Aws::String &value)
Definition: GetRuleGroupRequest.h:179
Aws::WAFV2::Model::GetRuleGroupRequest::WithId
GetRuleGroupRequest & WithId(Aws::String &&value)
Definition: GetRuleGroupRequest.h:207
Aws::WAFV2::Model::GetRuleGroupRequest::WithARN
GetRuleGroupRequest & WithARN(const Aws::String &value)
Definition: GetRuleGroupRequest.h:245
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::GetRuleGroupRequest::GetScope
const Scope & GetScope() const
Definition: GetRuleGroupRequest.h:97
Aws::WAFV2::Model::GetRuleGroupRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: GetRuleGroupRequest.h:172
Aws::WAFV2::Model::Scope
Scope
Definition: Scope.h:17
Aws::WAFV2::Model::GetRuleGroupRequest::WithScope
GetRuleGroupRequest & WithScope(Scope &&value)
Definition: GetRuleGroupRequest.h:157
Aws::WAFV2::Model::GetRuleGroupRequest::WithARN
GetRuleGroupRequest & WithARN(Aws::String &&value)
Definition: GetRuleGroupRequest.h:250
Aws::WAFV2::Model::GetRuleGroupRequest
Definition: GetRuleGroupRequest.h:23