AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
Core.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 Core {
28 public:
29 AWS_GREENGRASS_API Core() = default;
30 AWS_GREENGRASS_API Core(Aws::Utils::Json::JsonView jsonValue);
31 AWS_GREENGRASS_API Core& 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 Core& 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 Core& 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 Core& 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 Core& 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
Core & WithThingArn(ThingArnT &&value)
Definition Core.h:100
void SetSyncShadow(bool value)
Definition Core.h:78
Core & WithCertificateArn(CertificateArnT &&value)
Definition Core.h:46
bool IdHasBeenSet() const
Definition Core.h:59
const Aws::String & GetId() const
Definition Core.h:58
bool GetSyncShadow() const
Definition Core.h:76
bool CertificateArnHasBeenSet() const
Definition Core.h:39
const Aws::String & GetThingArn() const
Definition Core.h:92
void SetThingArn(ThingArnT &&value)
Definition Core.h:95
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASS_API Core()=default
bool SyncShadowHasBeenSet() const
Definition Core.h:77
const Aws::String & GetCertificateArn() const
Definition Core.h:38
AWS_GREENGRASS_API Core(Aws::Utils::Json::JsonView jsonValue)
void SetId(IdT &&value)
Definition Core.h:61
void SetCertificateArn(CertificateArnT &&value)
Definition Core.h:41
Core & WithSyncShadow(bool value)
Definition Core.h:82
AWS_GREENGRASS_API Core & operator=(Aws::Utils::Json::JsonView jsonValue)
Core & WithId(IdT &&value)
Definition Core.h:66
bool ThingArnHasBeenSet() const
Definition Core.h:93
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue