AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DeviceInstance.h
1
6#pragma once
7#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/devicefarm/model/InstanceStatus.h>
11#include <aws/devicefarm/model/InstanceProfile.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 DeviceInstance() = default;
38 AWS_DEVICEFARM_API DeviceInstance(Aws::Utils::Json::JsonView jsonValue);
39 AWS_DEVICEFARM_API DeviceInstance& 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 template<typename ArnT = Aws::String>
50 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
51 template<typename ArnT = Aws::String>
52 DeviceInstance& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDeviceArn() const { return m_deviceArn; }
60 inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
61 template<typename DeviceArnT = Aws::String>
62 void SetDeviceArn(DeviceArnT&& value) { m_deviceArnHasBeenSet = true; m_deviceArn = std::forward<DeviceArnT>(value); }
63 template<typename DeviceArnT = Aws::String>
64 DeviceInstance& WithDeviceArn(DeviceArnT&& value) { SetDeviceArn(std::forward<DeviceArnT>(value)); return *this;}
66
68
71 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
72 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
73 template<typename LabelsT = Aws::Vector<Aws::String>>
74 void SetLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels = std::forward<LabelsT>(value); }
75 template<typename LabelsT = Aws::Vector<Aws::String>>
76 DeviceInstance& WithLabels(LabelsT&& value) { SetLabels(std::forward<LabelsT>(value)); return *this;}
77 template<typename LabelsT = Aws::String>
78 DeviceInstance& AddLabels(LabelsT&& value) { m_labelsHasBeenSet = true; m_labels.emplace_back(std::forward<LabelsT>(value)); return *this; }
80
82
85 inline InstanceStatus GetStatus() const { return m_status; }
86 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
87 inline void SetStatus(InstanceStatus value) { m_statusHasBeenSet = true; m_status = value; }
88 inline DeviceInstance& WithStatus(InstanceStatus value) { SetStatus(value); return *this;}
90
92
95 inline const Aws::String& GetUdid() const { return m_udid; }
96 inline bool UdidHasBeenSet() const { return m_udidHasBeenSet; }
97 template<typename UdidT = Aws::String>
98 void SetUdid(UdidT&& value) { m_udidHasBeenSet = true; m_udid = std::forward<UdidT>(value); }
99 template<typename UdidT = Aws::String>
100 DeviceInstance& WithUdid(UdidT&& value) { SetUdid(std::forward<UdidT>(value)); return *this;}
102
104
107 inline const InstanceProfile& GetInstanceProfile() const { return m_instanceProfile; }
108 inline bool InstanceProfileHasBeenSet() const { return m_instanceProfileHasBeenSet; }
109 template<typename InstanceProfileT = InstanceProfile>
110 void SetInstanceProfile(InstanceProfileT&& value) { m_instanceProfileHasBeenSet = true; m_instanceProfile = std::forward<InstanceProfileT>(value); }
111 template<typename InstanceProfileT = InstanceProfile>
112 DeviceInstance& WithInstanceProfile(InstanceProfileT&& value) { SetInstanceProfile(std::forward<InstanceProfileT>(value)); return *this;}
114 private:
115
116 Aws::String m_arn;
117 bool m_arnHasBeenSet = false;
118
119 Aws::String m_deviceArn;
120 bool m_deviceArnHasBeenSet = false;
121
123 bool m_labelsHasBeenSet = false;
124
126 bool m_statusHasBeenSet = false;
127
128 Aws::String m_udid;
129 bool m_udidHasBeenSet = false;
130
131 InstanceProfile m_instanceProfile;
132 bool m_instanceProfileHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace DeviceFarm
137} // namespace Aws
const Aws::Vector< Aws::String > & GetLabels() const
DeviceInstance & WithUdid(UdidT &&value)
void SetDeviceArn(DeviceArnT &&value)
DeviceInstance & AddLabels(LabelsT &&value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetArn() const
DeviceInstance & WithArn(ArnT &&value)
const Aws::String & GetUdid() const
const InstanceProfile & GetInstanceProfile() const
DeviceInstance & WithDeviceArn(DeviceArnT &&value)
void SetStatus(InstanceStatus value)
AWS_DEVICEFARM_API DeviceInstance(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API DeviceInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
DeviceInstance & WithLabels(LabelsT &&value)
const Aws::String & GetDeviceArn() const
DeviceInstance & WithStatus(InstanceStatus value)
AWS_DEVICEFARM_API DeviceInstance()=default
void SetInstanceProfile(InstanceProfileT &&value)
DeviceInstance & WithInstanceProfile(InstanceProfileT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue