AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Device.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
27class Device {
28 public:
29 AWS_SAGEMAKER_API Device() = default;
30 AWS_SAGEMAKER_API Device(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SAGEMAKER_API Device& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetDeviceName() const { return m_deviceName; }
39 inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; }
40 template <typename DeviceNameT = Aws::String>
41 void SetDeviceName(DeviceNameT&& value) {
42 m_deviceNameHasBeenSet = true;
43 m_deviceName = std::forward<DeviceNameT>(value);
44 }
45 template <typename DeviceNameT = Aws::String>
46 Device& WithDeviceName(DeviceNameT&& value) {
47 SetDeviceName(std::forward<DeviceNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
64 Device& WithDescription(DescriptionT&& value) {
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetIotThingName() const { return m_iotThingName; }
75 inline bool IotThingNameHasBeenSet() const { return m_iotThingNameHasBeenSet; }
76 template <typename IotThingNameT = Aws::String>
77 void SetIotThingName(IotThingNameT&& value) {
78 m_iotThingNameHasBeenSet = true;
79 m_iotThingName = std::forward<IotThingNameT>(value);
80 }
81 template <typename IotThingNameT = Aws::String>
82 Device& WithIotThingName(IotThingNameT&& value) {
83 SetIotThingName(std::forward<IotThingNameT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_deviceName;
89
90 Aws::String m_description;
91
92 Aws::String m_iotThingName;
93 bool m_deviceNameHasBeenSet = false;
94 bool m_descriptionHasBeenSet = false;
95 bool m_iotThingNameHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace SageMaker
100} // namespace Aws
AWS_SAGEMAKER_API Device()=default
const Aws::String & GetDeviceName() const
Definition Device.h:38
void SetIotThingName(IotThingNameT &&value)
Definition Device.h:77
void SetDeviceName(DeviceNameT &&value)
Definition Device.h:41
Device & WithDeviceName(DeviceNameT &&value)
Definition Device.h:46
void SetDescription(DescriptionT &&value)
Definition Device.h:59
bool DescriptionHasBeenSet() const
Definition Device.h:57
AWS_SAGEMAKER_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
bool DeviceNameHasBeenSet() const
Definition Device.h:39
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
Device & WithIotThingName(IotThingNameT &&value)
Definition Device.h:82
bool IotThingNameHasBeenSet() const
Definition Device.h:75
AWS_SAGEMAKER_API Device(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetIotThingName() const
Definition Device.h:74
const Aws::String & GetDescription() const
Definition Device.h:56
Device & WithDescription(DescriptionT &&value)
Definition Device.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue