AWS SDK for C++  1.8.129
AWS SDK for C++
UpdateDevicePoolRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace DeviceFarm
17 {
18 namespace Model
19 {
20 
28  {
29  public:
31 
32  // Service request name is the Operation name which will send this request out,
33  // each operation should has unique request name, so that we can get operation's name from this request.
34  // Note: this is not true for response, multiple operations may have the same response name,
35  // so we can not get operation's name from response.
36  inline virtual const char* GetServiceRequestName() const override { return "UpdateDevicePool"; }
37 
38  Aws::String SerializePayload() const override;
39 
41 
42 
46  inline const Aws::String& GetArn() const{ return m_arn; }
47 
51  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 
56  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
57 
61  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
62 
66  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
67 
71  inline UpdateDevicePoolRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 
76  inline UpdateDevicePoolRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
77 
81  inline UpdateDevicePoolRequest& WithArn(const char* value) { SetArn(value); return *this;}
82 
83 
87  inline const Aws::String& GetName() const{ return m_name; }
88 
92  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
93 
97  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
98 
102  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
103 
107  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
108 
112  inline UpdateDevicePoolRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
117  inline UpdateDevicePoolRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 
122  inline UpdateDevicePoolRequest& WithName(const char* value) { SetName(value); return *this;}
123 
124 
128  inline const Aws::String& GetDescription() const{ return m_description; }
129 
133  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
134 
138  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
139 
143  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
144 
148  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
149 
153  inline UpdateDevicePoolRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
154 
158  inline UpdateDevicePoolRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
159 
163  inline UpdateDevicePoolRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
164 
165 
171  inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
172 
178  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
179 
185  inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
186 
192  inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
193 
199  inline UpdateDevicePoolRequest& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
200 
206  inline UpdateDevicePoolRequest& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
207 
213  inline UpdateDevicePoolRequest& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
214 
220  inline UpdateDevicePoolRequest& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
221 
222 
233  inline int GetMaxDevices() const{ return m_maxDevices; }
234 
245  inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
246 
257  inline void SetMaxDevices(int value) { m_maxDevicesHasBeenSet = true; m_maxDevices = value; }
258 
269  inline UpdateDevicePoolRequest& WithMaxDevices(int value) { SetMaxDevices(value); return *this;}
270 
271 
281  inline bool GetClearMaxDevices() const{ return m_clearMaxDevices; }
282 
292  inline bool ClearMaxDevicesHasBeenSet() const { return m_clearMaxDevicesHasBeenSet; }
293 
303  inline void SetClearMaxDevices(bool value) { m_clearMaxDevicesHasBeenSet = true; m_clearMaxDevices = value; }
304 
314  inline UpdateDevicePoolRequest& WithClearMaxDevices(bool value) { SetClearMaxDevices(value); return *this;}
315 
316  private:
317 
318  Aws::String m_arn;
319  bool m_arnHasBeenSet;
320 
321  Aws::String m_name;
322  bool m_nameHasBeenSet;
323 
324  Aws::String m_description;
325  bool m_descriptionHasBeenSet;
326 
327  Aws::Vector<Rule> m_rules;
328  bool m_rulesHasBeenSet;
329 
330  int m_maxDevices;
331  bool m_maxDevicesHasBeenSet;
332 
333  bool m_clearMaxDevices;
334  bool m_clearMaxDevicesHasBeenSet;
335  };
336 
337 } // namespace Model
338 } // namespace DeviceFarm
339 } // namespace Aws
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::GetClearMaxDevices
bool GetClearMaxDevices() const
Definition: UpdateDevicePoolRequest.h:281
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::GetName
const Aws::String & GetName() const
Definition: UpdateDevicePoolRequest.h:87
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::WithRules
UpdateDevicePoolRequest & WithRules(const Aws::Vector< Rule > &value)
Definition: UpdateDevicePoolRequest.h:199
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::WithArn
UpdateDevicePoolRequest & WithArn(Aws::String &&value)
Definition: UpdateDevicePoolRequest.h:76
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::AddRules
UpdateDevicePoolRequest & AddRules(Rule &&value)
Definition: UpdateDevicePoolRequest.h:220
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::AddRules
UpdateDevicePoolRequest & AddRules(const Rule &value)
Definition: UpdateDevicePoolRequest.h:213
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::ClearMaxDevicesHasBeenSet
bool ClearMaxDevicesHasBeenSet() const
Definition: UpdateDevicePoolRequest.h:292
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateDevicePoolRequest.h:36
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::WithDescription
UpdateDevicePoolRequest & WithDescription(const char *value)
Definition: UpdateDevicePoolRequest.h:163
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::WithName
UpdateDevicePoolRequest & WithName(const char *value)
Definition: UpdateDevicePoolRequest.h:122
DeviceFarmRequest.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SetRules
void SetRules(Aws::Vector< Rule > &&value)
Definition: UpdateDevicePoolRequest.h:192
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SetDescription
void SetDescription(const char *value)
Definition: UpdateDevicePoolRequest.h:148
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SetName
void SetName(Aws::String &&value)
Definition: UpdateDevicePoolRequest.h:102
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::WithName
UpdateDevicePoolRequest & WithName(const Aws::String &value)
Definition: UpdateDevicePoolRequest.h:112
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SetClearMaxDevices
void SetClearMaxDevices(bool value)
Definition: UpdateDevicePoolRequest.h:303
AWSVector.h
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: UpdateDevicePoolRequest.h:51
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: UpdateDevicePoolRequest.h:178
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::WithArn
UpdateDevicePoolRequest & WithArn(const Aws::String &value)
Definition: UpdateDevicePoolRequest.h:71
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::WithDescription
UpdateDevicePoolRequest & WithDescription(const Aws::String &value)
Definition: UpdateDevicePoolRequest.h:153
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::MaxDevicesHasBeenSet
bool MaxDevicesHasBeenSet() const
Definition: UpdateDevicePoolRequest.h:245
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: UpdateDevicePoolRequest.h:138
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::WithArn
UpdateDevicePoolRequest & WithArn(const char *value)
Definition: UpdateDevicePoolRequest.h:81
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SetArn
void SetArn(Aws::String &&value)
Definition: UpdateDevicePoolRequest.h:61
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: UpdateDevicePoolRequest.h:92
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SetArn
void SetArn(const Aws::String &value)
Definition: UpdateDevicePoolRequest.h:56
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::GetArn
const Aws::String & GetArn() const
Definition: UpdateDevicePoolRequest.h:46
Aws::DeviceFarm::DeviceFarmRequest
Definition: DeviceFarmRequest.h:17
Aws::DeviceFarm::Model::Rule
Definition: Rule.h:34
Rule.h
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::WithName
UpdateDevicePoolRequest & WithName(Aws::String &&value)
Definition: UpdateDevicePoolRequest.h:117
AWSString.h
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: UpdateDevicePoolRequest.h:143
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: UpdateDevicePoolRequest.h:133
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SetName
void SetName(const char *value)
Definition: UpdateDevicePoolRequest.h:107
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::GetMaxDevices
int GetMaxDevices() const
Definition: UpdateDevicePoolRequest.h:233
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SetArn
void SetArn(const char *value)
Definition: UpdateDevicePoolRequest.h:66
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::WithClearMaxDevices
UpdateDevicePoolRequest & WithClearMaxDevices(bool value)
Definition: UpdateDevicePoolRequest.h:314
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::GetDescription
const Aws::String & GetDescription() const
Definition: UpdateDevicePoolRequest.h:128
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::WithMaxDevices
UpdateDevicePoolRequest & WithMaxDevices(int value)
Definition: UpdateDevicePoolRequest.h:269
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SetMaxDevices
void SetMaxDevices(int value)
Definition: UpdateDevicePoolRequest.h:257
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SetName
void SetName(const Aws::String &value)
Definition: UpdateDevicePoolRequest.h:97
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::SetRules
void SetRules(const Aws::Vector< Rule > &value)
Definition: UpdateDevicePoolRequest.h:185
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::WithDescription
UpdateDevicePoolRequest & WithDescription(Aws::String &&value)
Definition: UpdateDevicePoolRequest.h:158
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::GetRules
const Aws::Vector< Rule > & GetRules() const
Definition: UpdateDevicePoolRequest.h:171
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::UpdateDevicePoolRequest
UpdateDevicePoolRequest()
Aws::DeviceFarm::Model::UpdateDevicePoolRequest
Definition: UpdateDevicePoolRequest.h:28
Aws::DeviceFarm::Model::UpdateDevicePoolRequest::WithRules
UpdateDevicePoolRequest & WithRules(Aws::Vector< Rule > &&value)
Definition: UpdateDevicePoolRequest.h:206