AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
EntityDescription.h
1
6#pragma once
7#include <aws/iotthingsgraph/IoTThingsGraph_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iotthingsgraph/model/EntityType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/iotthingsgraph/model/DefinitionDocument.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace IoTThingsGraph
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_IOTTHINGSGRAPH_API EntityDescription() = default;
38 AWS_IOTTHINGSGRAPH_API EntityDescription(Aws::Utils::Json::JsonView jsonValue);
39 AWS_IOTTHINGSGRAPH_API EntityDescription& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_IOTTHINGSGRAPH_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 EntityDescription& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
63 template<typename ArnT = Aws::String>
64 EntityDescription& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
66
68
71 inline EntityType GetType() const { return m_type; }
72 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
73 inline void SetType(EntityType value) { m_typeHasBeenSet = true; m_type = value; }
74 inline EntityDescription& WithType(EntityType value) { SetType(value); return *this;}
76
78
81 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
82 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
83 template<typename CreatedAtT = Aws::Utils::DateTime>
84 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
85 template<typename CreatedAtT = Aws::Utils::DateTime>
86 EntityDescription& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
88
90
93 inline const DefinitionDocument& GetDefinition() const { return m_definition; }
94 inline bool DefinitionHasBeenSet() const { return m_definitionHasBeenSet; }
95 template<typename DefinitionT = DefinitionDocument>
96 void SetDefinition(DefinitionT&& value) { m_definitionHasBeenSet = true; m_definition = std::forward<DefinitionT>(value); }
97 template<typename DefinitionT = DefinitionDocument>
98 EntityDescription& WithDefinition(DefinitionT&& value) { SetDefinition(std::forward<DefinitionT>(value)); return *this;}
100 private:
101
102 Aws::String m_id;
103 bool m_idHasBeenSet = false;
104
105 Aws::String m_arn;
106 bool m_arnHasBeenSet = false;
107
109 bool m_typeHasBeenSet = false;
110
111 Aws::Utils::DateTime m_createdAt{};
112 bool m_createdAtHasBeenSet = false;
113
114 DefinitionDocument m_definition;
115 bool m_definitionHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace IoTThingsGraph
120} // 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