AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
CreatePortalRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/workspaces-web/WorkSpacesWebRequest.h>
12#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
13#include <aws/workspaces-web/model/AuthenticationType.h>
14#include <aws/workspaces-web/model/InstanceType.h>
15#include <aws/workspaces-web/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace WorkSpacesWeb {
21namespace Model {
22
26 public:
27 AWS_WORKSPACESWEB_API CreatePortalRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreatePortal"; }
34
35 AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override;
36
38
42 inline const Aws::String& GetDisplayName() const { return m_displayName; }
43 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
44 template <typename DisplayNameT = Aws::String>
45 void SetDisplayName(DisplayNameT&& value) {
46 m_displayNameHasBeenSet = true;
47 m_displayName = std::forward<DisplayNameT>(value);
48 }
49 template <typename DisplayNameT = Aws::String>
50 CreatePortalRequest& WithDisplayName(DisplayNameT&& value) {
51 SetDisplayName(std::forward<DisplayNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
61 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
62 template <typename TagsT = Aws::Vector<Tag>>
63 void SetTags(TagsT&& value) {
64 m_tagsHasBeenSet = true;
65 m_tags = std::forward<TagsT>(value);
66 }
67 template <typename TagsT = Aws::Vector<Tag>>
68 CreatePortalRequest& WithTags(TagsT&& value) {
69 SetTags(std::forward<TagsT>(value));
70 return *this;
71 }
72 template <typename TagsT = Tag>
73 CreatePortalRequest& AddTags(TagsT&& value) {
74 m_tagsHasBeenSet = true;
75 m_tags.emplace_back(std::forward<TagsT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetCustomerManagedKey() const { return m_customerManagedKey; }
85 inline bool CustomerManagedKeyHasBeenSet() const { return m_customerManagedKeyHasBeenSet; }
86 template <typename CustomerManagedKeyT = Aws::String>
87 void SetCustomerManagedKey(CustomerManagedKeyT&& value) {
88 m_customerManagedKeyHasBeenSet = true;
89 m_customerManagedKey = std::forward<CustomerManagedKeyT>(value);
90 }
91 template <typename CustomerManagedKeyT = Aws::String>
92 CreatePortalRequest& WithCustomerManagedKey(CustomerManagedKeyT&& value) {
93 SetCustomerManagedKey(std::forward<CustomerManagedKeyT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::Map<Aws::String, Aws::String>& GetAdditionalEncryptionContext() const { return m_additionalEncryptionContext; }
103 inline bool AdditionalEncryptionContextHasBeenSet() const { return m_additionalEncryptionContextHasBeenSet; }
104 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
105 void SetAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
106 m_additionalEncryptionContextHasBeenSet = true;
107 m_additionalEncryptionContext = std::forward<AdditionalEncryptionContextT>(value);
108 }
109 template <typename AdditionalEncryptionContextT = Aws::Map<Aws::String, Aws::String>>
110 CreatePortalRequest& WithAdditionalEncryptionContext(AdditionalEncryptionContextT&& value) {
111 SetAdditionalEncryptionContext(std::forward<AdditionalEncryptionContextT>(value));
112 return *this;
113 }
114 template <typename AdditionalEncryptionContextKeyT = Aws::String, typename AdditionalEncryptionContextValueT = Aws::String>
115 CreatePortalRequest& AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT&& key, AdditionalEncryptionContextValueT&& value) {
116 m_additionalEncryptionContextHasBeenSet = true;
117 m_additionalEncryptionContext.emplace(std::forward<AdditionalEncryptionContextKeyT>(key),
118 std::forward<AdditionalEncryptionContextValueT>(value));
119 return *this;
120 }
122
124
132 inline const Aws::String& GetClientToken() const { return m_clientToken; }
133 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
134 template <typename ClientTokenT = Aws::String>
135 void SetClientToken(ClientTokenT&& value) {
136 m_clientTokenHasBeenSet = true;
137 m_clientToken = std::forward<ClientTokenT>(value);
138 }
139 template <typename ClientTokenT = Aws::String>
140 CreatePortalRequest& WithClientToken(ClientTokenT&& value) {
141 SetClientToken(std::forward<ClientTokenT>(value));
142 return *this;
143 }
145
147
158 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
159 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
161 m_authenticationTypeHasBeenSet = true;
162 m_authenticationType = value;
163 }
166 return *this;
167 }
169
171
174 inline InstanceType GetInstanceType() const { return m_instanceType; }
175 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
176 inline void SetInstanceType(InstanceType value) {
177 m_instanceTypeHasBeenSet = true;
178 m_instanceType = value;
179 }
181 SetInstanceType(value);
182 return *this;
183 }
185
187
190 inline int GetMaxConcurrentSessions() const { return m_maxConcurrentSessions; }
191 inline bool MaxConcurrentSessionsHasBeenSet() const { return m_maxConcurrentSessionsHasBeenSet; }
192 inline void SetMaxConcurrentSessions(int value) {
193 m_maxConcurrentSessionsHasBeenSet = true;
194 m_maxConcurrentSessions = value;
195 }
198 return *this;
199 }
201
203
207 inline const Aws::String& GetPortalCustomDomain() const { return m_portalCustomDomain; }
208 inline bool PortalCustomDomainHasBeenSet() const { return m_portalCustomDomainHasBeenSet; }
209 template <typename PortalCustomDomainT = Aws::String>
210 void SetPortalCustomDomain(PortalCustomDomainT&& value) {
211 m_portalCustomDomainHasBeenSet = true;
212 m_portalCustomDomain = std::forward<PortalCustomDomainT>(value);
213 }
214 template <typename PortalCustomDomainT = Aws::String>
215 CreatePortalRequest& WithPortalCustomDomain(PortalCustomDomainT&& value) {
216 SetPortalCustomDomain(std::forward<PortalCustomDomainT>(value));
217 return *this;
218 }
220 private:
221 Aws::String m_displayName;
222
223 Aws::Vector<Tag> m_tags;
224
225 Aws::String m_customerManagedKey;
226
227 Aws::Map<Aws::String, Aws::String> m_additionalEncryptionContext;
228
230
232
233 InstanceType m_instanceType{InstanceType::NOT_SET};
234
235 int m_maxConcurrentSessions{0};
236
237 Aws::String m_portalCustomDomain;
238 bool m_displayNameHasBeenSet = false;
239 bool m_tagsHasBeenSet = false;
240 bool m_customerManagedKeyHasBeenSet = false;
241 bool m_additionalEncryptionContextHasBeenSet = false;
242 bool m_clientTokenHasBeenSet = true;
243 bool m_authenticationTypeHasBeenSet = false;
244 bool m_instanceTypeHasBeenSet = false;
245 bool m_maxConcurrentSessionsHasBeenSet = false;
246 bool m_portalCustomDomainHasBeenSet = false;
247};
248
249} // namespace Model
250} // namespace WorkSpacesWeb
251} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
void SetPortalCustomDomain(PortalCustomDomainT &&value)
void SetAuthenticationType(AuthenticationType value)
CreatePortalRequest & WithAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
CreatePortalRequest & WithCustomerManagedKey(CustomerManagedKeyT &&value)
void SetAdditionalEncryptionContext(AdditionalEncryptionContextT &&value)
virtual const char * GetServiceRequestName() const override
CreatePortalRequest & WithPortalCustomDomain(PortalCustomDomainT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAdditionalEncryptionContext() const
const Aws::Vector< Tag > & GetTags() const
AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override
CreatePortalRequest & WithTags(TagsT &&value)
CreatePortalRequest & WithAuthenticationType(AuthenticationType value)
CreatePortalRequest & WithMaxConcurrentSessions(int value)
CreatePortalRequest & WithDisplayName(DisplayNameT &&value)
CreatePortalRequest & WithClientToken(ClientTokenT &&value)
void SetCustomerManagedKey(CustomerManagedKeyT &&value)
AWS_WORKSPACESWEB_API CreatePortalRequest()=default
CreatePortalRequest & AddTags(TagsT &&value)
CreatePortalRequest & WithInstanceType(InstanceType value)
CreatePortalRequest & AddAdditionalEncryptionContext(AdditionalEncryptionContextKeyT &&key, AdditionalEncryptionContextValueT &&value)
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
std::vector< T, Aws::Allocator< T > > Vector