AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
EntityDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotthingsgraph/IoTThingsGraph_EXPORTS.h>
10#include <aws/iotthingsgraph/model/DefinitionDocument.h>
11#include <aws/iotthingsgraph/model/EntityType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoTThingsGraph {
23namespace Model {
24
31 public:
32 AWS_IOTTHINGSGRAPH_API EntityDescription() = default;
33 AWS_IOTTHINGSGRAPH_API EntityDescription(Aws::Utils::Json::JsonView jsonValue);
34 AWS_IOTTHINGSGRAPH_API EntityDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
49 EntityDescription& WithId(IdT&& value) {
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
67 EntityDescription& WithArn(ArnT&& value) {
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
77 inline EntityType GetType() const { return m_type; }
78 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
79 inline void SetType(EntityType value) {
80 m_typeHasBeenSet = true;
81 m_type = value;
82 }
84 SetType(value);
85 return *this;
86 }
88
90
93 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
94 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
95 template <typename CreatedAtT = Aws::Utils::DateTime>
96 void SetCreatedAt(CreatedAtT&& value) {
97 m_createdAtHasBeenSet = true;
98 m_createdAt = std::forward<CreatedAtT>(value);
99 }
100 template <typename CreatedAtT = Aws::Utils::DateTime>
101 EntityDescription& WithCreatedAt(CreatedAtT&& value) {
102 SetCreatedAt(std::forward<CreatedAtT>(value));
103 return *this;
104 }
106
108
111 inline const DefinitionDocument& GetDefinition() const { return m_definition; }
112 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
113 template <typename DefinitionT = DefinitionDocument>
114 void SetDefinition(DefinitionT&& value) {
115 m_definitionHasBeenSet = true;
116 m_definition = std::forward<DefinitionT>(value);
117 }
118 template <typename DefinitionT = DefinitionDocument>
119 EntityDescription& WithDefinition(DefinitionT&& value) {
120 SetDefinition(std::forward<DefinitionT>(value));
121 return *this;
122 }
124 private:
125 Aws::String m_id;
126
127 Aws::String m_arn;
128
130
131 Aws::Utils::DateTime m_createdAt{};
132
133 DefinitionDocument m_definition;
134 bool m_idHasBeenSet = false;
135 bool m_arnHasBeenSet = false;
136 bool m_typeHasBeenSet = false;
137 bool m_createdAtHasBeenSet = false;
138 bool m_definitionHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace IoTThingsGraph
143} // namespace Aws
EntityDescription & WithDefinition(DefinitionT &&value)
EntityDescription & WithCreatedAt(CreatedAtT &&value)
AWS_IOTTHINGSGRAPH_API EntityDescription()=default
AWS_IOTTHINGSGRAPH_API EntityDescription(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const
const DefinitionDocument & GetDefinition() const
EntityDescription & WithArn(ArnT &&value)
AWS_IOTTHINGSGRAPH_API EntityDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedAt() const
EntityDescription & WithType(EntityType value)
EntityDescription & WithId(IdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue