AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Device.h
1
6#pragma once
7#include <aws/greengrass/Greengrass_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Greengrass
22{
23namespace Model
24{
25
31 class Device
32 {
33 public:
34 AWS_GREENGRASS_API Device();
35 AWS_GREENGRASS_API Device(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GREENGRASS_API Device& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
45 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
46 inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
47 inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
48 inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
49 inline Device& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
50 inline Device& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
51 inline Device& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
53
55
60 inline const Aws::String& GetId() const{ return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
63 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
64 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
65 inline Device& WithId(const Aws::String& value) { SetId(value); return *this;}
66 inline Device& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
67 inline Device& WithId(const char* value) { SetId(value); return *this;}
69
71
74 inline bool GetSyncShadow() const{ return m_syncShadow; }
75 inline bool SyncShadowHasBeenSet() const { return m_syncShadowHasBeenSet; }
76 inline void SetSyncShadow(bool value) { m_syncShadowHasBeenSet = true; m_syncShadow = value; }
77 inline Device& WithSyncShadow(bool value) { SetSyncShadow(value); return *this;}
79
81
84 inline const Aws::String& GetThingArn() const{ return m_thingArn; }
85 inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
86 inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
87 inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
88 inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
89 inline Device& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
90 inline Device& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
91 inline Device& WithThingArn(const char* value) { SetThingArn(value); return *this;}
93 private:
94
95 Aws::String m_certificateArn;
96 bool m_certificateArnHasBeenSet = false;
97
98 Aws::String m_id;
99 bool m_idHasBeenSet = false;
100
101 bool m_syncShadow;
102 bool m_syncShadowHasBeenSet = false;
103
104 Aws::String m_thingArn;
105 bool m_thingArnHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Greengrass
110} // namespace Aws
Device & WithId(const Aws::String &value)
Definition Device.h:65
AWS_GREENGRASS_API Device & operator=(Aws::Utils::Json::JsonView jsonValue)
Device & WithCertificateArn(const Aws::String &value)
Definition Device.h:49
bool CertificateArnHasBeenSet() const
Definition Device.h:45
Device & WithSyncShadow(bool value)
Definition Device.h:77
Device & WithCertificateArn(Aws::String &&value)
Definition Device.h:50
const Aws::String & GetId() const
Definition Device.h:60
void SetSyncShadow(bool value)
Definition Device.h:76
Device & WithThingArn(const Aws::String &value)
Definition Device.h:89
Device & WithId(const char *value)
Definition Device.h:67
Device & WithCertificateArn(const char *value)
Definition Device.h:51
void SetThingArn(const Aws::String &value)
Definition Device.h:86
AWS_GREENGRASS_API Device()
void SetCertificateArn(const Aws::String &value)
Definition Device.h:46
const Aws::String & GetThingArn() const
Definition Device.h:84
void SetId(Aws::String &&value)
Definition Device.h:63
Device & WithId(Aws::String &&value)
Definition Device.h:66
Device & WithThingArn(Aws::String &&value)
Definition Device.h:90
void SetCertificateArn(Aws::String &&value)
Definition Device.h:47
const Aws::String & GetCertificateArn() const
Definition Device.h:44
bool ThingArnHasBeenSet() const
Definition Device.h:85
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetThingArn(Aws::String &&value)
Definition Device.h:87
Device & WithThingArn(const char *value)
Definition Device.h:91
bool SyncShadowHasBeenSet() const
Definition Device.h:75
void SetCertificateArn(const char *value)
Definition Device.h:48
AWS_GREENGRASS_API Device(Aws::Utils::Json::JsonView jsonValue)
void SetId(const char *value)
Definition Device.h:64
void SetId(const Aws::String &value)
Definition Device.h:62
void SetThingArn(const char *value)
Definition Device.h:88
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue