AWS SDK for C++  0.14.3
AWS SDK for C++
Relationship.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
19 
20 namespace Aws
21 {
22 namespace Utils
23 {
24 namespace Json
25 {
26  class JsonValue;
27 } // namespace Json
28 } // namespace Utils
29 namespace ConfigService
30 {
31 namespace Model
32 {
33 
38  {
39  public:
40  Relationship();
41  Relationship(const Aws::Utils::Json::JsonValue& jsonValue);
42  Relationship& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
43  Aws::Utils::Json::JsonValue Jsonize() const;
44 
48  inline const ResourceType& GetResourceType() const{ return m_resourceType; }
49 
53  inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
54 
58  inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
59 
63  inline Relationship& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
64 
68  inline Relationship& WithResourceType(ResourceType&& value) { SetResourceType(value); return *this;}
69 
73  inline const Aws::String& GetResourceId() const{ return m_resourceId; }
74 
78  inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
79 
83  inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
84 
88  inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
89 
93  inline Relationship& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
94 
98  inline Relationship& WithResourceId(Aws::String&& value) { SetResourceId(value); return *this;}
99 
103  inline Relationship& WithResourceId(const char* value) { SetResourceId(value); return *this;}
104 
108  inline const Aws::String& GetResourceName() const{ return m_resourceName; }
109 
113  inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
114 
118  inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; }
119 
123  inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); }
124 
128  inline Relationship& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;}
129 
133  inline Relationship& WithResourceName(Aws::String&& value) { SetResourceName(value); return *this;}
134 
138  inline Relationship& WithResourceName(const char* value) { SetResourceName(value); return *this;}
139 
143  inline const Aws::String& GetRelationshipName() const{ return m_relationshipName; }
144 
148  inline void SetRelationshipName(const Aws::String& value) { m_relationshipNameHasBeenSet = true; m_relationshipName = value; }
149 
153  inline void SetRelationshipName(Aws::String&& value) { m_relationshipNameHasBeenSet = true; m_relationshipName = value; }
154 
158  inline void SetRelationshipName(const char* value) { m_relationshipNameHasBeenSet = true; m_relationshipName.assign(value); }
159 
163  inline Relationship& WithRelationshipName(const Aws::String& value) { SetRelationshipName(value); return *this;}
164 
168  inline Relationship& WithRelationshipName(Aws::String&& value) { SetRelationshipName(value); return *this;}
169 
173  inline Relationship& WithRelationshipName(const char* value) { SetRelationshipName(value); return *this;}
174 
175  private:
176  ResourceType m_resourceType;
177  bool m_resourceTypeHasBeenSet;
178  Aws::String m_resourceId;
179  bool m_resourceIdHasBeenSet;
180  Aws::String m_resourceName;
181  bool m_resourceNameHasBeenSet;
182  Aws::String m_relationshipName;
183  bool m_relationshipNameHasBeenSet;
184  };
185 
186 } // namespace Model
187 } // namespace ConfigService
188 } // namespace Aws
void SetResourceName(Aws::String &&value)
Definition: Relationship.h:118
Relationship & WithRelationshipName(Aws::String &&value)
Definition: Relationship.h:168
Relationship & WithResourceType(ResourceType &&value)
Definition: Relationship.h:68
void SetResourceId(Aws::String &&value)
Definition: Relationship.h:83
void SetRelationshipName(const char *value)
Definition: Relationship.h:158
void SetRelationshipName(Aws::String &&value)
Definition: Relationship.h:153
void SetResourceId(const char *value)
Definition: Relationship.h:88
Relationship & WithResourceId(Aws::String &&value)
Definition: Relationship.h:98
void SetResourceName(const char *value)
Definition: Relationship.h:123
Relationship & WithRelationshipName(const Aws::String &value)
Definition: Relationship.h:163
void SetResourceType(ResourceType &&value)
Definition: Relationship.h:58
Relationship & WithResourceName(const char *value)
Definition: Relationship.h:138
Relationship & WithResourceType(const ResourceType &value)
Definition: Relationship.h:63
Relationship & WithResourceName(const Aws::String &value)
Definition: Relationship.h:128
void SetResourceType(const ResourceType &value)
Definition: Relationship.h:53
const Aws::String & GetRelationshipName() const
Definition: Relationship.h:143
void SetResourceId(const Aws::String &value)
Definition: Relationship.h:78
const Aws::String & GetResourceId() const
Definition: Relationship.h:73
Relationship & WithResourceName(Aws::String &&value)
Definition: Relationship.h:133
const Aws::String & GetResourceName() const
Definition: Relationship.h:108
Relationship & WithRelationshipName(const char *value)
Definition: Relationship.h:173
Relationship & WithResourceId(const char *value)
Definition: Relationship.h:103
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const ResourceType & GetResourceType() const
Definition: Relationship.h:48
#define AWS_CONFIGSERVICE_API
JSON (JavaScript Object Notation).
void SetRelationshipName(const Aws::String &value)
Definition: Relationship.h:148
Relationship & WithResourceId(const Aws::String &value)
Definition: Relationship.h:93
void SetResourceName(const Aws::String &value)
Definition: Relationship.h:113