AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
Profile.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#include <aws/route53profiles/model/ShareStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Route53Profiles {
23namespace Model {
24
31class Profile {
32 public:
33 AWS_ROUTE53PROFILES_API Profile() = default;
34 AWS_ROUTE53PROFILES_API Profile(Aws::Utils::Json::JsonView jsonValue);
35 AWS_ROUTE53PROFILES_API Profile& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
50 Profile& WithArn(ArnT&& value) {
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetClientToken() const { return m_clientToken; }
62 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
63 template <typename ClientTokenT = Aws::String>
64 void SetClientToken(ClientTokenT&& value) {
65 m_clientTokenHasBeenSet = true;
66 m_clientToken = std::forward<ClientTokenT>(value);
67 }
68 template <typename ClientTokenT = Aws::String>
69 Profile& WithClientToken(ClientTokenT&& value) {
70 SetClientToken(std::forward<ClientTokenT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
81 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
82 template <typename CreationTimeT = Aws::Utils::DateTime>
83 void SetCreationTime(CreationTimeT&& value) {
84 m_creationTimeHasBeenSet = true;
85 m_creationTime = std::forward<CreationTimeT>(value);
86 }
87 template <typename CreationTimeT = Aws::Utils::DateTime>
88 Profile& WithCreationTime(CreationTimeT&& value) {
89 SetCreationTime(std::forward<CreationTimeT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetId() const { return m_id; }
99 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
100 template <typename IdT = Aws::String>
101 void SetId(IdT&& value) {
102 m_idHasBeenSet = true;
103 m_id = std::forward<IdT>(value);
104 }
105 template <typename IdT = Aws::String>
106 Profile& WithId(IdT&& value) {
107 SetId(std::forward<IdT>(value));
108 return *this;
109 }
111
113
117 inline const Aws::Utils::DateTime& GetModificationTime() const { return m_modificationTime; }
118 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
119 template <typename ModificationTimeT = Aws::Utils::DateTime>
120 void SetModificationTime(ModificationTimeT&& value) {
121 m_modificationTimeHasBeenSet = true;
122 m_modificationTime = std::forward<ModificationTimeT>(value);
123 }
124 template <typename ModificationTimeT = Aws::Utils::DateTime>
125 Profile& WithModificationTime(ModificationTimeT&& value) {
126 SetModificationTime(std::forward<ModificationTimeT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::String& GetName() const { return m_name; }
136 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
137 template <typename NameT = Aws::String>
138 void SetName(NameT&& value) {
139 m_nameHasBeenSet = true;
140 m_name = std::forward<NameT>(value);
141 }
142 template <typename NameT = Aws::String>
143 Profile& WithName(NameT&& value) {
144 SetName(std::forward<NameT>(value));
145 return *this;
146 }
148
150
153 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
154 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
155 template <typename OwnerIdT = Aws::String>
156 void SetOwnerId(OwnerIdT&& value) {
157 m_ownerIdHasBeenSet = true;
158 m_ownerId = std::forward<OwnerIdT>(value);
159 }
160 template <typename OwnerIdT = Aws::String>
161 Profile& WithOwnerId(OwnerIdT&& value) {
162 SetOwnerId(std::forward<OwnerIdT>(value));
163 return *this;
164 }
166
168
171 inline ShareStatus GetShareStatus() const { return m_shareStatus; }
172 inline bool ShareStatusHasBeenSet() const { return m_shareStatusHasBeenSet; }
173 inline void SetShareStatus(ShareStatus value) {
174 m_shareStatusHasBeenSet = true;
175 m_shareStatus = value;
176 }
178 SetShareStatus(value);
179 return *this;
180 }
182
184
187 inline ProfileStatus GetStatus() const { return m_status; }
188 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
189 inline void SetStatus(ProfileStatus value) {
190 m_statusHasBeenSet = true;
191 m_status = value;
192 }
194 SetStatus(value);
195 return *this;
196 }
198
200
203 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
204 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
205 template <typename StatusMessageT = Aws::String>
206 void SetStatusMessage(StatusMessageT&& value) {
207 m_statusMessageHasBeenSet = true;
208 m_statusMessage = std::forward<StatusMessageT>(value);
209 }
210 template <typename StatusMessageT = Aws::String>
211 Profile& WithStatusMessage(StatusMessageT&& value) {
212 SetStatusMessage(std::forward<StatusMessageT>(value));
213 return *this;
214 }
216 private:
217 Aws::String m_arn;
218
219 Aws::String m_clientToken;
220
221 Aws::Utils::DateTime m_creationTime{};
222
223 Aws::String m_id;
224
225 Aws::Utils::DateTime m_modificationTime{};
226
227 Aws::String m_name;
228
229 Aws::String m_ownerId;
230
231 ShareStatus m_shareStatus{ShareStatus::NOT_SET};
232
234
235 Aws::String m_statusMessage;
236 bool m_arnHasBeenSet = false;
237 bool m_clientTokenHasBeenSet = false;
238 bool m_creationTimeHasBeenSet = false;
239 bool m_idHasBeenSet = false;
240 bool m_modificationTimeHasBeenSet = false;
241 bool m_nameHasBeenSet = false;
242 bool m_ownerIdHasBeenSet = false;
243 bool m_shareStatusHasBeenSet = false;
244 bool m_statusHasBeenSet = false;
245 bool m_statusMessageHasBeenSet = false;
246};
247
248} // namespace Model
249} // namespace Route53Profiles
250} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
Definition Profile.h:80
Profile & WithShareStatus(ShareStatus value)
Definition Profile.h:177
void SetModificationTime(ModificationTimeT &&value)
Definition Profile.h:120
Profile & WithCreationTime(CreationTimeT &&value)
Definition Profile.h:88
Profile & WithOwnerId(OwnerIdT &&value)
Definition Profile.h:161
const Aws::String & GetStatusMessage() const
Definition Profile.h:203
AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
ShareStatus GetShareStatus() const
Definition Profile.h:171
Profile & WithId(IdT &&value)
Definition Profile.h:106
const Aws::String & GetClientToken() const
Definition Profile.h:61
Profile & WithName(NameT &&value)
Definition Profile.h:143
const Aws::String & GetOwnerId() const
Definition Profile.h:153
void SetStatusMessage(StatusMessageT &&value)
Definition Profile.h:206
Profile & WithModificationTime(ModificationTimeT &&value)
Definition Profile.h:125
AWS_ROUTE53PROFILES_API Profile()=default
Profile & WithStatusMessage(StatusMessageT &&value)
Definition Profile.h:211
void SetCreationTime(CreationTimeT &&value)
Definition Profile.h:83
void SetClientToken(ClientTokenT &&value)
Definition Profile.h:64
void SetOwnerId(OwnerIdT &&value)
Definition Profile.h:156
void SetStatus(ProfileStatus value)
Definition Profile.h:189
ProfileStatus GetStatus() const
Definition Profile.h:187
AWS_ROUTE53PROFILES_API Profile(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Profile.h:98
void SetShareStatus(ShareStatus value)
Definition Profile.h:173
const Aws::String & GetName() const
Definition Profile.h:135
Profile & WithArn(ArnT &&value)
Definition Profile.h:50
const Aws::String & GetArn() const
Definition Profile.h:42
Profile & WithClientToken(ClientTokenT &&value)
Definition Profile.h:69
const Aws::Utils::DateTime & GetModificationTime() const
Definition Profile.h:117
AWS_ROUTE53PROFILES_API Profile & operator=(Aws::Utils::Json::JsonView jsonValue)
Profile & WithStatus(ProfileStatus value)
Definition Profile.h:193
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue