AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Core.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 Core
32 {
33 public:
34 AWS_GREENGRASS_API Core() = default;
35 AWS_GREENGRASS_API Core(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GREENGRASS_API Core& 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 template<typename CertificateArnT = Aws::String>
47 void SetCertificateArn(CertificateArnT&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::forward<CertificateArnT>(value); }
48 template<typename CertificateArnT = Aws::String>
49 Core& WithCertificateArn(CertificateArnT&& value) { SetCertificateArn(std::forward<CertificateArnT>(value)); return *this;}
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
62 template<typename IdT = Aws::String>
63 Core& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
65
67
70 inline bool GetSyncShadow() const { return m_syncShadow; }
71 inline bool SyncShadowHasBeenSet() const { return m_syncShadowHasBeenSet; }
72 inline void SetSyncShadow(bool value) { m_syncShadowHasBeenSet = true; m_syncShadow = value; }
73 inline Core& WithSyncShadow(bool value) { SetSyncShadow(value); return *this;}
75
77
80 inline const Aws::String& GetThingArn() const { return m_thingArn; }
81 inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
82 template<typename ThingArnT = Aws::String>
83 void SetThingArn(ThingArnT&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::forward<ThingArnT>(value); }
84 template<typename ThingArnT = Aws::String>
85 Core& WithThingArn(ThingArnT&& value) { SetThingArn(std::forward<ThingArnT>(value)); return *this;}
87 private:
88
89 Aws::String m_certificateArn;
90 bool m_certificateArnHasBeenSet = false;
91
92 Aws::String m_id;
93 bool m_idHasBeenSet = false;
94
95 bool m_syncShadow{false};
96 bool m_syncShadowHasBeenSet = false;
97
98 Aws::String m_thingArn;
99 bool m_thingArnHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Greengrass
104} // namespace Aws
Core & WithThingArn(ThingArnT &&value)
Definition Core.h:85
void SetSyncShadow(bool value)
Definition Core.h:72
Core & WithCertificateArn(CertificateArnT &&value)
Definition Core.h:49
bool IdHasBeenSet() const
Definition Core.h:59
const Aws::String & GetId() const
Definition Core.h:58
bool GetSyncShadow() const
Definition Core.h:70
bool CertificateArnHasBeenSet() const
Definition Core.h:45
const Aws::String & GetThingArn() const
Definition Core.h:80
void SetThingArn(ThingArnT &&value)
Definition Core.h:83
AWS_GREENGRASS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GREENGRASS_API Core()=default
bool SyncShadowHasBeenSet() const
Definition Core.h:71
const Aws::String & GetCertificateArn() const
Definition Core.h:44
AWS_GREENGRASS_API Core(Aws::Utils::Json::JsonView jsonValue)
void SetId(IdT &&value)
Definition Core.h:61
void SetCertificateArn(CertificateArnT &&value)
Definition Core.h:47
Core & WithSyncShadow(bool value)
Definition Core.h:73
AWS_GREENGRASS_API Core & operator=(Aws::Utils::Json::JsonView jsonValue)
Core & WithId(IdT &&value)
Definition Core.h:63
bool ThingArnHasBeenSet() const
Definition Core.h:81
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue