AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CreatePortalRequest.h
1
6#pragma once
7#include <aws/iotsitewise/IoTSiteWise_EXPORTS.h>
8#include <aws/iotsitewise/IoTSiteWiseRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotsitewise/model/ImageFile.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/iotsitewise/model/AuthMode.h>
13#include <aws/iotsitewise/model/Alarms.h>
14#include <aws/iotsitewise/model/PortalType.h>
15#include <aws/iotsitewise/model/PortalTypeEntry.h>
16#include <utility>
17#include <aws/core/utils/UUID.h>
18
19namespace Aws
20{
21namespace IoTSiteWise
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_IOTSITEWISE_API CreatePortalRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreatePortal"; }
38
39 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
40
41
43
46 inline const Aws::String& GetPortalName() const { return m_portalName; }
47 inline bool PortalNameHasBeenSet() const { return m_portalNameHasBeenSet; }
48 template<typename PortalNameT = Aws::String>
49 void SetPortalName(PortalNameT&& value) { m_portalNameHasBeenSet = true; m_portalName = std::forward<PortalNameT>(value); }
50 template<typename PortalNameT = Aws::String>
51 CreatePortalRequest& WithPortalName(PortalNameT&& value) { SetPortalName(std::forward<PortalNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetPortalDescription() const { return m_portalDescription; }
59 inline bool PortalDescriptionHasBeenSet() const { return m_portalDescriptionHasBeenSet; }
60 template<typename PortalDescriptionT = Aws::String>
61 void SetPortalDescription(PortalDescriptionT&& value) { m_portalDescriptionHasBeenSet = true; m_portalDescription = std::forward<PortalDescriptionT>(value); }
62 template<typename PortalDescriptionT = Aws::String>
63 CreatePortalRequest& WithPortalDescription(PortalDescriptionT&& value) { SetPortalDescription(std::forward<PortalDescriptionT>(value)); return *this;}
65
67
70 inline const Aws::String& GetPortalContactEmail() const { return m_portalContactEmail; }
71 inline bool PortalContactEmailHasBeenSet() const { return m_portalContactEmailHasBeenSet; }
72 template<typename PortalContactEmailT = Aws::String>
73 void SetPortalContactEmail(PortalContactEmailT&& value) { m_portalContactEmailHasBeenSet = true; m_portalContactEmail = std::forward<PortalContactEmailT>(value); }
74 template<typename PortalContactEmailT = Aws::String>
75 CreatePortalRequest& WithPortalContactEmail(PortalContactEmailT&& value) { SetPortalContactEmail(std::forward<PortalContactEmailT>(value)); return *this;}
77
79
84 inline const Aws::String& GetClientToken() const { return m_clientToken; }
85 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
86 template<typename ClientTokenT = Aws::String>
87 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
88 template<typename ClientTokenT = Aws::String>
89 CreatePortalRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
91
93
97 inline const ImageFile& GetPortalLogoImageFile() const { return m_portalLogoImageFile; }
98 inline bool PortalLogoImageFileHasBeenSet() const { return m_portalLogoImageFileHasBeenSet; }
99 template<typename PortalLogoImageFileT = ImageFile>
100 void SetPortalLogoImageFile(PortalLogoImageFileT&& value) { m_portalLogoImageFileHasBeenSet = true; m_portalLogoImageFile = std::forward<PortalLogoImageFileT>(value); }
101 template<typename PortalLogoImageFileT = ImageFile>
102 CreatePortalRequest& WithPortalLogoImageFile(PortalLogoImageFileT&& value) { SetPortalLogoImageFile(std::forward<PortalLogoImageFileT>(value)); return *this;}
104
106
115 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
116 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
117 template<typename RoleArnT = Aws::String>
118 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
119 template<typename RoleArnT = Aws::String>
120 CreatePortalRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
122
124
130 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
133 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
134 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 CreatePortalRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
136 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
137 CreatePortalRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
138 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
139 }
141
143
157 inline AuthMode GetPortalAuthMode() const { return m_portalAuthMode; }
158 inline bool PortalAuthModeHasBeenSet() const { return m_portalAuthModeHasBeenSet; }
159 inline void SetPortalAuthMode(AuthMode value) { m_portalAuthModeHasBeenSet = true; m_portalAuthMode = value; }
160 inline CreatePortalRequest& WithPortalAuthMode(AuthMode value) { SetPortalAuthMode(value); return *this;}
162
164
172 inline const Aws::String& GetNotificationSenderEmail() const { return m_notificationSenderEmail; }
173 inline bool NotificationSenderEmailHasBeenSet() const { return m_notificationSenderEmailHasBeenSet; }
174 template<typename NotificationSenderEmailT = Aws::String>
175 void SetNotificationSenderEmail(NotificationSenderEmailT&& value) { m_notificationSenderEmailHasBeenSet = true; m_notificationSenderEmail = std::forward<NotificationSenderEmailT>(value); }
176 template<typename NotificationSenderEmailT = Aws::String>
177 CreatePortalRequest& WithNotificationSenderEmail(NotificationSenderEmailT&& value) { SetNotificationSenderEmail(std::forward<NotificationSenderEmailT>(value)); return *this;}
179
181
189 inline const Alarms& GetAlarms() const { return m_alarms; }
190 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
191 template<typename AlarmsT = Alarms>
192 void SetAlarms(AlarmsT&& value) { m_alarmsHasBeenSet = true; m_alarms = std::forward<AlarmsT>(value); }
193 template<typename AlarmsT = Alarms>
194 CreatePortalRequest& WithAlarms(AlarmsT&& value) { SetAlarms(std::forward<AlarmsT>(value)); return *this;}
196
198
203 inline PortalType GetPortalType() const { return m_portalType; }
204 inline bool PortalTypeHasBeenSet() const { return m_portalTypeHasBeenSet; }
205 inline void SetPortalType(PortalType value) { m_portalTypeHasBeenSet = true; m_portalType = value; }
206 inline CreatePortalRequest& WithPortalType(PortalType value) { SetPortalType(value); return *this;}
208
210
215 inline const Aws::Map<Aws::String, PortalTypeEntry>& GetPortalTypeConfiguration() const { return m_portalTypeConfiguration; }
216 inline bool PortalTypeConfigurationHasBeenSet() const { return m_portalTypeConfigurationHasBeenSet; }
217 template<typename PortalTypeConfigurationT = Aws::Map<Aws::String, PortalTypeEntry>>
218 void SetPortalTypeConfiguration(PortalTypeConfigurationT&& value) { m_portalTypeConfigurationHasBeenSet = true; m_portalTypeConfiguration = std::forward<PortalTypeConfigurationT>(value); }
219 template<typename PortalTypeConfigurationT = Aws::Map<Aws::String, PortalTypeEntry>>
220 CreatePortalRequest& WithPortalTypeConfiguration(PortalTypeConfigurationT&& value) { SetPortalTypeConfiguration(std::forward<PortalTypeConfigurationT>(value)); return *this;}
221 template<typename PortalTypeConfigurationKeyT = Aws::String, typename PortalTypeConfigurationValueT = PortalTypeEntry>
222 CreatePortalRequest& AddPortalTypeConfiguration(PortalTypeConfigurationKeyT&& key, PortalTypeConfigurationValueT&& value) {
223 m_portalTypeConfigurationHasBeenSet = true; m_portalTypeConfiguration.emplace(std::forward<PortalTypeConfigurationKeyT>(key), std::forward<PortalTypeConfigurationValueT>(value)); return *this;
224 }
226 private:
227
228 Aws::String m_portalName;
229 bool m_portalNameHasBeenSet = false;
230
231 Aws::String m_portalDescription;
232 bool m_portalDescriptionHasBeenSet = false;
233
234 Aws::String m_portalContactEmail;
235 bool m_portalContactEmailHasBeenSet = false;
236
238 bool m_clientTokenHasBeenSet = true;
239
240 ImageFile m_portalLogoImageFile;
241 bool m_portalLogoImageFileHasBeenSet = false;
242
243 Aws::String m_roleArn;
244 bool m_roleArnHasBeenSet = false;
245
247 bool m_tagsHasBeenSet = false;
248
249 AuthMode m_portalAuthMode{AuthMode::NOT_SET};
250 bool m_portalAuthModeHasBeenSet = false;
251
252 Aws::String m_notificationSenderEmail;
253 bool m_notificationSenderEmailHasBeenSet = false;
254
255 Alarms m_alarms;
256 bool m_alarmsHasBeenSet = false;
257
258 PortalType m_portalType{PortalType::NOT_SET};
259 bool m_portalTypeHasBeenSet = false;
260
261 Aws::Map<Aws::String, PortalTypeEntry> m_portalTypeConfiguration;
262 bool m_portalTypeConfigurationHasBeenSet = false;
263 };
264
265} // namespace Model
266} // namespace IoTSiteWise
267} // namespace Aws
CreatePortalRequest & WithPortalName(PortalNameT &&value)
void SetPortalLogoImageFile(PortalLogoImageFileT &&value)
void SetPortalDescription(PortalDescriptionT &&value)
CreatePortalRequest & AddPortalTypeConfiguration(PortalTypeConfigurationKeyT &&key, PortalTypeConfigurationValueT &&value)
CreatePortalRequest & WithAlarms(AlarmsT &&value)
AWS_IOTSITEWISE_API CreatePortalRequest()=default
CreatePortalRequest & WithPortalContactEmail(PortalContactEmailT &&value)
virtual const char * GetServiceRequestName() const override
CreatePortalRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, PortalTypeEntry > & GetPortalTypeConfiguration() const
CreatePortalRequest & WithPortalDescription(PortalDescriptionT &&value)
CreatePortalRequest & WithPortalType(PortalType value)
void SetPortalTypeConfiguration(PortalTypeConfigurationT &&value)
CreatePortalRequest & WithPortalLogoImageFile(PortalLogoImageFileT &&value)
CreatePortalRequest & WithNotificationSenderEmail(NotificationSenderEmailT &&value)
CreatePortalRequest & WithRoleArn(RoleArnT &&value)
CreatePortalRequest & WithClientToken(ClientTokenT &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
void SetPortalContactEmail(PortalContactEmailT &&value)
void SetNotificationSenderEmail(NotificationSenderEmailT &&value)
CreatePortalRequest & WithTags(TagsT &&value)
CreatePortalRequest & WithPortalTypeConfiguration(PortalTypeConfigurationT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePortalRequest & WithPortalAuthMode(AuthMode value)
const Aws::String & GetNotificationSenderEmail() const
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String