AWS SDK for C++  1.9.109
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 
89  inline const Scope& GetScope() const{ return m_scope; }
90 
101  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
102 
113  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
114 
125  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
126 
137  inline GetRegexPatternSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
138 
149  inline GetRegexPatternSetRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
150 
151 
157  inline const Aws::String& GetId() const{ return m_id; }
158 
164  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
165 
171  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
172 
178  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
179 
185  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
186 
192  inline GetRegexPatternSetRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
193 
199  inline GetRegexPatternSetRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
200 
206  inline GetRegexPatternSetRequest& WithId(const char* value) { SetId(value); return *this;}
207 
208  private:
209 
210  Aws::String m_name;
211  bool m_nameHasBeenSet;
212 
213  Scope m_scope;
214  bool m_scopeHasBeenSet;
215 
216  Aws::String m_id;
217  bool m_idHasBeenSet;
218  };
219 
220 } // namespace Model
221 } // namespace WAFV2
222 } // 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:149
Aws::WAFV2::Model::GetRegexPatternSetRequest::WithId
GetRegexPatternSetRequest & WithId(const Aws::String &value)
Definition: GetRegexPatternSetRequest.h:192
Aws::WAFV2::Model::GetRegexPatternSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::WAFV2::Model::GetRegexPatternSetRequest::WithId
GetRegexPatternSetRequest & WithId(Aws::String &&value)
Definition: GetRegexPatternSetRequest.h:199
Aws::WAFV2::Model::GetRegexPatternSetRequest::SetScope
void SetScope(const Scope &value)
Definition: GetRegexPatternSetRequest.h:113
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:89
WAFV2_EXPORTS.h
Aws::WAFV2::Model::GetRegexPatternSetRequest::SetScope
void SetScope(Scope &&value)
Definition: GetRegexPatternSetRequest.h:125
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::GetRegexPatternSetRequest::GetId
const Aws::String & GetId() const
Definition: GetRegexPatternSetRequest.h:157
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:137
Aws::WAFV2::Model::GetRegexPatternSetRequest::SetId
void SetId(const Aws::String &value)
Definition: GetRegexPatternSetRequest.h:171
Aws::WAFV2::Model::GetRegexPatternSetRequest::GetRegexPatternSetRequest
GetRegexPatternSetRequest()
Aws::WAFV2::Model::GetRegexPatternSetRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: GetRegexPatternSetRequest.h:101
AWSString.h
Aws::WAFV2::Model::GetRegexPatternSetRequest::SetId
void SetId(Aws::String &&value)
Definition: GetRegexPatternSetRequest.h:178
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:185
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:206
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:164