AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
Device.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/greengrass/Greengrass_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Greengrass {
20namespace Model {
21
27class Device {
28 public:
29 AWS_GREENGRASS_API Device() = default;
30 AWS_GREENGRASS_API Device(Aws::Utils::Json::JsonView jsonValue);
31 AWS_GREENGRASS_API Device& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
39 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
40 template <typename CertificateArnT = Aws::String>
41 void SetCertificateArn(CertificateArnT&& value) {
42 m_certificateArnHasBeenSet = true;
43 m_certificateArn = std::forward<CertificateArnT>(value);
44 }
45 template <typename CertificateArnT = Aws::String>
46 Device& WithCertificateArn(CertificateArnT&& value) {
47 SetCertificateArn(std::forward<CertificateArnT>(value));
48 return *this;
49 }
51
53
58 inline const Aws::String& GetId() const { return m_id; }
59 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
60 template <typename IdT = Aws::String>
61 void SetId(IdT&& value) {
62 m_idHasBeenSet = true;
63 m_id = std::forward<IdT>(value);
64 }
65 template <typename IdT = Aws::String>
66 Device& WithId(IdT&& value) {
67 SetId(std::forward<IdT>(value));
68 return *this;
69 }
71
73
76 inline bool GetSyncShadow() const { return m_syncShadow; }
77 inline bool SyncShadowHasBeenSet() const { return m_syncShadowHasBeenSet; }
78 inline void SetSyncShadow(bool value) {
79 m_syncShadowHasBeenSet = true;
80 m_syncShadow = value;
81 }
82 inline Device& WithSyncShadow(bool value) {
83 SetSyncShadow(value);
84 return *this;
85 }
87
89
92 inline const Aws::String& GetThingArn() const { return m_thingArn; }
93 inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
94 template <typename ThingArnT = Aws::String>
95 void SetThingArn(ThingArnT&& value) {
96 m_thingArnHasBeenSet = true;
97 m_thingArn = std::forward<ThingArnT>(value);
98 }
99 template <typename ThingArnT = Aws::String>
100 Device& WithThingArn(ThingArnT&& value) {
101 SetThingArn(std::forward<ThingArnT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_certificateArn;
107
108 Aws::String m_id;
109
110 bool m_syncShadow{false};
111
112 Aws::String m_thingArn;
113 bool m_certificateArnHasBeenSet = false;
114 bool m_idHasBeenSet = false;
115 bool m_syncShadowHasBeenSet = false;
116 bool m_thingArnHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace Greengrass
121} // namespace Aws
AWS_GREENGRASS_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
bool CertificateArnHasBeenSet() const
Definition Device.h:39
Device & WithSyncShadow(bool value)
Definition Device.h:82
const Aws::String & GetId() const
Definition Device.h:58
void SetSyncShadow(bool value)
Definition Device.h:78
void SetCertificateArn(CertificateArnT &&value)
Definition Device.h:41
Device & WithId(IdT &&value)
Definition Device.h:66
const Aws::String & GetThingArn() const
Definition Device.h:92
Device & WithThingArn(ThingArnT &&value)
Definition Device.h:100
const Aws::String & GetCertificateArn() const
Definition Device.h:38
bool ThingArnHasBeenSet() const
Definition Device.h:93
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetId(IdT &&value)
Definition Device.h:61
Device & WithCertificateArn(CertificateArnT &&value)
Definition Device.h:46
AWS_GREENGRASS_API Device()=default
bool SyncShadowHasBeenSet() const
Definition Device.h:77
AWS_GREENGRASS_API Device(Aws::Utils::Json::JsonView jsonValue)
void SetThingArn(ThingArnT &&value)
Definition Device.h:95
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue