AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DevicePool.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/devicefarm/model/DevicePoolType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/devicefarm/model/Rule.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace DeviceFarm
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_DEVICEFARM_API DevicePool();
38 AWS_DEVICEFARM_API DevicePool(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVICEFARM_API DevicePool& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetArn() const{ return m_arn; }
48 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
50 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
51 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
52 inline DevicePool& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline DevicePool& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline DevicePool& WithArn(const char* value) { SetArn(value); return *this;}
56
58
61 inline const Aws::String& GetName() const{ return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
65 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
66 inline DevicePool& WithName(const Aws::String& value) { SetName(value); return *this;}
67 inline DevicePool& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
68 inline DevicePool& WithName(const char* value) { SetName(value); return *this;}
70
72
75 inline const Aws::String& GetDescription() const{ return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
78 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
79 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
80 inline DevicePool& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
81 inline DevicePool& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
82 inline DevicePool& WithDescription(const char* value) { SetDescription(value); return *this;}
84
86
92 inline const DevicePoolType& GetType() const{ return m_type; }
93 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 inline void SetType(const DevicePoolType& value) { m_typeHasBeenSet = true; m_type = value; }
95 inline void SetType(DevicePoolType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
96 inline DevicePool& WithType(const DevicePoolType& value) { SetType(value); return *this;}
97 inline DevicePool& WithType(DevicePoolType&& value) { SetType(std::move(value)); return *this;}
99
101
104 inline const Aws::Vector<Rule>& GetRules() const{ return m_rules; }
105 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
106 inline void SetRules(const Aws::Vector<Rule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
107 inline void SetRules(Aws::Vector<Rule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
108 inline DevicePool& WithRules(const Aws::Vector<Rule>& value) { SetRules(value); return *this;}
109 inline DevicePool& WithRules(Aws::Vector<Rule>&& value) { SetRules(std::move(value)); return *this;}
110 inline DevicePool& AddRules(const Rule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
111 inline DevicePool& AddRules(Rule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
113
115
123 inline int GetMaxDevices() const{ return m_maxDevices; }
124 inline bool MaxDevicesHasBeenSet() const { return m_maxDevicesHasBeenSet; }
125 inline void SetMaxDevices(int value) { m_maxDevicesHasBeenSet = true; m_maxDevices = value; }
126 inline DevicePool& WithMaxDevices(int value) { SetMaxDevices(value); return *this;}
128 private:
129
130 Aws::String m_arn;
131 bool m_arnHasBeenSet = false;
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 Aws::String m_description;
137 bool m_descriptionHasBeenSet = false;
138
139 DevicePoolType m_type;
140 bool m_typeHasBeenSet = false;
141
142 Aws::Vector<Rule> m_rules;
143 bool m_rulesHasBeenSet = false;
144
145 int m_maxDevices;
146 bool m_maxDevicesHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace DeviceFarm
151} // namespace Aws
DevicePool & WithArn(Aws::String &&value)
Definition DevicePool.h:53
const Aws::String & GetDescription() const
Definition DevicePool.h:75
DevicePool & WithRules(Aws::Vector< Rule > &&value)
Definition DevicePool.h:109
AWS_DEVICEFARM_API DevicePool(Aws::Utils::Json::JsonView jsonValue)
DevicePool & WithMaxDevices(int value)
Definition DevicePool.h:126
DevicePool & WithArn(const Aws::String &value)
Definition DevicePool.h:52
void SetType(DevicePoolType &&value)
Definition DevicePool.h:95
void SetArn(Aws::String &&value)
Definition DevicePool.h:50
DevicePool & AddRules(Rule &&value)
Definition DevicePool.h:111
DevicePool & WithType(DevicePoolType &&value)
Definition DevicePool.h:97
DevicePool & WithArn(const char *value)
Definition DevicePool.h:54
const DevicePoolType & GetType() const
Definition DevicePool.h:92
void SetType(const DevicePoolType &value)
Definition DevicePool.h:94
const Aws::String & GetArn() const
Definition DevicePool.h:47
const Aws::String & GetName() const
Definition DevicePool.h:61
DevicePool & WithRules(const Aws::Vector< Rule > &value)
Definition DevicePool.h:108
AWS_DEVICEFARM_API DevicePool()
DevicePool & WithType(const DevicePoolType &value)
Definition DevicePool.h:96
DevicePool & WithName(Aws::String &&value)
Definition DevicePool.h:67
void SetArn(const char *value)
Definition DevicePool.h:51
void SetDescription(const char *value)
Definition DevicePool.h:79
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
DevicePool & WithName(const Aws::String &value)
Definition DevicePool.h:66
void SetName(Aws::String &&value)
Definition DevicePool.h:64
void SetName(const Aws::String &value)
Definition DevicePool.h:63
AWS_DEVICEFARM_API DevicePool & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetArn(const Aws::String &value)
Definition DevicePool.h:49
const Aws::Vector< Rule > & GetRules() const
Definition DevicePool.h:104
void SetRules(const Aws::Vector< Rule > &value)
Definition DevicePool.h:106
DevicePool & WithDescription(const Aws::String &value)
Definition DevicePool.h:80
DevicePool & AddRules(const Rule &value)
Definition DevicePool.h:110
void SetName(const char *value)
Definition DevicePool.h:65
void SetDescription(Aws::String &&value)
Definition DevicePool.h:78
void SetDescription(const Aws::String &value)
Definition DevicePool.h:77
void SetRules(Aws::Vector< Rule > &&value)
Definition DevicePool.h:107
DevicePool & WithDescription(Aws::String &&value)
Definition DevicePool.h:81
DevicePool & WithName(const char *value)
Definition DevicePool.h:68
DevicePool & WithDescription(const char *value)
Definition DevicePool.h:82
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue