AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 DeviceInstance& WithArn(const Aws::String& value) { SetArn(value); return *this;}
53 inline DeviceInstance& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
54 inline DeviceInstance& WithArn(const char* value) { SetArn(value); return *this;}
56
58
61 inline const Aws::String& GetDeviceArn() const{ return m_deviceArn; }
62 inline bool DeviceArnHasBeenSet() const { return m_deviceArnHasBeenSet; }
63 inline void SetDeviceArn(const Aws::String& value) { m_deviceArnHasBeenSet = true; m_deviceArn = value; }
64 inline void SetDeviceArn(Aws::String&& value) { m_deviceArnHasBeenSet = true; m_deviceArn = std::move(value); }
65 inline void SetDeviceArn(const char* value) { m_deviceArnHasBeenSet = true; m_deviceArn.assign(value); }
66 inline DeviceInstance& WithDeviceArn(const Aws::String& value) { SetDeviceArn(value); return *this;}
67 inline DeviceInstance& WithDeviceArn(Aws::String&& value) { SetDeviceArn(std::move(value)); return *this;}
68 inline DeviceInstance& WithDeviceArn(const char* value) { SetDeviceArn(value); return *this;}
70
72
75 inline const Aws::Vector<Aws::String>& GetLabels() const{ return m_labels; }
76 inline bool LabelsHasBeenSet() const { return m_labelsHasBeenSet; }
77 inline void SetLabels(const Aws::Vector<Aws::String>& value) { m_labelsHasBeenSet = true; m_labels = value; }
78 inline void SetLabels(Aws::Vector<Aws::String>&& value) { m_labelsHasBeenSet = true; m_labels = std::move(value); }
79 inline DeviceInstance& WithLabels(const Aws::Vector<Aws::String>& value) { SetLabels(value); return *this;}
80 inline DeviceInstance& WithLabels(Aws::Vector<Aws::String>&& value) { SetLabels(std::move(value)); return *this;}
81 inline DeviceInstance& AddLabels(const Aws::String& value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
82 inline DeviceInstance& AddLabels(Aws::String&& value) { m_labelsHasBeenSet = true; m_labels.push_back(std::move(value)); return *this; }
83 inline DeviceInstance& AddLabels(const char* value) { m_labelsHasBeenSet = true; m_labels.push_back(value); return *this; }
85
87
90 inline const InstanceStatus& GetStatus() const{ return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(const InstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
93 inline void SetStatus(InstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
94 inline DeviceInstance& WithStatus(const InstanceStatus& value) { SetStatus(value); return *this;}
95 inline DeviceInstance& WithStatus(InstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
97
99
102 inline const Aws::String& GetUdid() const{ return m_udid; }
103 inline bool UdidHasBeenSet() const { return m_udidHasBeenSet; }
104 inline void SetUdid(const Aws::String& value) { m_udidHasBeenSet = true; m_udid = value; }
105 inline void SetUdid(Aws::String&& value) { m_udidHasBeenSet = true; m_udid = std::move(value); }
106 inline void SetUdid(const char* value) { m_udidHasBeenSet = true; m_udid.assign(value); }
107 inline DeviceInstance& WithUdid(const Aws::String& value) { SetUdid(value); return *this;}
108 inline DeviceInstance& WithUdid(Aws::String&& value) { SetUdid(std::move(value)); return *this;}
109 inline DeviceInstance& WithUdid(const char* value) { SetUdid(value); return *this;}
111
113
116 inline const InstanceProfile& GetInstanceProfile() const{ return m_instanceProfile; }
117 inline bool InstanceProfileHasBeenSet() const { return m_instanceProfileHasBeenSet; }
118 inline void SetInstanceProfile(const InstanceProfile& value) { m_instanceProfileHasBeenSet = true; m_instanceProfile = value; }
119 inline void SetInstanceProfile(InstanceProfile&& value) { m_instanceProfileHasBeenSet = true; m_instanceProfile = std::move(value); }
120 inline DeviceInstance& WithInstanceProfile(const InstanceProfile& value) { SetInstanceProfile(value); return *this;}
121 inline DeviceInstance& WithInstanceProfile(InstanceProfile&& value) { SetInstanceProfile(std::move(value)); return *this;}
123 private:
124
125 Aws::String m_arn;
126 bool m_arnHasBeenSet = false;
127
128 Aws::String m_deviceArn;
129 bool m_deviceArnHasBeenSet = false;
130
132 bool m_labelsHasBeenSet = false;
133
134 InstanceStatus m_status;
135 bool m_statusHasBeenSet = false;
136
137 Aws::String m_udid;
138 bool m_udidHasBeenSet = false;
139
140 InstanceProfile m_instanceProfile;
141 bool m_instanceProfileHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace DeviceFarm
146} // namespace Aws
void SetLabels(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Aws::String > & GetLabels() const
void SetStatus(InstanceStatus &&value)
DeviceInstance & WithLabels(const Aws::Vector< Aws::String > &value)
DeviceInstance & AddLabels(const char *value)
const InstanceStatus & GetStatus() const
DeviceInstance & WithInstanceProfile(InstanceProfile &&value)
DeviceInstance & WithStatus(InstanceStatus &&value)
DeviceInstance & WithUdid(const char *value)
AWS_DEVICEFARM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetStatus(const InstanceStatus &value)
void SetDeviceArn(const Aws::String &value)
DeviceInstance & AddLabels(const Aws::String &value)
void SetArn(const Aws::String &value)
const Aws::String & GetArn() const
DeviceInstance & WithDeviceArn(Aws::String &&value)
const Aws::String & GetUdid() const
DeviceInstance & WithDeviceArn(const char *value)
DeviceInstance & WithInstanceProfile(const InstanceProfile &value)
DeviceInstance & WithUdid(const Aws::String &value)
DeviceInstance & WithArn(const char *value)
DeviceInstance & WithDeviceArn(const Aws::String &value)
const InstanceProfile & GetInstanceProfile() const
DeviceInstance & WithArn(const Aws::String &value)
AWS_DEVICEFARM_API DeviceInstance(Aws::Utils::Json::JsonView jsonValue)
AWS_DEVICEFARM_API DeviceInstance & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetInstanceProfile(InstanceProfile &&value)
void SetLabels(Aws::Vector< Aws::String > &&value)
DeviceInstance & WithUdid(Aws::String &&value)
void SetInstanceProfile(const InstanceProfile &value)
void SetUdid(const Aws::String &value)
const Aws::String & GetDeviceArn() const
DeviceInstance & AddLabels(Aws::String &&value)
DeviceInstance & WithStatus(const InstanceStatus &value)
void SetDeviceArn(Aws::String &&value)
DeviceInstance & WithArn(Aws::String &&value)
DeviceInstance & WithLabels(Aws::Vector< Aws::String > &&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