AWS SDK for C++  1.9.40
AWS SDK for C++
GetRegexPatternSetRequest.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 "GetRegexPatternSet"; }
32 
33  Aws::String SerializePayload() const override;
34 
36 
37 
41  inline const Aws::String& GetName() const{ return m_name; }
42 
46  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 
51  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 
56  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 
61  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
62 
66  inline GetRegexPatternSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
67 
71  inline GetRegexPatternSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
72 
76  inline GetRegexPatternSetRequest& WithName(const char* value) { SetName(value); return *this;}
77 
78 
88  inline const Scope& GetScope() const{ return m_scope; }
89 
99  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
100 
110  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
111 
121  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
122 
132  inline GetRegexPatternSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
133 
143  inline GetRegexPatternSetRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
144 
145 
151  inline const Aws::String& GetId() const{ return m_id; }
152 
158  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
159 
165  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
166 
172  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
173 
179  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
180 
186  inline GetRegexPatternSetRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
187 
193  inline GetRegexPatternSetRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
194 
200  inline GetRegexPatternSetRequest& WithId(const char* value) { SetId(value); return *this;}
201 
202  private:
203 
204  Aws::String m_name;
205  bool m_nameHasBeenSet;
206 
207  Scope m_scope;
208  bool m_scopeHasBeenSet;
209 
210  Aws::String m_id;
211  bool m_idHasBeenSet;
212  };
213 
214 } // namespace Model
215 } // namespace WAFV2
216 } // namespace Aws
WAFV2Request.h
Scope.h
Aws::WAFV2::Model::GetRegexPatternSetRequest::WithName
GetRegexPatternSetRequest & WithName(const char *value)
Definition: GetRegexPatternSetRequest.h:76
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFV2::Model::GetRegexPatternSetRequest::WithScope
GetRegexPatternSetRequest & WithScope(Scope &&value)
Definition: GetRegexPatternSetRequest.h:143
Aws::WAFV2::Model::GetRegexPatternSetRequest::WithId
GetRegexPatternSetRequest & WithId(const Aws::String &value)
Definition: GetRegexPatternSetRequest.h:186
Aws::WAFV2::Model::GetRegexPatternSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFV2::Model::GetRegexPatternSetRequest::WithId
GetRegexPatternSetRequest & WithId(Aws::String &&value)
Definition: GetRegexPatternSetRequest.h:193
Aws::WAFV2::Model::GetRegexPatternSetRequest::SetScope
void SetScope(const Scope &value)
Definition: GetRegexPatternSetRequest.h:110
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::GetRegexPatternSetRequest::GetName
const Aws::String & GetName() const
Definition: GetRegexPatternSetRequest.h:41
Aws::WAFV2::Model::GetRegexPatternSetRequest::GetScope
const Scope & GetScope() const
Definition: GetRegexPatternSetRequest.h:88
WAFV2_EXPORTS.h
Aws::WAFV2::Model::GetRegexPatternSetRequest::SetScope
void SetScope(Scope &&value)
Definition: GetRegexPatternSetRequest.h:121
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::GetRegexPatternSetRequest::GetId
const Aws::String & GetId() const
Definition: GetRegexPatternSetRequest.h:151
Aws::WAFV2::Model::GetRegexPatternSetRequest::SetName
void SetName(const char *value)
Definition: GetRegexPatternSetRequest.h:61
Aws::WAFV2::Model::GetRegexPatternSetRequest::WithScope
GetRegexPatternSetRequest & WithScope(const Scope &value)
Definition: GetRegexPatternSetRequest.h:132
Aws::WAFV2::Model::GetRegexPatternSetRequest::SetId
void SetId(const Aws::String &value)
Definition: GetRegexPatternSetRequest.h:165
Aws::WAFV2::Model::GetRegexPatternSetRequest::GetRegexPatternSetRequest
GetRegexPatternSetRequest()
Aws::WAFV2::Model::GetRegexPatternSetRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: GetRegexPatternSetRequest.h:99
AWSString.h
Aws::WAFV2::Model::GetRegexPatternSetRequest::SetId
void SetId(Aws::String &&value)
Definition: GetRegexPatternSetRequest.h:172
Aws::WAFV2::Model::GetRegexPatternSetRequest
Definition: GetRegexPatternSetRequest.h:23
Aws::WAFV2::Model::GetRegexPatternSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetRegexPatternSetRequest.h:31
Aws::WAFV2::Model::GetRegexPatternSetRequest::SetName
void SetName(Aws::String &&value)
Definition: GetRegexPatternSetRequest.h:56
Aws::WAFV2::Model::GetRegexPatternSetRequest::SetName
void SetName(const Aws::String &value)
Definition: GetRegexPatternSetRequest.h:51
Aws::WAFV2::Model::GetRegexPatternSetRequest::SetId
void SetId(const char *value)
Definition: GetRegexPatternSetRequest.h:179
Aws::WAFV2::Model::GetRegexPatternSetRequest::WithName
GetRegexPatternSetRequest & WithName(const Aws::String &value)
Definition: GetRegexPatternSetRequest.h:66
Aws::WAFV2::Model::GetRegexPatternSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFV2::Model::GetRegexPatternSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: GetRegexPatternSetRequest.h:46
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::GetRegexPatternSetRequest::WithId
GetRegexPatternSetRequest & WithId(const char *value)
Definition: GetRegexPatternSetRequest.h:200
Aws::WAFV2::Model::Scope
Scope
Definition: Scope.h:17
Aws::WAFV2::Model::GetRegexPatternSetRequest::WithName
GetRegexPatternSetRequest & WithName(Aws::String &&value)
Definition: GetRegexPatternSetRequest.h:71
Aws::WAFV2::Model::GetRegexPatternSetRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: GetRegexPatternSetRequest.h:158