AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
ProfileAssociation.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 ProfileAssociation() = default;
33 AWS_ROUTE53PROFILES_API ProfileAssociation(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ROUTE53PROFILES_API ProfileAssociation& operator=(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>
50 ProfileAssociation& WithCreationTime(CreationTimeT&& value) {
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>
68 ProfileAssociation& WithId(IdT&& value) {
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>
87 ProfileAssociation& WithModificationTime(ModificationTimeT&& value) {
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>
105 ProfileAssociation& WithName(NameT&& value) {
106 SetName(std::forward<NameT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
116 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
117 template <typename OwnerIdT = Aws::String>
118 void SetOwnerId(OwnerIdT&& value) {
119 m_ownerIdHasBeenSet = true;
120 m_ownerId = std::forward<OwnerIdT>(value);
121 }
122 template <typename OwnerIdT = Aws::String>
123 ProfileAssociation& WithOwnerId(OwnerIdT&& value) {
124 SetOwnerId(std::forward<OwnerIdT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetProfileId() const { return m_profileId; }
134 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
135 template <typename ProfileIdT = Aws::String>
136 void SetProfileId(ProfileIdT&& value) {
137 m_profileIdHasBeenSet = true;
138 m_profileId = std::forward<ProfileIdT>(value);
139 }
140 template <typename ProfileIdT = Aws::String>
141 ProfileAssociation& WithProfileId(ProfileIdT&& value) {
142 SetProfileId(std::forward<ProfileIdT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetResourceId() const { return m_resourceId; }
152 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
153 template <typename ResourceIdT = Aws::String>
154 void SetResourceId(ResourceIdT&& value) {
155 m_resourceIdHasBeenSet = true;
156 m_resourceId = std::forward<ResourceIdT>(value);
157 }
158 template <typename ResourceIdT = Aws::String>
159 ProfileAssociation& WithResourceId(ResourceIdT&& value) {
160 SetResourceId(std::forward<ResourceIdT>(value));
161 return *this;
162 }
164
166
169 inline ProfileStatus GetStatus() const { return m_status; }
170 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
171 inline void SetStatus(ProfileStatus value) {
172 m_statusHasBeenSet = true;
173 m_status = value;
174 }
176 SetStatus(value);
177 return *this;
178 }
180
182
185 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
186 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
187 template <typename StatusMessageT = Aws::String>
188 void SetStatusMessage(StatusMessageT&& value) {
189 m_statusMessageHasBeenSet = true;
190 m_statusMessage = std::forward<StatusMessageT>(value);
191 }
192 template <typename StatusMessageT = Aws::String>
193 ProfileAssociation& WithStatusMessage(StatusMessageT&& value) {
194 SetStatusMessage(std::forward<StatusMessageT>(value));
195 return *this;
196 }
198 private:
199 Aws::Utils::DateTime m_creationTime{};
200
201 Aws::String m_id;
202
203 Aws::Utils::DateTime m_modificationTime{};
204
205 Aws::String m_name;
206
207 Aws::String m_ownerId;
208
209 Aws::String m_profileId;
210
211 Aws::String m_resourceId;
212
214
215 Aws::String m_statusMessage;
216 bool m_creationTimeHasBeenSet = false;
217 bool m_idHasBeenSet = false;
218 bool m_modificationTimeHasBeenSet = false;
219 bool m_nameHasBeenSet = false;
220 bool m_ownerIdHasBeenSet = false;
221 bool m_profileIdHasBeenSet = false;
222 bool m_resourceIdHasBeenSet = false;
223 bool m_statusHasBeenSet = false;
224 bool m_statusMessageHasBeenSet = false;
225};
226
227} // namespace Model
228} // namespace Route53Profiles
229} // namespace Aws
AWS_ROUTE53PROFILES_API ProfileAssociation & operator=(Aws::Utils::Json::JsonView jsonValue)
ProfileAssociation & WithOwnerId(OwnerIdT &&value)
const Aws::Utils::DateTime & GetCreationTime() const
ProfileAssociation & WithModificationTime(ModificationTimeT &&value)
ProfileAssociation & WithStatusMessage(StatusMessageT &&value)
ProfileAssociation & WithCreationTime(CreationTimeT &&value)
AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ROUTE53PROFILES_API ProfileAssociation(Aws::Utils::Json::JsonView jsonValue)
void SetModificationTime(ModificationTimeT &&value)
ProfileAssociation & WithResourceId(ResourceIdT &&value)
ProfileAssociation & WithProfileId(ProfileIdT &&value)
const Aws::Utils::DateTime & GetModificationTime() const
ProfileAssociation & WithName(NameT &&value)
AWS_ROUTE53PROFILES_API ProfileAssociation()=default
ProfileAssociation & WithStatus(ProfileStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue