AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
UpdatePortalRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workspaces-web/WorkSpacesWebRequest.h>
9#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
10#include <aws/workspaces-web/model/AuthenticationType.h>
11#include <aws/workspaces-web/model/InstanceType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace WorkSpacesWeb {
17namespace Model {
18
22 public:
23 AWS_WORKSPACESWEB_API UpdatePortalRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdatePortal"; }
30
31 AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetPortalArn() const { return m_portalArn; }
38 inline bool PortalArnHasBeenSet() const { return m_portalArnHasBeenSet; }
39 template <typename PortalArnT = Aws::String>
40 void SetPortalArn(PortalArnT&& value) {
41 m_portalArnHasBeenSet = true;
42 m_portalArn = std::forward<PortalArnT>(value);
43 }
44 template <typename PortalArnT = Aws::String>
45 UpdatePortalRequest& WithPortalArn(PortalArnT&& value) {
46 SetPortalArn(std::forward<PortalArnT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetDisplayName() const { return m_displayName; }
57 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
58 template <typename DisplayNameT = Aws::String>
59 void SetDisplayName(DisplayNameT&& value) {
60 m_displayNameHasBeenSet = true;
61 m_displayName = std::forward<DisplayNameT>(value);
62 }
63 template <typename DisplayNameT = Aws::String>
64 UpdatePortalRequest& WithDisplayName(DisplayNameT&& value) {
65 SetDisplayName(std::forward<DisplayNameT>(value));
66 return *this;
67 }
69
71
82 inline AuthenticationType GetAuthenticationType() const { return m_authenticationType; }
83 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
85 m_authenticationTypeHasBeenSet = true;
86 m_authenticationType = value;
87 }
93
95
98 inline InstanceType GetInstanceType() const { return m_instanceType; }
99 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
100 inline void SetInstanceType(InstanceType value) {
101 m_instanceTypeHasBeenSet = true;
102 m_instanceType = value;
103 }
105 SetInstanceType(value);
106 return *this;
107 }
109
111
114 inline int GetMaxConcurrentSessions() const { return m_maxConcurrentSessions; }
115 inline bool MaxConcurrentSessionsHasBeenSet() const { return m_maxConcurrentSessionsHasBeenSet; }
116 inline void SetMaxConcurrentSessions(int value) {
117 m_maxConcurrentSessionsHasBeenSet = true;
118 m_maxConcurrentSessions = value;
119 }
122 return *this;
123 }
125
127
131 inline const Aws::String& GetPortalCustomDomain() const { return m_portalCustomDomain; }
132 inline bool PortalCustomDomainHasBeenSet() const { return m_portalCustomDomainHasBeenSet; }
133 template <typename PortalCustomDomainT = Aws::String>
134 void SetPortalCustomDomain(PortalCustomDomainT&& value) {
135 m_portalCustomDomainHasBeenSet = true;
136 m_portalCustomDomain = std::forward<PortalCustomDomainT>(value);
137 }
138 template <typename PortalCustomDomainT = Aws::String>
139 UpdatePortalRequest& WithPortalCustomDomain(PortalCustomDomainT&& value) {
140 SetPortalCustomDomain(std::forward<PortalCustomDomainT>(value));
141 return *this;
142 }
144 private:
145 Aws::String m_portalArn;
146
147 Aws::String m_displayName;
148
150
151 InstanceType m_instanceType{InstanceType::NOT_SET};
152
153 int m_maxConcurrentSessions{0};
154
155 Aws::String m_portalCustomDomain;
156 bool m_portalArnHasBeenSet = false;
157 bool m_displayNameHasBeenSet = false;
158 bool m_authenticationTypeHasBeenSet = false;
159 bool m_instanceTypeHasBeenSet = false;
160 bool m_maxConcurrentSessionsHasBeenSet = false;
161 bool m_portalCustomDomainHasBeenSet = false;
162};
163
164} // namespace Model
165} // namespace WorkSpacesWeb
166} // namespace Aws
UpdatePortalRequest & WithInstanceType(InstanceType value)
UpdatePortalRequest & WithAuthenticationType(AuthenticationType value)
UpdatePortalRequest & WithPortalCustomDomain(PortalCustomDomainT &&value)
AWS_WORKSPACESWEB_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetPortalCustomDomain(PortalCustomDomainT &&value)
AWS_WORKSPACESWEB_API UpdatePortalRequest()=default
UpdatePortalRequest & WithPortalArn(PortalArnT &&value)
UpdatePortalRequest & WithDisplayName(DisplayNameT &&value)
void SetAuthenticationType(AuthenticationType value)
UpdatePortalRequest & WithMaxConcurrentSessions(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String