AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const ResourceType& GetResourceType() const{ return m_resourceType; }
47 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
48 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
49 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
50 inline Relationship& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
51 inline Relationship& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
59 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
60 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
61 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
62 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
63 inline Relationship& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
64 inline Relationship& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
65 inline Relationship& WithResourceId(const char* value) { SetResourceId(value); return *this;}
67
69
72 inline const Aws::String& GetResourceName() const{ return m_resourceName; }
73 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
74 inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
75 inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); }
76 inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
77 inline Relationship& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
78 inline Relationship& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;}
79 inline Relationship& WithResourceName(const char* value) { SetResourceName(value); return *this;}
81
83
86 inline const Aws::String& GetRelationshipName() const{ return m_relationshipName; }
87 inline bool RelationshipNameHasBeenSet() const { return m_relationshipNameHasBeenSet; }
88 inline void SetRelationshipName(const Aws::String& value) { m_relationshipNameHasBeenSet = true; m_relationshipName = value; }
89 inline void SetRelationshipName(Aws::String&& value) { m_relationshipNameHasBeenSet = true; m_relationshipName = std::move(value); }
90 inline void SetRelationshipName(const char* value) { m_relationshipNameHasBeenSet = true; m_relationshipName.assign(value); }
91 inline Relationship& WithRelationshipName(const Aws::String& value) { SetRelationshipName(value); return *this;}
92 inline Relationship& WithRelationshipName(Aws::String&& value) { SetRelationshipName(std::move(value)); return *this;}
93 inline Relationship& WithRelationshipName(const char* value) { SetRelationshipName(value); return *this;}
95 private:
96
97 ResourceType m_resourceType;
98 bool m_resourceTypeHasBeenSet = false;
99
100 Aws::String m_resourceId;
101 bool m_resourceIdHasBeenSet = false;
102
103 Aws::String m_resourceName;
104 bool m_resourceNameHasBeenSet = false;
105
106 Aws::String m_relationshipName;
107 bool m_relationshipNameHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace ConfigService
112} // namespace Aws
void SetResourceName(Aws::String &&value)
const ResourceType & GetResourceType() const
const Aws::String & GetResourceName() const
Relationship & WithResourceId(const Aws::String &value)
void SetResourceType(ResourceType &&value)
void SetResourceId(Aws::String &&value)
AWS_CONFIGSERVICE_API Relationship(Aws::Utils::Json::JsonView jsonValue)
AWS_CONFIGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Relationship & WithRelationshipName(const char *value)
void SetResourceId(const Aws::String &value)
Relationship & WithResourceType(ResourceType &&value)
void SetRelationshipName(const char *value)
Relationship & WithResourceName(const char *value)
const Aws::String & GetRelationshipName() const
AWS_CONFIGSERVICE_API Relationship()
void SetResourceName(const char *value)
void SetRelationshipName(const Aws::String &value)
const Aws::String & GetResourceId() const
Relationship & WithResourceName(const Aws::String &value)
void SetResourceType(const ResourceType &value)
Relationship & WithResourceId(const char *value)
AWS_CONFIGSERVICE_API Relationship & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRelationshipName(Aws::String &&value)
Relationship & WithResourceType(const ResourceType &value)
void SetResourceId(const char *value)
void SetResourceName(const Aws::String &value)
Relationship & WithResourceId(Aws::String &&value)
Relationship & WithResourceName(Aws::String &&value)
Relationship & WithRelationshipName(Aws::String &&value)
Relationship & WithRelationshipName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue