AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace IoTSiteWise
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IOTSITEWISE_API CreatePortalRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreatePortal"; }
36
37 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetPortalName() const{ return m_portalName; }
45 inline bool PortalNameHasBeenSet() const { return m_portalNameHasBeenSet; }
46 inline void SetPortalName(const Aws::String& value) { m_portalNameHasBeenSet = true; m_portalName = value; }
47 inline void SetPortalName(Aws::String&& value) { m_portalNameHasBeenSet = true; m_portalName = std::move(value); }
48 inline void SetPortalName(const char* value) { m_portalNameHasBeenSet = true; m_portalName.assign(value); }
49 inline CreatePortalRequest& WithPortalName(const Aws::String& value) { SetPortalName(value); return *this;}
50 inline CreatePortalRequest& WithPortalName(Aws::String&& value) { SetPortalName(std::move(value)); return *this;}
51 inline CreatePortalRequest& WithPortalName(const char* value) { SetPortalName(value); return *this;}
53
55
58 inline const Aws::String& GetPortalDescription() const{ return m_portalDescription; }
59 inline bool PortalDescriptionHasBeenSet() const { return m_portalDescriptionHasBeenSet; }
60 inline void SetPortalDescription(const Aws::String& value) { m_portalDescriptionHasBeenSet = true; m_portalDescription = value; }
61 inline void SetPortalDescription(Aws::String&& value) { m_portalDescriptionHasBeenSet = true; m_portalDescription = std::move(value); }
62 inline void SetPortalDescription(const char* value) { m_portalDescriptionHasBeenSet = true; m_portalDescription.assign(value); }
63 inline CreatePortalRequest& WithPortalDescription(const Aws::String& value) { SetPortalDescription(value); return *this;}
64 inline CreatePortalRequest& WithPortalDescription(Aws::String&& value) { SetPortalDescription(std::move(value)); return *this;}
65 inline CreatePortalRequest& WithPortalDescription(const char* value) { SetPortalDescription(value); return *this;}
67
69
72 inline const Aws::String& GetPortalContactEmail() const{ return m_portalContactEmail; }
73 inline bool PortalContactEmailHasBeenSet() const { return m_portalContactEmailHasBeenSet; }
74 inline void SetPortalContactEmail(const Aws::String& value) { m_portalContactEmailHasBeenSet = true; m_portalContactEmail = value; }
75 inline void SetPortalContactEmail(Aws::String&& value) { m_portalContactEmailHasBeenSet = true; m_portalContactEmail = std::move(value); }
76 inline void SetPortalContactEmail(const char* value) { m_portalContactEmailHasBeenSet = true; m_portalContactEmail.assign(value); }
77 inline CreatePortalRequest& WithPortalContactEmail(const Aws::String& value) { SetPortalContactEmail(value); return *this;}
78 inline CreatePortalRequest& WithPortalContactEmail(Aws::String&& value) { SetPortalContactEmail(std::move(value)); return *this;}
79 inline CreatePortalRequest& WithPortalContactEmail(const char* value) { SetPortalContactEmail(value); return *this;}
81
83
88 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
89 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
90 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
91 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
92 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
93 inline CreatePortalRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
94 inline CreatePortalRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
95 inline CreatePortalRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
97
99
103 inline const ImageFile& GetPortalLogoImageFile() const{ return m_portalLogoImageFile; }
104 inline bool PortalLogoImageFileHasBeenSet() const { return m_portalLogoImageFileHasBeenSet; }
105 inline void SetPortalLogoImageFile(const ImageFile& value) { m_portalLogoImageFileHasBeenSet = true; m_portalLogoImageFile = value; }
106 inline void SetPortalLogoImageFile(ImageFile&& value) { m_portalLogoImageFileHasBeenSet = true; m_portalLogoImageFile = std::move(value); }
108 inline CreatePortalRequest& WithPortalLogoImageFile(ImageFile&& value) { SetPortalLogoImageFile(std::move(value)); return *this;}
110
112
121 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
122 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
123 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
124 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
125 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
126 inline CreatePortalRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
127 inline CreatePortalRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
128 inline CreatePortalRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
130
132
138 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
141 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
142 inline CreatePortalRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
143 inline CreatePortalRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
144 inline CreatePortalRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
145 inline CreatePortalRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
146 inline CreatePortalRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
147 inline CreatePortalRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
148 inline CreatePortalRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
149 inline CreatePortalRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
150 inline CreatePortalRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
152
154
168 inline const AuthMode& GetPortalAuthMode() const{ return m_portalAuthMode; }
169 inline bool PortalAuthModeHasBeenSet() const { return m_portalAuthModeHasBeenSet; }
170 inline void SetPortalAuthMode(const AuthMode& value) { m_portalAuthModeHasBeenSet = true; m_portalAuthMode = value; }
171 inline void SetPortalAuthMode(AuthMode&& value) { m_portalAuthModeHasBeenSet = true; m_portalAuthMode = std::move(value); }
172 inline CreatePortalRequest& WithPortalAuthMode(const AuthMode& value) { SetPortalAuthMode(value); return *this;}
173 inline CreatePortalRequest& WithPortalAuthMode(AuthMode&& value) { SetPortalAuthMode(std::move(value)); return *this;}
175
177
185 inline const Aws::String& GetNotificationSenderEmail() const{ return m_notificationSenderEmail; }
186 inline bool NotificationSenderEmailHasBeenSet() const { return m_notificationSenderEmailHasBeenSet; }
187 inline void SetNotificationSenderEmail(const Aws::String& value) { m_notificationSenderEmailHasBeenSet = true; m_notificationSenderEmail = value; }
188 inline void SetNotificationSenderEmail(Aws::String&& value) { m_notificationSenderEmailHasBeenSet = true; m_notificationSenderEmail = std::move(value); }
189 inline void SetNotificationSenderEmail(const char* value) { m_notificationSenderEmailHasBeenSet = true; m_notificationSenderEmail.assign(value); }
192 inline CreatePortalRequest& WithNotificationSenderEmail(const char* value) { SetNotificationSenderEmail(value); return *this;}
194
196
204 inline const Alarms& GetAlarms() const{ return m_alarms; }
205 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
206 inline void SetAlarms(const Alarms& value) { m_alarmsHasBeenSet = true; m_alarms = value; }
207 inline void SetAlarms(Alarms&& value) { m_alarmsHasBeenSet = true; m_alarms = std::move(value); }
208 inline CreatePortalRequest& WithAlarms(const Alarms& value) { SetAlarms(value); return *this;}
209 inline CreatePortalRequest& WithAlarms(Alarms&& value) { SetAlarms(std::move(value)); return *this;}
211 private:
212
213 Aws::String m_portalName;
214 bool m_portalNameHasBeenSet = false;
215
216 Aws::String m_portalDescription;
217 bool m_portalDescriptionHasBeenSet = false;
218
219 Aws::String m_portalContactEmail;
220 bool m_portalContactEmailHasBeenSet = false;
221
222 Aws::String m_clientToken;
223 bool m_clientTokenHasBeenSet = false;
224
225 ImageFile m_portalLogoImageFile;
226 bool m_portalLogoImageFileHasBeenSet = false;
227
228 Aws::String m_roleArn;
229 bool m_roleArnHasBeenSet = false;
230
232 bool m_tagsHasBeenSet = false;
233
234 AuthMode m_portalAuthMode;
235 bool m_portalAuthModeHasBeenSet = false;
236
237 Aws::String m_notificationSenderEmail;
238 bool m_notificationSenderEmailHasBeenSet = false;
239
240 Alarms m_alarms;
241 bool m_alarmsHasBeenSet = false;
242 };
243
244} // namespace Model
245} // namespace IoTSiteWise
246} // namespace Aws
CreatePortalRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
CreatePortalRequest & WithPortalDescription(const Aws::String &value)
CreatePortalRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreatePortalRequest & WithNotificationSenderEmail(const char *value)
void SetPortalLogoImageFile(const ImageFile &value)
CreatePortalRequest & WithPortalName(const char *value)
void SetClientToken(const Aws::String &value)
CreatePortalRequest & AddTags(const char *key, const char *value)
void SetPortalContactEmail(const Aws::String &value)
CreatePortalRequest & WithPortalName(const Aws::String &value)
CreatePortalRequest & AddTags(Aws::String &&key, const char *value)
virtual const char * GetServiceRequestName() const override
CreatePortalRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreatePortalRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreatePortalRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreatePortalRequest & WithNotificationSenderEmail(Aws::String &&value)
CreatePortalRequest & WithPortalDescription(Aws::String &&value)
CreatePortalRequest & WithClientToken(const Aws::String &value)
CreatePortalRequest & WithPortalAuthMode(const AuthMode &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreatePortalRequest & WithPortalName(Aws::String &&value)
CreatePortalRequest & WithRoleArn(const char *value)
CreatePortalRequest & WithClientToken(const char *value)
CreatePortalRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreatePortalRequest & WithPortalDescription(const char *value)
CreatePortalRequest & WithPortalContactEmail(Aws::String &&value)
CreatePortalRequest & WithAlarms(const Alarms &value)
CreatePortalRequest & WithClientToken(Aws::String &&value)
CreatePortalRequest & WithPortalLogoImageFile(const ImageFile &value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
void SetNotificationSenderEmail(const Aws::String &value)
CreatePortalRequest & WithNotificationSenderEmail(const Aws::String &value)
void SetPortalDescription(const Aws::String &value)
CreatePortalRequest & WithRoleArn(Aws::String &&value)
CreatePortalRequest & AddTags(const char *key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreatePortalRequest & WithPortalAuthMode(AuthMode &&value)
CreatePortalRequest & WithPortalContactEmail(const char *value)
CreatePortalRequest & WithPortalLogoImageFile(ImageFile &&value)
CreatePortalRequest & WithPortalContactEmail(const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreatePortalRequest & WithRoleArn(const Aws::String &value)
CreatePortalRequest & WithAlarms(Alarms &&value)
const Aws::String & GetNotificationSenderEmail() const
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