AWS SDK for C++  1.8.126
AWS SDK for C++
DeviceInstance.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 DeviceInstance& WithArn(const Aws::String& value) { SetArn(value); return *this;}
72 
76  inline DeviceInstance& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
77 
81  inline DeviceInstance& WithArn(const char* value) { SetArn(value); return *this;}
82 
83 
87  inline const Aws::String& GetDeviceArn() const{ return m_deviceArn; }
88 
92  inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
93 
97  inline void SetDeviceArn(const Aws::String& value) { m_deviceArnHasBeenSet = true; m_deviceArn = value; }
98 
102  inline void SetDeviceArn(Aws::String&& value) { m_deviceArnHasBeenSet = true; m_deviceArn = std::move(value); }
103 
107  inline void SetDeviceArn(const char* value) { m_deviceArnHasBeenSet = true; m_deviceArn.assign(value); }
108 
112  inline DeviceInstance& WithDeviceArn(const Aws::String& value) { SetDeviceArn(value); return *this;}
113 
117  inline DeviceInstance& WithDeviceArn(Aws::String&& value) { SetDeviceArn(std::move(value)); return *this;}
118 
122  inline DeviceInstance& WithDeviceArn(const char* value) { SetDeviceArn(value); return *this;}
123 
124 
128  inline const Aws::Vector<Aws::String>& GetLabels() const{ return m_labels; }
129 
133  inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
134 
138  inline void SetLabels(const Aws::Vector<Aws::String>& value) { m_labelsHasBeenSet = true; m_labels = value; }
139 
143  inline void SetLabels(Aws::Vector<Aws::String>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
144 
148  inline DeviceInstance& WithLabels(const Aws::Vector<Aws::String>& value) { SetLabels(value); return *this;}
149 
153  inline DeviceInstance& WithLabels(Aws::Vector<Aws::String>&& value) { SetLabels(std::move(value)); return *this;}
154 
158  inline DeviceInstance& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
159 
163  inline DeviceInstance& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
164 
168  inline DeviceInstance& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
169 
170 
174  inline const InstanceStatus& GetStatus() const{ return m_status; }
175 
179  inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
180 
184  inline void SetStatus(const InstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
185 
189  inline void SetStatus(InstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
190 
194  inline DeviceInstance& WithStatus(const InstanceStatus& value) { SetStatus(value); return *this;}
195 
199  inline DeviceInstance& WithStatus(InstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
200 
201 
205  inline const Aws::String& GetUdid() const{ return m_udid; }
206 
210  inline bool UdidHasBeenSet() const { return m_udidHasBeenSet; }
211 
215  inline void SetUdid(const Aws::String& value) { m_udidHasBeenSet = true; m_udid = value; }
216 
220  inline void SetUdid(Aws::String&& value) { m_udidHasBeenSet = true; m_udid = std::move(value); }
221 
225  inline void SetUdid(const char* value) { m_udidHasBeenSet = true; m_udid.assign(value); }
226 
230  inline DeviceInstance& WithUdid(const Aws::String& value) { SetUdid(value); return *this;}
231 
235  inline DeviceInstance& WithUdid(Aws::String&& value) { SetUdid(std::move(value)); return *this;}
236 
240  inline DeviceInstance& WithUdid(const char* value) { SetUdid(value); return *this;}
241 
242 
246  inline const InstanceProfile& GetInstanceProfile() const{ return m_instanceProfile; }
247 
251  inline bool InstanceProfileHasBeenSet() const { return m_instanceProfileHasBeenSet; }
252 
256  inline void SetInstanceProfile(const InstanceProfile& value) { m_instanceProfileHasBeenSet = true; m_instanceProfile = value; }
257 
261  inline void SetInstanceProfile(InstanceProfile&& value) { m_instanceProfileHasBeenSet = true; m_instanceProfile = std::move(value); }
262 
266  inline DeviceInstance& WithInstanceProfile(const InstanceProfile& value) { SetInstanceProfile(value); return *this;}
267 
271  inline DeviceInstance& WithInstanceProfile(InstanceProfile&& value) { SetInstanceProfile(std::move(value)); return *this;}
272 
273  private:
274 
275  Aws::String m_arn;
276  bool m_arnHasBeenSet;
277 
278  Aws::String m_deviceArn;
279  bool m_deviceArnHasBeenSet;
280 
281  Aws::Vector<Aws::String> m_labels;
282  bool m_labelsHasBeenSet;
283 
284  InstanceStatus m_status;
285  bool m_statusHasBeenSet;
286 
287  Aws::String m_udid;
288  bool m_udidHasBeenSet;
289 
290  InstanceProfile m_instanceProfile;
291  bool m_instanceProfileHasBeenSet;
292  };
293 
294 } // namespace Model
295 } // namespace DeviceFarm
296 } // namespace Aws
Aws::DeviceFarm::Model::DeviceInstance::AddLabels
DeviceInstance & AddLabels(const char *value)
Definition: DeviceInstance.h:168
Aws::DeviceFarm::Model::DeviceInstance::SetDeviceArn
void SetDeviceArn(Aws::String &&value)
Definition: DeviceInstance.h:102
Aws::DeviceFarm::Model::DeviceInstance::DeviceInstance
DeviceInstance(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::DeviceInstance::WithStatus
DeviceInstance & WithStatus(InstanceStatus &&value)
Definition: DeviceInstance.h:199
Aws::DeviceFarm::Model::DeviceInstance::SetArn
void SetArn(const char *value)
Definition: DeviceInstance.h:66
Aws::DeviceFarm::Model::DeviceInstance::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::DeviceFarm::Model::DeviceInstance::SetLabels
void SetLabels(const Aws::Vector< Aws::String > &value)
Definition: DeviceInstance.h:138
Aws::DeviceFarm::Model::DeviceInstance::UdidHasBeenSet
bool UdidHasBeenSet() const
Definition: DeviceInstance.h:210
Aws::DeviceFarm::Model::DeviceInstance::WithLabels
DeviceInstance & WithLabels(Aws::Vector< Aws::String > &&value)
Definition: DeviceInstance.h:153
Aws::DeviceFarm::Model::DeviceInstance::SetArn
void SetArn(Aws::String &&value)
Definition: DeviceInstance.h:61
Aws::DeviceFarm::Model::DeviceInstance
Definition: DeviceInstance.h:35
Aws::DeviceFarm::Model::DeviceInstance::WithInstanceProfile
DeviceInstance & WithInstanceProfile(const InstanceProfile &value)
Definition: DeviceInstance.h:266
Aws::DeviceFarm::Model::DeviceInstance::GetInstanceProfile
const InstanceProfile & GetInstanceProfile() const
Definition: DeviceInstance.h:246
Aws::DeviceFarm::Model::DeviceInstance::SetUdid
void SetUdid(const Aws::String &value)
Definition: DeviceInstance.h:215
Aws::DeviceFarm::Model::InstanceProfile
Definition: InstanceProfile.h:33
Aws::DeviceFarm::Model::DeviceInstance::WithUdid
DeviceInstance & WithUdid(const Aws::String &value)
Definition: DeviceInstance.h:230
Aws::DeviceFarm::Model::DeviceInstance::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: DeviceInstance.h:51
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::DeviceFarm::Model::DeviceInstance::GetArn
const Aws::String & GetArn() const
Definition: DeviceInstance.h:46
Aws::DeviceFarm::Model::DeviceInstance::WithLabels
DeviceInstance & WithLabels(const Aws::Vector< Aws::String > &value)
Definition: DeviceInstance.h:148
Aws::DeviceFarm::Model::DeviceInstance::SetLabels
void SetLabels(Aws::Vector< Aws::String > &&value)
Definition: DeviceInstance.h:143
Aws::DeviceFarm::Model::DeviceInstance::SetInstanceProfile
void SetInstanceProfile(const InstanceProfile &value)
Definition: DeviceInstance.h:256
AWSVector.h
Aws::DeviceFarm::Model::DeviceInstance::WithDeviceArn
DeviceInstance & WithDeviceArn(Aws::String &&value)
Definition: DeviceInstance.h:117
Aws::DeviceFarm::Model::DeviceInstance::AddLabels
DeviceInstance & AddLabels(const Aws::String &value)
Definition: DeviceInstance.h:158
Aws::DeviceFarm::Model::DeviceInstance::SetStatus
void SetStatus(const InstanceStatus &value)
Definition: DeviceInstance.h:184
Aws::DeviceFarm::Model::DeviceInstance::WithUdid
DeviceInstance & WithUdid(Aws::String &&value)
Definition: DeviceInstance.h:235
Aws::DeviceFarm::Model::DeviceInstance::WithUdid
DeviceInstance & WithUdid(const char *value)
Definition: DeviceInstance.h:240
Aws::DeviceFarm::Model::DeviceInstance::LabelsHasBeenSet
bool LabelsHasBeenSet() const
Definition: DeviceInstance.h:133
Aws::DeviceFarm::Model::DeviceInstance::SetUdid
void SetUdid(Aws::String &&value)
Definition: DeviceInstance.h:220
Aws::DeviceFarm::Model::DeviceInstance::InstanceProfileHasBeenSet
bool InstanceProfileHasBeenSet() const
Definition: DeviceInstance.h:251
Aws::DeviceFarm::Model::DeviceInstance::SetArn
void SetArn(const Aws::String &value)
Definition: DeviceInstance.h:56
Aws::DeviceFarm::Model::DeviceInstance::DeviceInstance
DeviceInstance()
InstanceProfile.h
AWS_DEVICEFARM_API
#define AWS_DEVICEFARM_API
Definition: DeviceFarm_EXPORTS.h:28
Aws::DeviceFarm::Model::DeviceInstance::SetStatus
void SetStatus(InstanceStatus &&value)
Definition: DeviceInstance.h:189
Aws::DeviceFarm::Model::InstanceStatus
InstanceStatus
Definition: InstanceStatus.h:17
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::DeviceFarm::Model::DeviceInstance::GetUdid
const Aws::String & GetUdid() const
Definition: DeviceInstance.h:205
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::DeviceFarm::Model::DeviceInstance::operator=
DeviceInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::DeviceFarm::Model::DeviceInstance::GetStatus
const InstanceStatus & GetStatus() const
Definition: DeviceInstance.h:174
Aws::DeviceFarm::Model::DeviceInstance::GetDeviceArn
const Aws::String & GetDeviceArn() const
Definition: DeviceInstance.h:87
Aws::DeviceFarm::Model::DeviceInstance::SetDeviceArn
void SetDeviceArn(const char *value)
Definition: DeviceInstance.h:107
Aws::DeviceFarm::Model::DeviceInstance::WithInstanceProfile
DeviceInstance & WithInstanceProfile(InstanceProfile &&value)
Definition: DeviceInstance.h:271
InstanceStatus.h
Aws::DeviceFarm::Model::DeviceInstance::SetUdid
void SetUdid(const char *value)
Definition: DeviceInstance.h:225
Aws::DeviceFarm::Model::DeviceInstance::DeviceArnHasBeenSet
bool DeviceArnHasBeenSet() const
Definition: DeviceInstance.h:92
Aws::DeviceFarm::Model::DeviceInstance::StatusHasBeenSet
bool StatusHasBeenSet() const
Definition: DeviceInstance.h:179
Aws::DeviceFarm::Model::DeviceInstance::WithStatus
DeviceInstance & WithStatus(const InstanceStatus &value)
Definition: DeviceInstance.h:194
Aws::DeviceFarm::Model::DeviceInstance::WithArn
DeviceInstance & WithArn(Aws::String &&value)
Definition: DeviceInstance.h:76
Aws::DeviceFarm::Model::DeviceInstance::SetDeviceArn
void SetDeviceArn(const Aws::String &value)
Definition: DeviceInstance.h:97
Aws::DeviceFarm::Model::DeviceInstance::SetInstanceProfile
void SetInstanceProfile(InstanceProfile &&value)
Definition: DeviceInstance.h:261
Aws
Definition: AccessManagementClient.h:15
DeviceFarm_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::DeviceFarm::Model::DeviceInstance::WithArn
DeviceInstance & WithArn(const char *value)
Definition: DeviceInstance.h:81
Aws::DeviceFarm::Model::DeviceInstance::WithDeviceArn
DeviceInstance & WithDeviceArn(const char *value)
Definition: DeviceInstance.h:122
Aws::DeviceFarm::Model::DeviceInstance::GetLabels
const Aws::Vector< Aws::String > & GetLabels() const
Definition: DeviceInstance.h:128
Aws::DeviceFarm::Model::DeviceInstance::WithDeviceArn
DeviceInstance & WithDeviceArn(const Aws::String &value)
Definition: DeviceInstance.h:112
Aws::DeviceFarm::Model::DeviceInstance::WithArn
DeviceInstance & WithArn(const Aws::String &value)
Definition: DeviceInstance.h:71
Aws::DeviceFarm::Model::DeviceInstance::AddLabels
DeviceInstance & AddLabels(Aws::String &&value)
Definition: DeviceInstance.h:163