AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
RelationshipValue.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iottwinmaker/IoTTwinMaker_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoTTwinMaker {
20namespace Model {
21
29 public:
30 AWS_IOTTWINMAKER_API RelationshipValue() = default;
31 AWS_IOTTWINMAKER_API RelationshipValue(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTTWINMAKER_API RelationshipValue& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetTargetEntityId() const { return m_targetEntityId; }
40 inline bool TargetEntityIdHasBeenSet() const { return m_targetEntityIdHasBeenSet; }
41 template <typename TargetEntityIdT = Aws::String>
42 void SetTargetEntityId(TargetEntityIdT&& value) {
43 m_targetEntityIdHasBeenSet = true;
44 m_targetEntityId = std::forward<TargetEntityIdT>(value);
45 }
46 template <typename TargetEntityIdT = Aws::String>
47 RelationshipValue& WithTargetEntityId(TargetEntityIdT&& value) {
48 SetTargetEntityId(std::forward<TargetEntityIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetTargetComponentName() const { return m_targetComponentName; }
58 inline bool TargetComponentNameHasBeenSet() const { return m_targetComponentNameHasBeenSet; }
59 template <typename TargetComponentNameT = Aws::String>
60 void SetTargetComponentName(TargetComponentNameT&& value) {
61 m_targetComponentNameHasBeenSet = true;
62 m_targetComponentName = std::forward<TargetComponentNameT>(value);
63 }
64 template <typename TargetComponentNameT = Aws::String>
65 RelationshipValue& WithTargetComponentName(TargetComponentNameT&& value) {
66 SetTargetComponentName(std::forward<TargetComponentNameT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_targetEntityId;
72
73 Aws::String m_targetComponentName;
74 bool m_targetEntityIdHasBeenSet = false;
75 bool m_targetComponentNameHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace IoTTwinMaker
80} // namespace Aws
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetTargetComponentName(TargetComponentNameT &&value)
void SetTargetEntityId(TargetEntityIdT &&value)
AWS_IOTTWINMAKER_API RelationshipValue(Aws::Utils::Json::JsonView jsonValue)
RelationshipValue & WithTargetEntityId(TargetEntityIdT &&value)
AWS_IOTTWINMAKER_API RelationshipValue()=default
const Aws::String & GetTargetComponentName() const
AWS_IOTTWINMAKER_API RelationshipValue & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetTargetEntityId() const
RelationshipValue & WithTargetComponentName(TargetComponentNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue