AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
DeviceInstance.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/devicefarm/DeviceFarm_EXPORTS.h>
10#include <aws/devicefarm/model/InstanceProfile.h>
11#include <aws/devicefarm/model/InstanceStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DeviceFarm {
23namespace Model {
24
31 public:
32 AWS_DEVICEFARM_API DeviceInstance() = default;
33 AWS_DEVICEFARM_API DeviceInstance(Aws::Utils::Json::JsonView jsonValue);
34 AWS_DEVICEFARM_API DeviceInstance& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
49 DeviceInstance& WithArn(ArnT&& value) {
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
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) {
63 m_deviceArnHasBeenSet = true;
64 m_deviceArn = std::forward<DeviceArnT>(value);
65 }
66 template <typename DeviceArnT = Aws::String>
67 DeviceInstance& WithDeviceArn(DeviceArnT&& value) {
68 SetDeviceArn(std::forward<DeviceArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<Aws::String>& GetLabels() const { return m_labels; }
78 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
79 template <typename LabelsT = Aws::Vector<Aws::String>>
80 void SetLabels(LabelsT&& value) {
81 m_labelsHasBeenSet = true;
82 m_labels = std::forward<LabelsT>(value);
83 }
84 template <typename LabelsT = Aws::Vector<Aws::String>>
85 DeviceInstance& WithLabels(LabelsT&& value) {
86 SetLabels(std::forward<LabelsT>(value));
87 return *this;
88 }
89 template <typename LabelsT = Aws::String>
90 DeviceInstance& AddLabels(LabelsT&& value) {
91 m_labelsHasBeenSet = true;
92 m_labels.emplace_back(std::forward<LabelsT>(value));
93 return *this;
94 }
96
98
101 inline InstanceStatus GetStatus() const { return m_status; }
102 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
103 inline void SetStatus(InstanceStatus value) {
104 m_statusHasBeenSet = true;
105 m_status = value;
106 }
108 SetStatus(value);
109 return *this;
110 }
112
114
117 inline const Aws::String& GetUdid() const { return m_udid; }
118 inline bool UdidHasBeenSet() const { return m_udidHasBeenSet; }
119 template <typename UdidT = Aws::String>
120 void SetUdid(UdidT&& value) {
121 m_udidHasBeenSet = true;
122 m_udid = std::forward<UdidT>(value);
123 }
124 template <typename UdidT = Aws::String>
125 DeviceInstance& WithUdid(UdidT&& value) {
126 SetUdid(std::forward<UdidT>(value));
127 return *this;
128 }
130
132
135 inline const InstanceProfile& GetInstanceProfile() const { return m_instanceProfile; }
136 inline bool InstanceProfileHasBeenSet() const { return m_instanceProfileHasBeenSet; }
137 template <typename InstanceProfileT = InstanceProfile>
138 void SetInstanceProfile(InstanceProfileT&& value) {
139 m_instanceProfileHasBeenSet = true;
140 m_instanceProfile = std::forward<InstanceProfileT>(value);
141 }
142 template <typename InstanceProfileT = InstanceProfile>
143 DeviceInstance& WithInstanceProfile(InstanceProfileT&& value) {
144 SetInstanceProfile(std::forward<InstanceProfileT>(value));
145 return *this;
146 }
148 private:
149 Aws::String m_arn;
150
151 Aws::String m_deviceArn;
152
154
156
157 Aws::String m_udid;
158
159 InstanceProfile m_instanceProfile;
160 bool m_arnHasBeenSet = false;
161 bool m_deviceArnHasBeenSet = false;
162 bool m_labelsHasBeenSet = false;
163 bool m_statusHasBeenSet = false;
164 bool m_udidHasBeenSet = false;
165 bool m_instanceProfileHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace DeviceFarm
170} // 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