AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
Relationship.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 Relationship() = default;
31 AWS_IOTTWINMAKER_API Relationship(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTTWINMAKER_API Relationship& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetTargetComponentTypeId() const { return m_targetComponentTypeId; }
40 inline bool TargetComponentTypeIdHasBeenSet() const { return m_targetComponentTypeIdHasBeenSet; }
41 template <typename TargetComponentTypeIdT = Aws::String>
42 void SetTargetComponentTypeId(TargetComponentTypeIdT&& value) {
43 m_targetComponentTypeIdHasBeenSet = true;
44 m_targetComponentTypeId = std::forward<TargetComponentTypeIdT>(value);
45 }
46 template <typename TargetComponentTypeIdT = Aws::String>
47 Relationship& WithTargetComponentTypeId(TargetComponentTypeIdT&& value) {
48 SetTargetComponentTypeId(std::forward<TargetComponentTypeIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRelationshipType() const { return m_relationshipType; }
58 inline bool RelationshipTypeHasBeenSet() const { return m_relationshipTypeHasBeenSet; }
59 template <typename RelationshipTypeT = Aws::String>
60 void SetRelationshipType(RelationshipTypeT&& value) {
61 m_relationshipTypeHasBeenSet = true;
62 m_relationshipType = std::forward<RelationshipTypeT>(value);
63 }
64 template <typename RelationshipTypeT = Aws::String>
65 Relationship& WithRelationshipType(RelationshipTypeT&& value) {
66 SetRelationshipType(std::forward<RelationshipTypeT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_targetComponentTypeId;
72
73 Aws::String m_relationshipType;
74 bool m_targetComponentTypeIdHasBeenSet = false;
75 bool m_relationshipTypeHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace IoTTwinMaker
80} // namespace Aws
void SetRelationshipType(RelationshipTypeT &&value)
const Aws::String & GetTargetComponentTypeId() const
AWS_IOTTWINMAKER_API Relationship()=default
void SetTargetComponentTypeId(TargetComponentTypeIdT &&value)
Relationship & WithRelationshipType(RelationshipTypeT &&value)
AWS_IOTTWINMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRelationshipType() const
Relationship & WithTargetComponentTypeId(TargetComponentTypeIdT &&value)
AWS_IOTTWINMAKER_API Relationship(Aws::Utils::Json::JsonView jsonValue)
AWS_IOTTWINMAKER_API Relationship & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue