AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Profile.h
1
6#pragma once
7#include <aws/route53profiles/Route53Profiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/route53profiles/model/ShareStatus.h>
11#include <aws/route53profiles/model/ProfileStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Route53Profiles
25{
26namespace Model
27{
28
35 class Profile
36 {
37 public:
38 AWS_ROUTE53PROFILES_API Profile() = default;
39 AWS_ROUTE53PROFILES_API Profile(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53PROFILES_API Profile& operator=(Aws::Utils::Json::JsonView jsonValue);
41 AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetArn() const { return m_arn; }
49 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
50 template<typename ArnT = Aws::String>
51 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
52 template<typename ArnT = Aws::String>
53 Profile& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
65 template<typename ClientTokenT = Aws::String>
66 Profile& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
68
70
74 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
75 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
76 template<typename CreationTimeT = Aws::Utils::DateTime>
77 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
78 template<typename CreationTimeT = Aws::Utils::DateTime>
79 Profile& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
81
83
86 inline const Aws::String& GetId() const { return m_id; }
87 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
88 template<typename IdT = Aws::String>
89 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
90 template<typename IdT = Aws::String>
91 Profile& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
93
95
99 inline const Aws::Utils::DateTime& GetModificationTime() const { return m_modificationTime; }
100 inline bool ModificationTimeHasBeenSet() const { return m_modificationTimeHasBeenSet; }
101 template<typename ModificationTimeT = Aws::Utils::DateTime>
102 void SetModificationTime(ModificationTimeT&& value) { m_modificationTimeHasBeenSet = true; m_modificationTime = std::forward<ModificationTimeT>(value); }
103 template<typename ModificationTimeT = Aws::Utils::DateTime>
104 Profile& WithModificationTime(ModificationTimeT&& value) { SetModificationTime(std::forward<ModificationTimeT>(value)); return *this;}
106
108
111 inline const Aws::String& GetName() const { return m_name; }
112 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
113 template<typename NameT = Aws::String>
114 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
115 template<typename NameT = Aws::String>
116 Profile& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
118
120
123 inline const Aws::String& GetOwnerId() const { return m_ownerId; }
124 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
125 template<typename OwnerIdT = Aws::String>
126 void SetOwnerId(OwnerIdT&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::forward<OwnerIdT>(value); }
127 template<typename OwnerIdT = Aws::String>
128 Profile& WithOwnerId(OwnerIdT&& value) { SetOwnerId(std::forward<OwnerIdT>(value)); return *this;}
130
132
135 inline ShareStatus GetShareStatus() const { return m_shareStatus; }
136 inline bool ShareStatusHasBeenSet() const { return m_shareStatusHasBeenSet; }
137 inline void SetShareStatus(ShareStatus value) { m_shareStatusHasBeenSet = true; m_shareStatus = value; }
138 inline Profile& WithShareStatus(ShareStatus value) { SetShareStatus(value); return *this;}
140
142
145 inline ProfileStatus GetStatus() const { return m_status; }
146 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
147 inline void SetStatus(ProfileStatus value) { m_statusHasBeenSet = true; m_status = value; }
148 inline Profile& WithStatus(ProfileStatus value) { SetStatus(value); return *this;}
150
152
155 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
156 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
157 template<typename StatusMessageT = Aws::String>
158 void SetStatusMessage(StatusMessageT&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::forward<StatusMessageT>(value); }
159 template<typename StatusMessageT = Aws::String>
160 Profile& WithStatusMessage(StatusMessageT&& value) { SetStatusMessage(std::forward<StatusMessageT>(value)); return *this;}
162 private:
163
164 Aws::String m_arn;
165 bool m_arnHasBeenSet = false;
166
167 Aws::String m_clientToken;
168 bool m_clientTokenHasBeenSet = false;
169
170 Aws::Utils::DateTime m_creationTime{};
171 bool m_creationTimeHasBeenSet = false;
172
173 Aws::String m_id;
174 bool m_idHasBeenSet = false;
175
176 Aws::Utils::DateTime m_modificationTime{};
177 bool m_modificationTimeHasBeenSet = false;
178
179 Aws::String m_name;
180 bool m_nameHasBeenSet = false;
181
182 Aws::String m_ownerId;
183 bool m_ownerIdHasBeenSet = false;
184
185 ShareStatus m_shareStatus{ShareStatus::NOT_SET};
186 bool m_shareStatusHasBeenSet = false;
187
189 bool m_statusHasBeenSet = false;
190
191 Aws::String m_statusMessage;
192 bool m_statusMessageHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace Route53Profiles
197} // namespace Aws
const Aws::Utils::DateTime & GetCreationTime() const
Definition Profile.h:74
Profile & WithShareStatus(ShareStatus value)
Definition Profile.h:138
void SetModificationTime(ModificationTimeT &&value)
Definition Profile.h:102
Profile & WithCreationTime(CreationTimeT &&value)
Definition Profile.h:79
Profile & WithOwnerId(OwnerIdT &&value)
Definition Profile.h:128
const Aws::String & GetStatusMessage() const
Definition Profile.h:155
AWS_ROUTE53PROFILES_API Aws::Utils::Json::JsonValue Jsonize() const
ShareStatus GetShareStatus() const
Definition Profile.h:135
Profile & WithId(IdT &&value)
Definition Profile.h:91
const Aws::String & GetClientToken() const
Definition Profile.h:61
Profile & WithName(NameT &&value)
Definition Profile.h:116
const Aws::String & GetOwnerId() const
Definition Profile.h:123
void SetStatusMessage(StatusMessageT &&value)
Definition Profile.h:158
Profile & WithModificationTime(ModificationTimeT &&value)
Definition Profile.h:104
AWS_ROUTE53PROFILES_API Profile()=default
Profile & WithStatusMessage(StatusMessageT &&value)
Definition Profile.h:160
void SetCreationTime(CreationTimeT &&value)
Definition Profile.h:77
void SetClientToken(ClientTokenT &&value)
Definition Profile.h:64
void SetOwnerId(OwnerIdT &&value)
Definition Profile.h:126
void SetStatus(ProfileStatus value)
Definition Profile.h:147
ProfileStatus GetStatus() const
Definition Profile.h:145
AWS_ROUTE53PROFILES_API Profile(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetId() const
Definition Profile.h:86
void SetShareStatus(ShareStatus value)
Definition Profile.h:137
const Aws::String & GetName() const
Definition Profile.h:111
Profile & WithArn(ArnT &&value)
Definition Profile.h:53
const Aws::String & GetArn() const
Definition Profile.h:48
Profile & WithClientToken(ClientTokenT &&value)
Definition Profile.h:66
const Aws::Utils::DateTime & GetModificationTime() const
Definition Profile.h:99
AWS_ROUTE53PROFILES_API Profile & operator=(Aws::Utils::Json::JsonView jsonValue)
Profile & WithStatus(ProfileStatus value)
Definition Profile.h:148
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue