AWS SDK for C++  1.9.109
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 
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 GetIPSetRequest& WithScope(const Scope& value) { SetScope(value); return *this;}
146 
157  inline GetIPSetRequest& 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 GetIPSetRequest& WithId(const Aws::String& value) { SetId(value); return *this;}
201 
207  inline GetIPSetRequest& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
208 
214  inline GetIPSetRequest& WithId(const char* value) { SetId(value); return *this;}
215 
216  private:
217 
218  Aws::String m_name;
219  bool m_nameHasBeenSet;
220 
221  Scope m_scope;
222  bool m_scopeHasBeenSet;
223 
224  Aws::String m_id;
225  bool m_idHasBeenSet;
226  };
227 
228 } // namespace Model
229 } // namespace WAFV2
230 } // 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:165
Aws::WAFV2::Model::GetIPSetRequest::WithScope
GetIPSetRequest & WithScope(const Scope &value)
Definition: GetIPSetRequest.h:145
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:172
Aws::WAFV2::Model::GetIPSetRequest::SetId
void SetId(const Aws::String &value)
Definition: GetIPSetRequest.h:179
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:200
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:157
Aws::WAFV2::Model::GetIPSetRequest::GetIPSetRequest
GetIPSetRequest()
Aws::WAFV2::Model::GetIPSetRequest::SetScope
void SetScope(Scope &&value)
Definition: GetIPSetRequest.h:133
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:186
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:97
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:121
Aws
Definition: AccessManagementClient.h:15
Aws::WAFV2::Model::GetIPSetRequest::WithId
GetIPSetRequest & WithId(const char *value)
Definition: GetIPSetRequest.h:214
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:109
Aws::WAFV2::Model::Scope
Scope
Definition: Scope.h:17
Aws::WAFV2::Model::GetIPSetRequest::SetId
void SetId(const char *value)
Definition: GetIPSetRequest.h:193
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:207