AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ProfileResourceAssociation.h
1
6#pragma once
7#include <aws/route53profiles/Route53Profiles_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/route53profiles/model/ProfileStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Route53Profiles
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ROUTE53PROFILES_API ProfileResourceAssociation() = default;
38 AWS_ROUTE53PROFILES_API ProfileResourceAssociation(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
48 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
49 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
50 template<typename CreationTimeT = Aws::Utils::DateTime>
51 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
52 template<typename CreationTimeT = Aws::Utils::DateTime>
53 ProfileResourceAssociation& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
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) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
64 template<typename IdT = Aws::String>
65 ProfileResourceAssociation& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
67
69
73 inline const Aws::Utils::DateTime& GetModificationTime() const { return m_modificationTime; }
74 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
75 template<typename ModificationTimeT = Aws::Utils::DateTime>
76 void SetModificationTime(ModificationTimeT&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::forward<ModificationTimeT>(value); }
77 template<typename ModificationTimeT = Aws::Utils::DateTime>
78 ProfileResourceAssociation& WithModificationTime(ModificationTimeT&& value) { SetModificationTime(std::forward<ModificationTimeT>(value)); return *this;}
80
82
85 inline const Aws::String& GetName() const { return m_name; }
86 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
87 template<typename NameT = Aws::String>
88 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
89 template<typename NameT = Aws::String>
90 ProfileResourceAssociation& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
92
94
98 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
99 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
100 template<typename OwnerIdT = Aws::String>
101 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
102 template<typename OwnerIdT = Aws::String>
103 ProfileResourceAssociation& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
105
107
110 inline const Aws::String& GetProfileId() const { return m_profileId; }
111 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
112 template<typename ProfileIdT = Aws::String>
113 void SetProfileId(ProfileIdT&& value) { m_profileIdHasBeenSet = true; m_profileId = std::forward<ProfileIdT>(value); }
114 template<typename ProfileIdT = Aws::String>
115 ProfileResourceAssociation& WithProfileId(ProfileIdT&& value) { SetProfileId(std::forward<ProfileIdT>(value)); return *this;}
117
119
122 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
123 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
124 template<typename ResourceArnT = Aws::String>
125 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
126 template<typename ResourceArnT = Aws::String>
127 ProfileResourceAssociation& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
129
131
135 inline const Aws::String& GetResourceProperties() const { return m_resourceProperties; }
136 inline bool ResourcePropertiesHasBeenSet() const { return m_resourcePropertiesHasBeenSet; }
137 template<typename ResourcePropertiesT = Aws::String>
138 void SetResourceProperties(ResourcePropertiesT&& value) { m_resourcePropertiesHasBeenSet = true; m_resourceProperties = std::forward<ResourcePropertiesT>(value); }
139 template<typename ResourcePropertiesT = Aws::String>
140 ProfileResourceAssociation& WithResourceProperties(ResourcePropertiesT&& value) { SetResourceProperties(std::forward<ResourcePropertiesT>(value)); return *this;}
142
144
148 inline const Aws::String& GetResourceType() const { return m_resourceType; }
149 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
150 template<typename ResourceTypeT = Aws::String>
151 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
152 template<typename ResourceTypeT = Aws::String>
153 ProfileResourceAssociation& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
155
157
160 inline ProfileStatus GetStatus() const { return m_status; }
161 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
162 inline void SetStatus(ProfileStatus value) { m_statusHasBeenSet = true; m_status = value; }
163 inline ProfileResourceAssociation& WithStatus(ProfileStatus value) { SetStatus(value); return *this;}
165
167
170 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
171 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
172 template<typename StatusMessageT = Aws::String>
173 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
174 template<typename StatusMessageT = Aws::String>
175 ProfileResourceAssociation& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
177 private:
178
179 Aws::Utils::DateTime m_creationTime{};
180 bool m_creationTimeHasBeenSet = false;
181
182 Aws::String m_id;
183 bool m_idHasBeenSet = false;
184
185 Aws::Utils::DateTime m_modificationTime{};
186 bool m_modificationTimeHasBeenSet = false;
187
188 Aws::String m_name;
189 bool m_nameHasBeenSet = false;
190
191 Aws::String m_ownerId;
192 bool m_ownerIdHasBeenSet = false;
193
194 Aws::String m_profileId;
195 bool m_profileIdHasBeenSet = false;
196
197 Aws::String m_resourceArn;
198 bool m_resourceArnHasBeenSet = false;
199
200 Aws::String m_resourceProperties;
201 bool m_resourcePropertiesHasBeenSet = false;
202
203 Aws::String m_resourceType;
204 bool m_resourceTypeHasBeenSet = false;
205
207 bool m_statusHasBeenSet = false;
208
209 Aws::String m_statusMessage;
210 bool m_statusMessageHasBeenSet = false;
211 };
212
213} // namespace Model
214} // namespace Route53Profiles
215} // 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