AWS SDK for C++  1.9.154
AWS SDK for C++
DevicePool.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace DeviceFarm
25 {
26 namespace Model
27 {
28 
35  {
36  public:
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 DevicePool& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 
76  inline DevicePool& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
77 
81  inline DevicePool& 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 DevicePool& WithName(const Aws::String& value) { SetName(value); return *this;}
113 
117  inline DevicePool& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
118 
122  inline DevicePool& 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 DevicePool& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
154 
158  inline DevicePool& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
159 
163  inline DevicePool& WithDescription(const char* value) { SetDescription(value); return *this;}
164 
165 
172  inline const DevicePoolType& GetType() const{ return m_type; }
173 
180  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
181 
188  inline void SetType(const DevicePoolType& value) { m_typeHasBeenSet = true; m_type = value; }
189 
196  inline void SetType(DevicePoolType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
197 
204  inline DevicePool& WithType(const DevicePoolType& value) { SetType(value); return *this;}
205 
212  inline DevicePool& WithType(DevicePoolType&& value) { SetType(std::move(value)); return *this;}
213 
214 
218  inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
219 
223  inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
224 
228  inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
229 
233  inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
234 
238  inline DevicePool& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
239 
243  inline DevicePool& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
244 
248  inline DevicePool& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
249 
253  inline DevicePool& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
254 
255 
264  inline int GetMaxDevices() const{ return m_maxDevices; }
265 
274  inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
275 
284  inline void SetMaxDevices(int value) { m_maxDevicesHasBeenSet = true; m_maxDevices = value; }
285 
294  inline DevicePool& WithMaxDevices(int value) { SetMaxDevices(value); return *this;}
295 
296  private:
297 
298  Aws::String m_arn;
299  bool m_arnHasBeenSet;
300 
301  Aws::String m_name;
302  bool m_nameHasBeenSet;
303 
304  Aws::String m_description;
305  bool m_descriptionHasBeenSet;
306 
307  DevicePoolType m_type;
308  bool m_typeHasBeenSet;
309 
310  Aws::Vector<Rule> m_rules;
311  bool m_rulesHasBeenSet;
312 
313  int m_maxDevices;
314  bool m_maxDevicesHasBeenSet;
315  };
316 
317 } // namespace Model
318 } // namespace DeviceFarm
319 } // namespace Aws
Aws::DeviceFarm::Model::DevicePool::GetName
const Aws::String & GetName() const
Definition: DevicePool.h:87
Aws::DeviceFarm::Model::DevicePool::SetType
void SetType(const DevicePoolType &value)
Definition: DevicePool.h:188
Aws::DeviceFarm::Model::DevicePool::SetDescription
void SetDescription(Aws::String &&value)
Definition: DevicePool.h:143
Aws::DeviceFarm::Model::DevicePool::SetName
void SetName(Aws::String &&value)
Definition: DevicePool.h:102
Aws::DeviceFarm::Model::DevicePool::SetArn
void SetArn(const Aws::String &value)
Definition: DevicePool.h:56
Aws::DeviceFarm::Model::DevicePool::AddRules
DevicePool & AddRules(Rule &&value)
Definition: DevicePool.h:253
Aws::DeviceFarm::Model::DevicePool::NameHasBeenSet
bool NameHasBeenSet() const
Definition: DevicePool.h:92
Aws::DeviceFarm::Model::DevicePool::SetRules
void SetRules(const Aws::Vector< Rule > &value)
Definition: DevicePool.h:228
DevicePoolType.h
Aws::DeviceFarm::Model::DevicePool::WithType
DevicePool & WithType(DevicePoolType &&value)
Definition: DevicePool.h:212
Aws::DeviceFarm::Model::DevicePool::GetDescription
const Aws::String & GetDescription() const
Definition: DevicePool.h:128
Aws::DeviceFarm::Model::DevicePool::SetArn
void SetArn(Aws::String &&value)
Definition: DevicePool.h:61
Aws::DeviceFarm::Model::DevicePool::operator=
DevicePool & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::DevicePool::SetMaxDevices
void SetMaxDevices(int value)
Definition: DevicePool.h:284
Aws::DeviceFarm::Model::DevicePool::SetDescription
void SetDescription(const char *value)
Definition: DevicePool.h:148
Aws::DeviceFarm::Model::DevicePool::SetName
void SetName(const Aws::String &value)
Definition: DevicePool.h:97
Aws::DeviceFarm::Model::DevicePool::SetArn
void SetArn(const char *value)
Definition: DevicePool.h:66
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DeviceFarm::Model::DevicePool::WithArn
DevicePool & WithArn(const char *value)
Definition: DevicePool.h:81
Aws::DeviceFarm::Model::DevicePool::GetArn
const Aws::String & GetArn() const
Definition: DevicePool.h:46
Aws::DeviceFarm::Model::DevicePool::SetDescription
void SetDescription(const Aws::String &value)
Definition: DevicePool.h:138
AWSVector.h
Aws::DeviceFarm::Model::DevicePool::WithRules
DevicePool & WithRules(const Aws::Vector< Rule > &value)
Definition: DevicePool.h:238
Aws::DeviceFarm::Model::DevicePool::SetType
void SetType(DevicePoolType &&value)
Definition: DevicePool.h:196
Aws::DeviceFarm::Model::DevicePool::WithDescription
DevicePool & WithDescription(const char *value)
Definition: DevicePool.h:163
Aws::DeviceFarm::Model::DevicePool::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: DevicePool.h:180
Aws::DeviceFarm::Model::DevicePool::GetRules
const Aws::Vector< Rule > & GetRules() const
Definition: DevicePool.h:218
Aws::DeviceFarm::Model::DevicePoolType
DevicePoolType
Definition: DevicePoolType.h:17
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::Rule
Definition: Rule.h:34
Aws::DeviceFarm::Model::DevicePool::DevicePool
DevicePool(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::DevicePool::WithMaxDevices
DevicePool & WithMaxDevices(int value)
Definition: DevicePool.h:294
Rule.h
Aws::DeviceFarm::Model::DevicePool::MaxDevicesHasBeenSet
bool MaxDevicesHasBeenSet() const
Definition: DevicePool.h:274
Aws::DeviceFarm::Model::DevicePool::DevicePool
DevicePool()
Aws::DeviceFarm::Model::DevicePool::WithName
DevicePool & WithName(const Aws::String &value)
Definition: DevicePool.h:112
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::DeviceFarm::Model::DevicePool::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::DeviceFarm::Model::DevicePool::WithRules
DevicePool & WithRules(Aws::Vector< Rule > &&value)
Definition: DevicePool.h:243
Aws::DeviceFarm::Model::DevicePool::GetMaxDevices
int GetMaxDevices() const
Definition: DevicePool.h:264
Aws::DeviceFarm::Model::DevicePool::WithDescription
DevicePool & WithDescription(Aws::String &&value)
Definition: DevicePool.h:158
Aws::DeviceFarm::Model::DevicePool::AddRules
DevicePool & AddRules(const Rule &value)
Definition: DevicePool.h:248
Aws::DeviceFarm::Model::DevicePool::GetType
const DevicePoolType & GetType() const
Definition: DevicePool.h:172
Aws::DeviceFarm::Model::DevicePool::WithName
DevicePool & WithName(const char *value)
Definition: DevicePool.h:122
Aws::DeviceFarm::Model::DevicePool::RulesHasBeenSet
bool RulesHasBeenSet() const
Definition: DevicePool.h:223
Aws::DeviceFarm::Model::DevicePool::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: DevicePool.h:51
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::DeviceFarm::Model::DevicePool::WithType
DevicePool & WithType(const DevicePoolType &value)
Definition: DevicePool.h:204
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::DeviceFarm::Model::DevicePool::SetRules
void SetRules(Aws::Vector< Rule > &&value)
Definition: DevicePool.h:233
Aws::DeviceFarm::Model::DevicePool::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: DevicePool.h:133
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::DevicePool
Definition: DevicePool.h:35
Aws::DeviceFarm::Model::DevicePool::WithName
DevicePool & WithName(Aws::String &&value)
Definition: DevicePool.h:117
Aws::DeviceFarm::Model::DevicePool::WithArn
DevicePool & WithArn(const Aws::String &value)
Definition: DevicePool.h:71
Aws::DeviceFarm::Model::DevicePool::WithArn
DevicePool & WithArn(Aws::String &&value)
Definition: DevicePool.h:76
Aws::DeviceFarm::Model::DevicePool::WithDescription
DevicePool & WithDescription(const Aws::String &value)
Definition: DevicePool.h:153
Aws::DeviceFarm::Model::DevicePool::SetName
void SetName(const char *value)
Definition: DevicePool.h:107