AWS SDK for C++  1.9.40
AWS SDK for C++
GetIPSetRequest.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 "GetIPSet"; }
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 GetIPSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
73 
78  inline GetIPSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
79 
84  inline GetIPSetRequest& WithName(const char* value) { SetName(value); return *this;}
85 
86 
96  inline const Scope& GetScope() const{ return m_scope; }
97 
107  inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
108 
118  inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
119 
129  inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
130 
140  inline GetIPSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
141 
151  inline GetIPSetRequest& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
152 
153 
159  inline const Aws::String& GetId() const{ return m_id; }
160 
166  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
167 
173  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
174 
180  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
181 
187  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
188 
194  inline GetIPSetRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
195 
201  inline GetIPSetRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
202 
208  inline GetIPSetRequest& WithId(const char* value) { SetId(value); return *this;}
209 
210  private:
211 
212  Aws::String m_name;
213  bool m_nameHasBeenSet;
214 
215  Scope m_scope;
216  bool m_scopeHasBeenSet;
217 
218  Aws::String m_id;
219  bool m_idHasBeenSet;
220  };
221 
222 } // namespace Model
223 } // namespace WAFV2
224 } // namespace Aws
Aws::WAFV2::Model::GetIPSetRequest::WithName
GetIPSetRequest & WithName(Aws::String &&value)
Definition: GetIPSetRequest.h:78
Aws::WAFV2::Model::GetIPSetRequest::SerializePayload
Aws::String SerializePayload() const override
WAFV2Request.h
Scope.h
Aws::WAFV2::Model::GetIPSetRequest::GetId
const Aws::String & GetId() const
Definition: GetIPSetRequest.h:159
Aws::WAFV2::Model::GetIPSetRequest::WithScope
GetIPSetRequest & WithScope(const Scope &value)
Definition: GetIPSetRequest.h:140
Aws::WAFV2::Model::GetIPSetRequest::SetName
void SetName(const char *value)
Definition: GetIPSetRequest.h:66
Aws::WAFV2::Model::GetIPSetRequest::WithName
GetIPSetRequest & WithName(const Aws::String &value)
Definition: GetIPSetRequest.h:72
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::WAFV2::Model::GetIPSetRequest::IdHasBeenSet
bool IdHasBeenSet() const
Definition: GetIPSetRequest.h:166
Aws::WAFV2::Model::GetIPSetRequest::SetId
void SetId(const Aws::String &value)
Definition: GetIPSetRequest.h:173
AWS_WAFV2_API
#define AWS_WAFV2_API
Definition: WAFV2_EXPORTS.h:28
Aws::WAFV2::Model::GetIPSetRequest
Definition: GetIPSetRequest.h:23
Aws::WAFV2::Model::GetIPSetRequest::WithName
GetIPSetRequest & WithName(const char *value)
Definition: GetIPSetRequest.h:84
WAFV2_EXPORTS.h
Aws::WAFV2::Model::GetIPSetRequest::WithId
GetIPSetRequest & WithId(const Aws::String &value)
Definition: GetIPSetRequest.h:194
Aws::WAFV2::Model::GetIPSetRequest::SetName
void SetName(Aws::String &&value)
Definition: GetIPSetRequest.h:60
Aws::WAFV2::Model::GetIPSetRequest::WithScope
GetIPSetRequest & WithScope(Scope &&value)
Definition: GetIPSetRequest.h:151
Aws::WAFV2::Model::GetIPSetRequest::GetIPSetRequest
GetIPSetRequest()
Aws::WAFV2::Model::GetIPSetRequest::SetScope
void SetScope(Scope &&value)
Definition: GetIPSetRequest.h:129
Aws::WAFV2::WAFV2Request
Definition: WAFV2Request.h:17
Aws::WAFV2::Model::GetIPSetRequest::SetName
void SetName(const Aws::String &value)
Definition: GetIPSetRequest.h:54
Aws::WAFV2::Model::GetIPSetRequest::SetId
void SetId(Aws::String &&value)
Definition: GetIPSetRequest.h:180
Aws::WAFV2::Model::GetIPSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: GetIPSetRequest.h:31
Aws::WAFV2::Model::GetIPSetRequest::GetScope
const Scope & GetScope() const
Definition: GetIPSetRequest.h:96
AWSString.h
Aws::WAFV2::Model::GetIPSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::WAFV2::Model::GetIPSetRequest::SetScope
void SetScope(const Scope &value)
Definition: GetIPSetRequest.h:118
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::GetIPSetRequest::WithId
GetIPSetRequest & WithId(const char *value)
Definition: GetIPSetRequest.h:208
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::WAFV2::Model::GetIPSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: GetIPSetRequest.h:48
Aws::WAFV2::Model::GetIPSetRequest::ScopeHasBeenSet
bool ScopeHasBeenSet() const
Definition: GetIPSetRequest.h:107
Aws::WAFV2::Model::Scope
Scope
Definition: Scope.h:17
Aws::WAFV2::Model::GetIPSetRequest::SetId
void SetId(const char *value)
Definition: GetIPSetRequest.h:187
Aws::WAFV2::Model::GetIPSetRequest::GetName
const Aws::String & GetName() const
Definition: GetIPSetRequest.h:42
Aws::WAFV2::Model::GetIPSetRequest::WithId
GetIPSetRequest & WithId(Aws::String &&value)
Definition: GetIPSetRequest.h:201