AWS SDK for C++  1.9.103
AWS SDK for C++
UpdateIPSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace GuardDuty
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateIPSet"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
39  inline const Aws::String& GetDetectorId() const{ return m_detectorId; }
40 
45  inline bool DetectorIdHasBeenSet() const { return m_detectorIdHasBeenSet; }
46 
51  inline void SetDetectorId(const Aws::String& value) { m_detectorIdHasBeenSet = true; m_detectorId = value; }
52 
57  inline void SetDetectorId(Aws::String&& value) { m_detectorIdHasBeenSet = true; m_detectorId = std::move(value); }
58 
63  inline void SetDetectorId(const char* value) { m_detectorIdHasBeenSet = true; m_detectorId.assign(value); }
64 
69  inline UpdateIPSetRequest& WithDetectorId(const Aws::String& value) { SetDetectorId(value); return *this;}
70 
75  inline UpdateIPSetRequest& WithDetectorId(Aws::String&& value) { SetDetectorId(std::move(value)); return *this;}
76 
81  inline UpdateIPSetRequest& WithDetectorId(const char* value) { SetDetectorId(value); return *this;}
82 
83 
87  inline const Aws::String& GetIpSetId() const{ return m_ipSetId; }
88 
92  inline bool IpSetIdHasBeenSet() const { return m_ipSetIdHasBeenSet; }
93 
97  inline void SetIpSetId(const Aws::String& value) { m_ipSetIdHasBeenSet = true; m_ipSetId = value; }
98 
102  inline void SetIpSetId(Aws::String&& value) { m_ipSetIdHasBeenSet = true; m_ipSetId = std::move(value); }
103 
107  inline void SetIpSetId(const char* value) { m_ipSetIdHasBeenSet = true; m_ipSetId.assign(value); }
108 
112  inline UpdateIPSetRequest& WithIpSetId(const Aws::String& value) { SetIpSetId(value); return *this;}
113 
117  inline UpdateIPSetRequest& WithIpSetId(Aws::String&& value) { SetIpSetId(std::move(value)); return *this;}
118 
122  inline UpdateIPSetRequest& WithIpSetId(const char* value) { SetIpSetId(value); return *this;}
123 
124 
128  inline const Aws::String& GetName() const{ return m_name; }
129 
133  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
134 
138  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
139 
143  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
144 
148  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
149 
153  inline UpdateIPSetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
154 
158  inline UpdateIPSetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
159 
163  inline UpdateIPSetRequest& WithName(const char* value) { SetName(value); return *this;}
164 
165 
170  inline const Aws::String& GetLocation() const{ return m_location; }
171 
176  inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
177 
182  inline void SetLocation(const Aws::String& value) { m_locationHasBeenSet = true; m_location = value; }
183 
188  inline void SetLocation(Aws::String&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
189 
194  inline void SetLocation(const char* value) { m_locationHasBeenSet = true; m_location.assign(value); }
195 
200  inline UpdateIPSetRequest& WithLocation(const Aws::String& value) { SetLocation(value); return *this;}
201 
206  inline UpdateIPSetRequest& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;}
207 
212  inline UpdateIPSetRequest& WithLocation(const char* value) { SetLocation(value); return *this;}
213 
214 
219  inline bool GetActivate() const{ return m_activate; }
220 
225  inline bool ActivateHasBeenSet() const { return m_activateHasBeenSet; }
226 
231  inline void SetActivate(bool value) { m_activateHasBeenSet = true; m_activate = value; }
232 
237  inline UpdateIPSetRequest& WithActivate(bool value) { SetActivate(value); return *this;}
238 
239  private:
240 
241  Aws::String m_detectorId;
242  bool m_detectorIdHasBeenSet;
243 
244  Aws::String m_ipSetId;
245  bool m_ipSetIdHasBeenSet;
246 
247  Aws::String m_name;
248  bool m_nameHasBeenSet;
249 
250  Aws::String m_location;
251  bool m_locationHasBeenSet;
252 
253  bool m_activate;
254  bool m_activateHasBeenSet;
255  };
256 
257 } // namespace Model
258 } // namespace GuardDuty
259 } // namespace Aws
Aws::GuardDuty::Model::UpdateIPSetRequest::GetName
const Aws::String & GetName() const
Definition: UpdateIPSetRequest.h:128
Aws::GuardDuty::Model::UpdateIPSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateIPSetRequest.h:30
Aws::GuardDuty::Model::UpdateIPSetRequest::GetActivate
bool GetActivate() const
Definition: UpdateIPSetRequest.h:219
Aws::GuardDuty::Model::UpdateIPSetRequest::WithName
UpdateIPSetRequest & WithName(const Aws::String &value)
Definition: UpdateIPSetRequest.h:153
Aws::GuardDuty::Model::UpdateIPSetRequest::ActivateHasBeenSet
bool ActivateHasBeenSet() const
Definition: UpdateIPSetRequest.h:225
Aws::GuardDuty::Model::UpdateIPSetRequest::WithActivate
UpdateIPSetRequest & WithActivate(bool value)
Definition: UpdateIPSetRequest.h:237
Aws::GuardDuty::Model::UpdateIPSetRequest::SetDetectorId
void SetDetectorId(const char *value)
Definition: UpdateIPSetRequest.h:63
Aws::GuardDuty::Model::UpdateIPSetRequest::GetDetectorId
const Aws::String & GetDetectorId() const
Definition: UpdateIPSetRequest.h:39
Aws::GuardDuty::Model::UpdateIPSetRequest
Definition: UpdateIPSetRequest.h:22
Aws::GuardDuty::Model::UpdateIPSetRequest::GetLocation
const Aws::String & GetLocation() const
Definition: UpdateIPSetRequest.h:170
Aws::GuardDuty::Model::UpdateIPSetRequest::WithIpSetId
UpdateIPSetRequest & WithIpSetId(const Aws::String &value)
Definition: UpdateIPSetRequest.h:112
Aws::GuardDuty::Model::UpdateIPSetRequest::WithIpSetId
UpdateIPSetRequest & WithIpSetId(Aws::String &&value)
Definition: UpdateIPSetRequest.h:117
Aws::GuardDuty::Model::UpdateIPSetRequest::SetLocation
void SetLocation(const char *value)
Definition: UpdateIPSetRequest.h:194
Aws::GuardDuty::Model::UpdateIPSetRequest::WithDetectorId
UpdateIPSetRequest & WithDetectorId(Aws::String &&value)
Definition: UpdateIPSetRequest.h:75
Aws::GuardDuty::Model::UpdateIPSetRequest::SetLocation
void SetLocation(Aws::String &&value)
Definition: UpdateIPSetRequest.h:188
Aws::GuardDuty::Model::UpdateIPSetRequest::WithName
UpdateIPSetRequest & WithName(Aws::String &&value)
Definition: UpdateIPSetRequest.h:158
Aws::GuardDuty::Model::UpdateIPSetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateIPSetRequest.h:133
Aws::GuardDuty::Model::UpdateIPSetRequest::SetLocation
void SetLocation(const Aws::String &value)
Definition: UpdateIPSetRequest.h:182
Aws::GuardDuty::Model::UpdateIPSetRequest::DetectorIdHasBeenSet
bool DetectorIdHasBeenSet() const
Definition: UpdateIPSetRequest.h:45
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::UpdateIPSetRequest::SetName
void SetName(const char *value)
Definition: UpdateIPSetRequest.h:148
Aws::GuardDuty::Model::UpdateIPSetRequest::WithDetectorId
UpdateIPSetRequest & WithDetectorId(const char *value)
Definition: UpdateIPSetRequest.h:81
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::UpdateIPSetRequest::SetIpSetId
void SetIpSetId(const char *value)
Definition: UpdateIPSetRequest.h:107
Aws::GuardDuty::Model::UpdateIPSetRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateIPSetRequest.h:138
Aws::GuardDuty::Model::UpdateIPSetRequest::SetDetectorId
void SetDetectorId(const Aws::String &value)
Definition: UpdateIPSetRequest.h:51
AWSString.h
Aws::GuardDuty::Model::UpdateIPSetRequest::WithLocation
UpdateIPSetRequest & WithLocation(Aws::String &&value)
Definition: UpdateIPSetRequest.h:206
Aws::GuardDuty::Model::UpdateIPSetRequest::WithIpSetId
UpdateIPSetRequest & WithIpSetId(const char *value)
Definition: UpdateIPSetRequest.h:122
Aws::GuardDuty::Model::UpdateIPSetRequest::WithName
UpdateIPSetRequest & WithName(const char *value)
Definition: UpdateIPSetRequest.h:163
Aws::GuardDuty::Model::UpdateIPSetRequest::UpdateIPSetRequest
UpdateIPSetRequest()
Aws::GuardDuty::Model::UpdateIPSetRequest::GetIpSetId
const Aws::String & GetIpSetId() const
Definition: UpdateIPSetRequest.h:87
Aws::GuardDuty::Model::UpdateIPSetRequest::WithLocation
UpdateIPSetRequest & WithLocation(const Aws::String &value)
Definition: UpdateIPSetRequest.h:200
Aws::GuardDuty::Model::UpdateIPSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GuardDuty::Model::UpdateIPSetRequest::LocationHasBeenSet
bool LocationHasBeenSet() const
Definition: UpdateIPSetRequest.h:176
Aws::GuardDuty::Model::UpdateIPSetRequest::WithLocation
UpdateIPSetRequest & WithLocation(const char *value)
Definition: UpdateIPSetRequest.h:212
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::UpdateIPSetRequest::SetIpSetId
void SetIpSetId(const Aws::String &value)
Definition: UpdateIPSetRequest.h:97
Aws::GuardDuty::Model::UpdateIPSetRequest::SetDetectorId
void SetDetectorId(Aws::String &&value)
Definition: UpdateIPSetRequest.h:57
Aws::GuardDuty::Model::UpdateIPSetRequest::WithDetectorId
UpdateIPSetRequest & WithDetectorId(const Aws::String &value)
Definition: UpdateIPSetRequest.h:69
GuardDutyRequest.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::UpdateIPSetRequest::SetActivate
void SetActivate(bool value)
Definition: UpdateIPSetRequest.h:231
Aws::GuardDuty::GuardDutyRequest
Definition: GuardDutyRequest.h:17
Aws::GuardDuty::Model::UpdateIPSetRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateIPSetRequest.h:143
Aws::GuardDuty::Model::UpdateIPSetRequest::SetIpSetId
void SetIpSetId(Aws::String &&value)
Definition: UpdateIPSetRequest.h:102
Aws::GuardDuty::Model::UpdateIPSetRequest::IpSetIdHasBeenSet
bool IpSetIdHasBeenSet() const
Definition: UpdateIPSetRequest.h:92