AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ConfigService {
21namespace Model {
22
30 public:
31 AWS_CONFIGSERVICE_API Relationship() = default;
32 AWS_CONFIGSERVICE_API Relationship(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CONFIGSERVICE_API Relationship& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline ResourceType GetResourceType() const { return m_resourceType; }
41 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
42 inline void SetResourceType(ResourceType value) {
43 m_resourceTypeHasBeenSet = true;
44 m_resourceType = value;
45 }
47 SetResourceType(value);
48 return *this;
49 }
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) {
60 m_resourceIdHasBeenSet = true;
61 m_resourceId = std::forward<ResourceIdT>(value);
62 }
63 template <typename ResourceIdT = Aws::String>
64 Relationship& WithResourceId(ResourceIdT&& value) {
65 SetResourceId(std::forward<ResourceIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetResourceName() const { return m_resourceName; }
75 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
76 template <typename ResourceNameT = Aws::String>
77 void SetResourceName(ResourceNameT&& value) {
78 m_resourceNameHasBeenSet = true;
79 m_resourceName = std::forward<ResourceNameT>(value);
80 }
81 template <typename ResourceNameT = Aws::String>
82 Relationship& WithResourceName(ResourceNameT&& value) {
83 SetResourceName(std::forward<ResourceNameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetRelationshipName() const { return m_relationshipName; }
93 inline bool RelationshipNameHasBeenSet() const { return m_relationshipNameHasBeenSet; }
94 template <typename RelationshipNameT = Aws::String>
95 void SetRelationshipName(RelationshipNameT&& value) {
96 m_relationshipNameHasBeenSet = true;
97 m_relationshipName = std::forward<RelationshipNameT>(value);
98 }
99 template <typename RelationshipNameT = Aws::String>
100 Relationship& WithRelationshipName(RelationshipNameT&& value) {
101 SetRelationshipName(std::forward<RelationshipNameT>(value));
102 return *this;
103 }
105 private:
106 ResourceType m_resourceType{ResourceType::NOT_SET};
107
108 Aws::String m_resourceId;
109
110 Aws::String m_resourceName;
111
112 Aws::String m_relationshipName;
113 bool m_resourceTypeHasBeenSet = false;
114 bool m_resourceIdHasBeenSet = false;
115 bool m_resourceNameHasBeenSet = false;
116 bool m_relationshipNameHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace ConfigService
121} // 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