AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Relationship.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/model/ResourceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ConfigService
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CONFIGSERVICE_API Relationship() = default;
37 AWS_CONFIGSERVICE_API Relationship(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CONFIGSERVICE_API Relationship& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline ResourceType GetResourceType() const { return m_resourceType; }
47 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
48 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
49 inline Relationship& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
51
53
56 inline const Aws::String& GetResourceId() const { return m_resourceId; }
57 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
58 template<typename ResourceIdT = Aws::String>
59 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
60 template<typename ResourceIdT = Aws::String>
61 Relationship& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetResourceName() const { return m_resourceName; }
69 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
70 template<typename ResourceNameT = Aws::String>
71 void SetResourceName(ResourceNameT&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::forward<ResourceNameT>(value); }
72 template<typename ResourceNameT = Aws::String>
73 Relationship& WithResourceName(ResourceNameT&& value) { SetResourceName(std::forward<ResourceNameT>(value)); return *this;}
75
77
80 inline const Aws::String& GetRelationshipName() const { return m_relationshipName; }
81 inline bool RelationshipNameHasBeenSet() const { return m_relationshipNameHasBeenSet; }
82 template<typename RelationshipNameT = Aws::String>
83 void SetRelationshipName(RelationshipNameT&& value) { m_relationshipNameHasBeenSet = true; m_relationshipName = std::forward<RelationshipNameT>(value); }
84 template<typename RelationshipNameT = Aws::String>
85 Relationship& WithRelationshipName(RelationshipNameT&& value) { SetRelationshipName(std::forward<RelationshipNameT>(value)); return *this;}
87 private:
88
89 ResourceType m_resourceType{ResourceType::NOT_SET};
90 bool m_resourceTypeHasBeenSet = false;
91
92 Aws::String m_resourceId;
93 bool m_resourceIdHasBeenSet = false;
94
95 Aws::String m_resourceName;
96 bool m_resourceNameHasBeenSet = false;
97
98 Aws::String m_relationshipName;
99 bool m_relationshipNameHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace ConfigService
104} // namespace Aws
const Aws::String & GetResourceName() const
void SetResourceId(ResourceIdT &&value)
void SetResourceName(ResourceNameT &&value)
Relationship & WithResourceName(ResourceNameT &&value)
Relationship & WithResourceType(ResourceType value)
AWS_CONFIGSERVICE_API Relationship(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRelationshipName() const
const Aws::String & GetResourceId() const
AWS_CONFIGSERVICE_API Relationship & operator=(Aws::Utils::Json::JsonView jsonValue)
Relationship & WithResourceId(ResourceIdT &&value)
Relationship & WithRelationshipName(RelationshipNameT &&value)
AWS_CONFIGSERVICE_API Relationship()=default
void SetResourceType(ResourceType value)
void SetRelationshipName(RelationshipNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue