AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkspacesPoolSession.h
1
6#pragma once
7#include <aws/workspaces/WorkSpaces_EXPORTS.h>
8#include <aws/workspaces/model/AuthenticationType.h>
9#include <aws/workspaces/model/SessionConnectionState.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/workspaces/model/NetworkAccessConfiguration.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace WorkSpaces
26{
27namespace Model
28{
29
36 {
37 public:
38 AWS_WORKSPACES_API WorkspacesPoolSession();
41 AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; }
50 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
51 inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
52 inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); }
54 inline WorkspacesPoolSession& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;}
56
58
61 inline const SessionConnectionState& GetConnectionState() const{ return m_connectionState; }
62 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
63 inline void SetConnectionState(const SessionConnectionState& value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
64 inline void SetConnectionState(SessionConnectionState&& value) { m_connectionStateHasBeenSet = true; m_connectionState = std::move(value); }
66 inline WorkspacesPoolSession& WithConnectionState(SessionConnectionState&& value) { SetConnectionState(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
74 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
75 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
76 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
77 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
78 inline WorkspacesPoolSession& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
79 inline WorkspacesPoolSession& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
80 inline WorkspacesPoolSession& WithSessionId(const char* value) { SetSessionId(value); return *this;}
82
84
87 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
88 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
89 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
90 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
91 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
92 inline WorkspacesPoolSession& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
93 inline WorkspacesPoolSession& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
94 inline WorkspacesPoolSession& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
96
98
101 inline const Aws::String& GetPoolId() const{ return m_poolId; }
102 inline bool PoolIdHasBeenSet() const { return m_poolIdHasBeenSet; }
103 inline void SetPoolId(const Aws::String& value) { m_poolIdHasBeenSet = true; m_poolId = value; }
104 inline void SetPoolId(Aws::String&& value) { m_poolIdHasBeenSet = true; m_poolId = std::move(value); }
105 inline void SetPoolId(const char* value) { m_poolIdHasBeenSet = true; m_poolId.assign(value); }
106 inline WorkspacesPoolSession& WithPoolId(const Aws::String& value) { SetPoolId(value); return *this;}
107 inline WorkspacesPoolSession& WithPoolId(Aws::String&& value) { SetPoolId(std::move(value)); return *this;}
108 inline WorkspacesPoolSession& WithPoolId(const char* value) { SetPoolId(value); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetExpirationTime() const{ return m_expirationTime; }
116 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
117 inline void SetExpirationTime(const Aws::Utils::DateTime& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = value; }
118 inline void SetExpirationTime(Aws::Utils::DateTime&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::move(value); }
120 inline WorkspacesPoolSession& WithExpirationTime(Aws::Utils::DateTime&& value) { SetExpirationTime(std::move(value)); return *this;}
122
124
127 inline const NetworkAccessConfiguration& GetNetworkAccessConfiguration() const{ return m_networkAccessConfiguration; }
128 inline bool NetworkAccessConfigurationHasBeenSet() const { return m_networkAccessConfigurationHasBeenSet; }
129 inline void SetNetworkAccessConfiguration(const NetworkAccessConfiguration& value) { m_networkAccessConfigurationHasBeenSet = true; m_networkAccessConfiguration = value; }
130 inline void SetNetworkAccessConfiguration(NetworkAccessConfiguration&& value) { m_networkAccessConfigurationHasBeenSet = true; m_networkAccessConfiguration = std::move(value); }
134
136
139 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
140 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
141 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
142 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
143 inline WorkspacesPoolSession& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
144 inline WorkspacesPoolSession& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
146
148
151 inline const Aws::String& GetUserId() const{ return m_userId; }
152 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
153 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
154 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
155 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
156 inline WorkspacesPoolSession& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
157 inline WorkspacesPoolSession& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
158 inline WorkspacesPoolSession& WithUserId(const char* value) { SetUserId(value); return *this;}
160 private:
161
162 AuthenticationType m_authenticationType;
163 bool m_authenticationTypeHasBeenSet = false;
164
165 SessionConnectionState m_connectionState;
166 bool m_connectionStateHasBeenSet = false;
167
168 Aws::String m_sessionId;
169 bool m_sessionIdHasBeenSet = false;
170
171 Aws::String m_instanceId;
172 bool m_instanceIdHasBeenSet = false;
173
174 Aws::String m_poolId;
175 bool m_poolIdHasBeenSet = false;
176
177 Aws::Utils::DateTime m_expirationTime;
178 bool m_expirationTimeHasBeenSet = false;
179
180 NetworkAccessConfiguration m_networkAccessConfiguration;
181 bool m_networkAccessConfigurationHasBeenSet = false;
182
183 Aws::Utils::DateTime m_startTime;
184 bool m_startTimeHasBeenSet = false;
185
186 Aws::String m_userId;
187 bool m_userIdHasBeenSet = false;
188 };
189
190} // namespace Model
191} // namespace WorkSpaces
192} // namespace Aws
const AuthenticationType & GetAuthenticationType() const
WorkspacesPoolSession & WithNetworkAccessConfiguration(const NetworkAccessConfiguration &value)
const Aws::Utils::DateTime & GetExpirationTime() const
const SessionConnectionState & GetConnectionState() const
WorkspacesPoolSession & WithExpirationTime(const Aws::Utils::DateTime &value)
WorkspacesPoolSession & WithPoolId(Aws::String &&value)
WorkspacesPoolSession & WithInstanceId(Aws::String &&value)
WorkspacesPoolSession & WithPoolId(const char *value)
void SetStartTime(const Aws::Utils::DateTime &value)
WorkspacesPoolSession & WithExpirationTime(Aws::Utils::DateTime &&value)
WorkspacesPoolSession & WithUserId(const char *value)
WorkspacesPoolSession & WithInstanceId(const Aws::String &value)
WorkspacesPoolSession & WithSessionId(Aws::String &&value)
WorkspacesPoolSession & WithStartTime(const Aws::Utils::DateTime &value)
AWS_WORKSPACES_API WorkspacesPoolSession & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkspacesPoolSession & WithPoolId(const Aws::String &value)
void SetStartTime(Aws::Utils::DateTime &&value)
WorkspacesPoolSession & WithAuthenticationType(const AuthenticationType &value)
WorkspacesPoolSession & WithStartTime(Aws::Utils::DateTime &&value)
WorkspacesPoolSession & WithUserId(Aws::String &&value)
void SetExpirationTime(const Aws::Utils::DateTime &value)
void SetConnectionState(const SessionConnectionState &value)
WorkspacesPoolSession & WithNetworkAccessConfiguration(NetworkAccessConfiguration &&value)
void SetAuthenticationType(AuthenticationType &&value)
const Aws::Utils::DateTime & GetStartTime() const
WorkspacesPoolSession & WithSessionId(const char *value)
void SetAuthenticationType(const AuthenticationType &value)
AWS_WORKSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
WorkspacesPoolSession & WithUserId(const Aws::String &value)
WorkspacesPoolSession & WithConnectionState(SessionConnectionState &&value)
WorkspacesPoolSession & WithInstanceId(const char *value)
void SetExpirationTime(Aws::Utils::DateTime &&value)
void SetConnectionState(SessionConnectionState &&value)
WorkspacesPoolSession & WithConnectionState(const SessionConnectionState &value)
WorkspacesPoolSession & WithAuthenticationType(AuthenticationType &&value)
void SetNetworkAccessConfiguration(const NetworkAccessConfiguration &value)
WorkspacesPoolSession & WithSessionId(const Aws::String &value)
const NetworkAccessConfiguration & GetNetworkAccessConfiguration() const
AWS_WORKSPACES_API WorkspacesPoolSession(Aws::Utils::Json::JsonView jsonValue)
void SetNetworkAccessConfiguration(NetworkAccessConfiguration &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue