AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Thing.h
1
6#pragma once
7#include <aws/iotthingsgraph/IoTThingsGraph_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 IoTThingsGraph
22{
23namespace Model
24{
25
31 class Thing
32 {
33 public:
34 AWS_IOTTHINGSGRAPH_API Thing();
35 AWS_IOTTHINGSGRAPH_API Thing(Aws::Utils::Json::JsonView jsonValue);
36 AWS_IOTTHINGSGRAPH_API Thing& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetThingArn() const{ return m_thingArn; }
45 inline bool ThingArnHasBeenSet() const { return m_thingArnHasBeenSet; }
46 inline void SetThingArn(const Aws::String& value) { m_thingArnHasBeenSet = true; m_thingArn = value; }
47 inline void SetThingArn(Aws::String&& value) { m_thingArnHasBeenSet = true; m_thingArn = std::move(value); }
48 inline void SetThingArn(const char* value) { m_thingArnHasBeenSet = true; m_thingArn.assign(value); }
49 inline Thing& WithThingArn(const Aws::String& value) { SetThingArn(value); return *this;}
50 inline Thing& WithThingArn(Aws::String&& value) { SetThingArn(std::move(value)); return *this;}
51 inline Thing& WithThingArn(const char* value) { SetThingArn(value); return *this;}
53
55
58 inline const Aws::String& GetThingName() const{ return m_thingName; }
59 inline bool ThingNameHasBeenSet() const { return m_thingNameHasBeenSet; }
60 inline void SetThingName(const Aws::String& value) { m_thingNameHasBeenSet = true; m_thingName = value; }
61 inline void SetThingName(Aws::String&& value) { m_thingNameHasBeenSet = true; m_thingName = std::move(value); }
62 inline void SetThingName(const char* value) { m_thingNameHasBeenSet = true; m_thingName.assign(value); }
63 inline Thing& WithThingName(const Aws::String& value) { SetThingName(value); return *this;}
64 inline Thing& WithThingName(Aws::String&& value) { SetThingName(std::move(value)); return *this;}
65 inline Thing& WithThingName(const char* value) { SetThingName(value); return *this;}
67 private:
68
69 Aws::String m_thingArn;
70 bool m_thingArnHasBeenSet = false;
71
72 Aws::String m_thingName;
73 bool m_thingNameHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace IoTThingsGraph
78} // namespace Aws
void SetThingName(const char *value)
Definition Thing.h:62
AWS_IOTTHINGSGRAPH_API Thing & operator=(Aws::Utils::Json::JsonView jsonValue)
Thing & WithThingName(const char *value)
Definition Thing.h:65
bool ThingNameHasBeenSet() const
Definition Thing.h:59
AWS_IOTTHINGSGRAPH_API Thing(Aws::Utils::Json::JsonView jsonValue)
Thing & WithThingName(const Aws::String &value)
Definition Thing.h:63
Thing & WithThingArn(Aws::String &&value)
Definition Thing.h:50
const Aws::String & GetThingArn() const
Definition Thing.h:44
void SetThingName(const Aws::String &value)
Definition Thing.h:60
Thing & WithThingArn(const Aws::String &value)
Definition Thing.h:49
const Aws::String & GetThingName() const
Definition Thing.h:58
void SetThingArn(const Aws::String &value)
Definition Thing.h:46
Thing & WithThingName(Aws::String &&value)
Definition Thing.h:64
AWS_IOTTHINGSGRAPH_API Thing()
Thing & WithThingArn(const char *value)
Definition Thing.h:51
void SetThingArn(Aws::String &&value)
Definition Thing.h:47
void SetThingName(Aws::String &&value)
Definition Thing.h:61
void SetThingArn(const char *value)
Definition Thing.h:48
AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const
bool ThingArnHasBeenSet() const
Definition Thing.h:45
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue