AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UpdatePortalRequest.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/Image.h>
11#include <aws/iotsitewise/model/Alarms.h>
12#include <aws/iotsitewise/model/PortalType.h>
13#include <aws/core/utils/memory/stl/AWSMap.h>
14#include <aws/iotsitewise/model/PortalTypeEntry.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace IoTSiteWise
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_IOTSITEWISE_API UpdatePortalRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "UpdatePortal"; }
37
38 AWS_IOTSITEWISE_API Aws::String SerializePayload() const override;
39
40
42
45 inline const Aws::String& GetPortalId() const { return m_portalId; }
46 inline bool PortalIdHasBeenSet() const { return m_portalIdHasBeenSet; }
47 template<typename PortalIdT = Aws::String>
48 void SetPortalId(PortalIdT&& value) { m_portalIdHasBeenSet = true; m_portalId = std::forward<PortalIdT>(value); }
49 template<typename PortalIdT = Aws::String>
50 UpdatePortalRequest& WithPortalId(PortalIdT&& value) { SetPortalId(std::forward<PortalIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetPortalName() const { return m_portalName; }
58 inline bool PortalNameHasBeenSet() const { return m_portalNameHasBeenSet; }
59 template<typename PortalNameT = Aws::String>
60 void SetPortalName(PortalNameT&& value) { m_portalNameHasBeenSet = true; m_portalName = std::forward<PortalNameT>(value); }
61 template<typename PortalNameT = Aws::String>
62 UpdatePortalRequest& WithPortalName(PortalNameT&& value) { SetPortalName(std::forward<PortalNameT>(value)); return *this;}
64
66
69 inline const Aws::String& GetPortalDescription() const { return m_portalDescription; }
70 inline bool PortalDescriptionHasBeenSet() const { return m_portalDescriptionHasBeenSet; }
71 template<typename PortalDescriptionT = Aws::String>
72 void SetPortalDescription(PortalDescriptionT&& value) { m_portalDescriptionHasBeenSet = true; m_portalDescription = std::forward<PortalDescriptionT>(value); }
73 template<typename PortalDescriptionT = Aws::String>
74 UpdatePortalRequest& WithPortalDescription(PortalDescriptionT&& value) { SetPortalDescription(std::forward<PortalDescriptionT>(value)); return *this;}
76
78
81 inline const Aws::String& GetPortalContactEmail() const { return m_portalContactEmail; }
82 inline bool PortalContactEmailHasBeenSet() const { return m_portalContactEmailHasBeenSet; }
83 template<typename PortalContactEmailT = Aws::String>
84 void SetPortalContactEmail(PortalContactEmailT&& value) { m_portalContactEmailHasBeenSet = true; m_portalContactEmail = std::forward<PortalContactEmailT>(value); }
85 template<typename PortalContactEmailT = Aws::String>
86 UpdatePortalRequest& WithPortalContactEmail(PortalContactEmailT&& value) { SetPortalContactEmail(std::forward<PortalContactEmailT>(value)); return *this;}
88
90
91 inline const Image& GetPortalLogoImage() const { return m_portalLogoImage; }
92 inline bool PortalLogoImageHasBeenSet() const { return m_portalLogoImageHasBeenSet; }
93 template<typename PortalLogoImageT = Image>
94 void SetPortalLogoImage(PortalLogoImageT&& value) { m_portalLogoImageHasBeenSet = true; m_portalLogoImage = std::forward<PortalLogoImageT>(value); }
95 template<typename PortalLogoImageT = Image>
96 UpdatePortalRequest& WithPortalLogoImage(PortalLogoImageT&& value) { SetPortalLogoImage(std::forward<PortalLogoImageT>(value)); return *this;}
98
100
109 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
110 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
111 template<typename RoleArnT = Aws::String>
112 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
113 template<typename RoleArnT = Aws::String>
114 UpdatePortalRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
116
118
123 inline const Aws::String& GetClientToken() const { return m_clientToken; }
124 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
125 template<typename ClientTokenT = Aws::String>
126 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
127 template<typename ClientTokenT = Aws::String>
128 UpdatePortalRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
130
132
135 inline const Aws::String& GetNotificationSenderEmail() const { return m_notificationSenderEmail; }
136 inline bool NotificationSenderEmailHasBeenSet() const { return m_notificationSenderEmailHasBeenSet; }
137 template<typename NotificationSenderEmailT = Aws::String>
138 void SetNotificationSenderEmail(NotificationSenderEmailT&& value) { m_notificationSenderEmailHasBeenSet = true; m_notificationSenderEmail = std::forward<NotificationSenderEmailT>(value); }
139 template<typename NotificationSenderEmailT = Aws::String>
140 UpdatePortalRequest& WithNotificationSenderEmail(NotificationSenderEmailT&& value) { SetNotificationSenderEmail(std::forward<NotificationSenderEmailT>(value)); return *this;}
142
144
152 inline const Alarms& GetAlarms() const { return m_alarms; }
153 inline bool AlarmsHasBeenSet() const { return m_alarmsHasBeenSet; }
154 template<typename AlarmsT = Alarms>
155 void SetAlarms(AlarmsT&& value) { m_alarmsHasBeenSet = true; m_alarms = std::forward<AlarmsT>(value); }
156 template<typename AlarmsT = Alarms>
157 UpdatePortalRequest& WithAlarms(AlarmsT&& value) { SetAlarms(std::forward<AlarmsT>(value)); return *this;}
159
161
166 inline PortalType GetPortalType() const { return m_portalType; }
167 inline bool PortalTypeHasBeenSet() const { return m_portalTypeHasBeenSet; }
168 inline void SetPortalType(PortalType value) { m_portalTypeHasBeenSet = true; m_portalType = value; }
169 inline UpdatePortalRequest& WithPortalType(PortalType value) { SetPortalType(value); return *this;}
171
173
178 inline const Aws::Map<Aws::String, PortalTypeEntry>& GetPortalTypeConfiguration() const { return m_portalTypeConfiguration; }
179 inline bool PortalTypeConfigurationHasBeenSet() const { return m_portalTypeConfigurationHasBeenSet; }
180 template<typename PortalTypeConfigurationT = Aws::Map<Aws::String, PortalTypeEntry>>
181 void SetPortalTypeConfiguration(PortalTypeConfigurationT&& value) { m_portalTypeConfigurationHasBeenSet = true; m_portalTypeConfiguration = std::forward<PortalTypeConfigurationT>(value); }
182 template<typename PortalTypeConfigurationT = Aws::Map<Aws::String, PortalTypeEntry>>
183 UpdatePortalRequest& WithPortalTypeConfiguration(PortalTypeConfigurationT&& value) { SetPortalTypeConfiguration(std::forward<PortalTypeConfigurationT>(value)); return *this;}
184 template<typename PortalTypeConfigurationKeyT = Aws::String, typename PortalTypeConfigurationValueT = PortalTypeEntry>
185 UpdatePortalRequest& AddPortalTypeConfiguration(PortalTypeConfigurationKeyT&& key, PortalTypeConfigurationValueT&& value) {
186 m_portalTypeConfigurationHasBeenSet = true; m_portalTypeConfiguration.emplace(std::forward<PortalTypeConfigurationKeyT>(key), std::forward<PortalTypeConfigurationValueT>(value)); return *this;
187 }
189 private:
190
191 Aws::String m_portalId;
192 bool m_portalIdHasBeenSet = false;
193
194 Aws::String m_portalName;
195 bool m_portalNameHasBeenSet = false;
196
197 Aws::String m_portalDescription;
198 bool m_portalDescriptionHasBeenSet = false;
199
200 Aws::String m_portalContactEmail;
201 bool m_portalContactEmailHasBeenSet = false;
202
203 Image m_portalLogoImage;
204 bool m_portalLogoImageHasBeenSet = false;
205
206 Aws::String m_roleArn;
207 bool m_roleArnHasBeenSet = false;
208
210 bool m_clientTokenHasBeenSet = true;
211
212 Aws::String m_notificationSenderEmail;
213 bool m_notificationSenderEmailHasBeenSet = false;
214
215 Alarms m_alarms;
216 bool m_alarmsHasBeenSet = false;
217
218 PortalType m_portalType{PortalType::NOT_SET};
219 bool m_portalTypeHasBeenSet = false;
220
221 Aws::Map<Aws::String, PortalTypeEntry> m_portalTypeConfiguration;
222 bool m_portalTypeConfigurationHasBeenSet = false;
223 };
224
225} // namespace Model
226} // namespace IoTSiteWise
227} // namespace Aws
UpdatePortalRequest & WithPortalDescription(PortalDescriptionT &&value)
UpdatePortalRequest & AddPortalTypeConfiguration(PortalTypeConfigurationKeyT &&key, PortalTypeConfigurationValueT &&value)
const Aws::String & GetNotificationSenderEmail() const
void SetPortalContactEmail(PortalContactEmailT &&value)
UpdatePortalRequest & WithPortalContactEmail(PortalContactEmailT &&value)
UpdatePortalRequest & WithNotificationSenderEmail(NotificationSenderEmailT &&value)
UpdatePortalRequest & WithPortalName(PortalNameT &&value)
UpdatePortalRequest & WithAlarms(AlarmsT &&value)
const Aws::Map< Aws::String, PortalTypeEntry > & GetPortalTypeConfiguration() const
void SetPortalDescription(PortalDescriptionT &&value)
UpdatePortalRequest & WithPortalTypeConfiguration(PortalTypeConfigurationT &&value)
AWS_IOTSITEWISE_API Aws::String SerializePayload() const override
void SetPortalLogoImage(PortalLogoImageT &&value)
UpdatePortalRequest & WithClientToken(ClientTokenT &&value)
void SetPortalTypeConfiguration(PortalTypeConfigurationT &&value)
UpdatePortalRequest & WithRoleArn(RoleArnT &&value)
void SetNotificationSenderEmail(NotificationSenderEmailT &&value)
UpdatePortalRequest & WithPortalType(PortalType value)
UpdatePortalRequest & WithPortalId(PortalIdT &&value)
UpdatePortalRequest & WithPortalLogoImage(PortalLogoImageT &&value)
AWS_IOTSITEWISE_API UpdatePortalRequest()=default
virtual const char * GetServiceRequestName() const override
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