AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ProfileResourceAssociation.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53profiles/Route53Profiles_EXPORTS.h>
10#include <aws/route53profiles/model/ProfileStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Route53Profiles {
22namespace Model {
23
31 public:
32 AWS_ROUTE53PROFILES_API ProfileResourceAssociation() = default;
33 AWS_ROUTE53PROFILES_API ProfileResourceAssociation(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
43 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
44 template <typename CreationTimeT = Aws::Utils::DateTime>
45 void SetCreationTime(CreationTimeT&& value) {
46 m_creationTimeHasBeenSet = true;
47 m_creationTime = std::forward<CreationTimeT>(value);
48 }
49 template <typename CreationTimeT = Aws::Utils::DateTime>
51 SetCreationTime(std::forward<CreationTimeT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template <typename IdT = Aws::String>
63 void SetId(IdT&& value) {
64 m_idHasBeenSet = true;
65 m_id = std::forward<IdT>(value);
66 }
67 template <typename IdT = Aws::String>
69 SetId(std::forward<IdT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::Utils::DateTime& GetModificationTime() const { return m_modificationTime; }
80 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
81 template <typename ModificationTimeT = Aws::Utils::DateTime>
82 void SetModificationTime(ModificationTimeT&& value) {
83 m_modificationTimeHasBeenSet = true;
84 m_modificationTime = std::forward<ModificationTimeT>(value);
85 }
86 template <typename ModificationTimeT = Aws::Utils::DateTime>
88 SetModificationTime(std::forward<ModificationTimeT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::String& GetName() const { return m_name; }
98 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
99 template <typename NameT = Aws::String>
100 void SetName(NameT&& value) {
101 m_nameHasBeenSet = true;
102 m_name = std::forward<NameT>(value);
103 }
104 template <typename NameT = Aws::String>
106 SetName(std::forward<NameT>(value));
107 return *this;
108 }
110
112
116 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
117 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
118 template <typename OwnerIdT = Aws::String>
119 void SetOwnerId(OwnerIdT&& value) {
120 m_ownerIdHasBeenSet = true;
121 m_ownerId = std::forward<OwnerIdT>(value);
122 }
123 template <typename OwnerIdT = Aws::String>
125 SetOwnerId(std::forward<OwnerIdT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetProfileId() const { return m_profileId; }
135 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
136 template <typename ProfileIdT = Aws::String>
137 void SetProfileId(ProfileIdT&& value) {
138 m_profileIdHasBeenSet = true;
139 m_profileId = std::forward<ProfileIdT>(value);
140 }
141 template <typename ProfileIdT = Aws::String>
143 SetProfileId(std::forward<ProfileIdT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
153 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
154 template <typename ResourceArnT = Aws::String>
155 void SetResourceArn(ResourceArnT&& value) {
156 m_resourceArnHasBeenSet = true;
157 m_resourceArn = std::forward<ResourceArnT>(value);
158 }
159 template <typename ResourceArnT = Aws::String>
161 SetResourceArn(std::forward<ResourceArnT>(value));
162 return *this;
163 }
165
167
171 inline const Aws::String& GetResourceProperties() const { return m_resourceProperties; }
172 inline bool ResourcePropertiesHasBeenSet() const { return m_resourcePropertiesHasBeenSet; }
173 template <typename ResourcePropertiesT = Aws::String>
174 void SetResourceProperties(ResourcePropertiesT&& value) {
175 m_resourcePropertiesHasBeenSet = true;
176 m_resourceProperties = std::forward<ResourcePropertiesT>(value);
177 }
178 template <typename ResourcePropertiesT = Aws::String>
180 SetResourceProperties(std::forward<ResourcePropertiesT>(value));
181 return *this;
182 }
184
186
190 inline const Aws::String& GetResourceType() const { return m_resourceType; }
191 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
192 template <typename ResourceTypeT = Aws::String>
193 void SetResourceType(ResourceTypeT&& value) {
194 m_resourceTypeHasBeenSet = true;
195 m_resourceType = std::forward<ResourceTypeT>(value);
196 }
197 template <typename ResourceTypeT = Aws::String>
199 SetResourceType(std::forward<ResourceTypeT>(value));
200 return *this;
201 }
203
205
208 inline ProfileStatus GetStatus() const { return m_status; }
209 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
210 inline void SetStatus(ProfileStatus value) {
211 m_statusHasBeenSet = true;
212 m_status = value;
213 }
215 SetStatus(value);
216 return *this;
217 }
219
221
224 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
225 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
226 template <typename StatusMessageT = Aws::String>
227 void SetStatusMessage(StatusMessageT&& value) {
228 m_statusMessageHasBeenSet = true;
229 m_statusMessage = std::forward<StatusMessageT>(value);
230 }
231 template <typename StatusMessageT = Aws::String>
233 SetStatusMessage(std::forward<StatusMessageT>(value));
234 return *this;
235 }
237 private:
238 Aws::Utils::DateTime m_creationTime{};
239
240 Aws::String m_id;
241
242 Aws::Utils::DateTime m_modificationTime{};
243
244 Aws::String m_name;
245
246 Aws::String m_ownerId;
247
248 Aws::String m_profileId;
249
250 Aws::String m_resourceArn;
251
252 Aws::String m_resourceProperties;
253
254 Aws::String m_resourceType;
255
257
258 Aws::String m_statusMessage;
259 bool m_creationTimeHasBeenSet = false;
260 bool m_idHasBeenSet = false;
261 bool m_modificationTimeHasBeenSet = false;
262 bool m_nameHasBeenSet = false;
263 bool m_ownerIdHasBeenSet = false;
264 bool m_profileIdHasBeenSet = false;
265 bool m_resourceArnHasBeenSet = false;
266 bool m_resourcePropertiesHasBeenSet = false;
267 bool m_resourceTypeHasBeenSet = false;
268 bool m_statusHasBeenSet = false;
269 bool m_statusMessageHasBeenSet = false;
270};
271
272} // namespace Model
273} // namespace Route53Profiles
274} // namespace Aws
AWS_ROUTE53PROFILES_API ProfileResourceAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
ProfileResourceAssociation & WithStatusMessage(StatusMessageT &&value)
ProfileResourceAssociation & WithResourceArn(ResourceArnT &&value)
AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
ProfileResourceAssociation & WithCreationTime(CreationTimeT &&value)
ProfileResourceAssociation & WithModificationTime(ModificationTimeT &&value)
ProfileResourceAssociation & WithStatus(ProfileStatus value)
ProfileResourceAssociation & WithProfileId(ProfileIdT &&value)
AWS_ROUTE53PROFILES_API ProfileResourceAssociation()=default
ProfileResourceAssociation & WithResourceType(ResourceTypeT &&value)
ProfileResourceAssociation & WithResourceProperties(ResourcePropertiesT &&value)
AWS_ROUTE53PROFILES_API ProfileResourceAssociation(Aws::Utils::Json::JsonView jsonValue)
ProfileResourceAssociation & WithOwnerId(OwnerIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue