AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Session.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/appstream/model/SessionState.h>
10#include <aws/appstream/model/SessionConnectionState.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/appstream/model/AuthenticationType.h>
13#include <aws/appstream/model/NetworkAccessConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AppStream
27{
28namespace Model
29{
30
36 class Session
37 {
38 public:
39 AWS_APPSTREAM_API Session();
40 AWS_APPSTREAM_API Session(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPSTREAM_API Session& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetId() const{ return m_id; }
50 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
51 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
52 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
53 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
54 inline Session& WithId(const Aws::String& value) { SetId(value); return *this;}
55 inline Session& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
56 inline Session& WithId(const char* value) { SetId(value); return *this;}
58
60
63 inline const Aws::String& GetUserId() const{ return m_userId; }
64 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
65 inline void SetUserId(const Aws::String& value) { m_userIdHasBeenSet = true; m_userId = value; }
66 inline void SetUserId(Aws::String&& value) { m_userIdHasBeenSet = true; m_userId = std::move(value); }
67 inline void SetUserId(const char* value) { m_userIdHasBeenSet = true; m_userId.assign(value); }
68 inline Session& WithUserId(const Aws::String& value) { SetUserId(value); return *this;}
69 inline Session& WithUserId(Aws::String&& value) { SetUserId(std::move(value)); return *this;}
70 inline Session& WithUserId(const char* value) { SetUserId(value); return *this;}
72
74
77 inline const Aws::String& GetStackName() const{ return m_stackName; }
78 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
79 inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
80 inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
81 inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
82 inline Session& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
83 inline Session& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
84 inline Session& WithStackName(const char* value) { SetStackName(value); return *this;}
86
88
91 inline const Aws::String& GetFleetName() const{ return m_fleetName; }
92 inline bool FleetNameHasBeenSet() const { return m_fleetNameHasBeenSet; }
93 inline void SetFleetName(const Aws::String& value) { m_fleetNameHasBeenSet = true; m_fleetName = value; }
94 inline void SetFleetName(Aws::String&& value) { m_fleetNameHasBeenSet = true; m_fleetName = std::move(value); }
95 inline void SetFleetName(const char* value) { m_fleetNameHasBeenSet = true; m_fleetName.assign(value); }
96 inline Session& WithFleetName(const Aws::String& value) { SetFleetName(value); return *this;}
97 inline Session& WithFleetName(Aws::String&& value) { SetFleetName(std::move(value)); return *this;}
98 inline Session& WithFleetName(const char* value) { SetFleetName(value); return *this;}
100
102
105 inline const SessionState& GetState() const{ return m_state; }
106 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
107 inline void SetState(const SessionState& value) { m_stateHasBeenSet = true; m_state = value; }
108 inline void SetState(SessionState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
109 inline Session& WithState(const SessionState& value) { SetState(value); return *this;}
110 inline Session& WithState(SessionState&& value) { SetState(std::move(value)); return *this;}
112
114
117 inline const SessionConnectionState& GetConnectionState() const{ return m_connectionState; }
118 inline bool ConnectionStateHasBeenSet() const { return m_connectionStateHasBeenSet; }
119 inline void SetConnectionState(const SessionConnectionState& value) { m_connectionStateHasBeenSet = true; m_connectionState = value; }
120 inline void SetConnectionState(SessionConnectionState&& value) { m_connectionStateHasBeenSet = true; m_connectionState = std::move(value); }
121 inline Session& WithConnectionState(const SessionConnectionState& value) { SetConnectionState(value); return *this;}
122 inline Session& WithConnectionState(SessionConnectionState&& value) { SetConnectionState(std::move(value)); return *this;}
124
126
129 inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; }
130 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
131 inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; }
132 inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); }
133 inline Session& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;}
134 inline Session& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;}
136
138
148 inline const Aws::Utils::DateTime& GetMaxExpirationTime() const{ return m_maxExpirationTime; }
149 inline bool MaxExpirationTimeHasBeenSet() const { return m_maxExpirationTimeHasBeenSet; }
150 inline void SetMaxExpirationTime(const Aws::Utils::DateTime& value) { m_maxExpirationTimeHasBeenSet = true; m_maxExpirationTime = value; }
151 inline void SetMaxExpirationTime(Aws::Utils::DateTime&& value) { m_maxExpirationTimeHasBeenSet = true; m_maxExpirationTime = std::move(value); }
152 inline Session& WithMaxExpirationTime(const Aws::Utils::DateTime& value) { SetMaxExpirationTime(value); return *this;}
153 inline Session& WithMaxExpirationTime(Aws::Utils::DateTime&& value) { SetMaxExpirationTime(std::move(value)); return *this;}
155
157
161 inline const AuthenticationType& GetAuthenticationType() const{ return m_authenticationType; }
162 inline bool AuthenticationTypeHasBeenSet() const { return m_authenticationTypeHasBeenSet; }
163 inline void SetAuthenticationType(const AuthenticationType& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = value; }
164 inline void SetAuthenticationType(AuthenticationType&& value) { m_authenticationTypeHasBeenSet = true; m_authenticationType = std::move(value); }
165 inline Session& WithAuthenticationType(const AuthenticationType& value) { SetAuthenticationType(value); return *this;}
166 inline Session& WithAuthenticationType(AuthenticationType&& value) { SetAuthenticationType(std::move(value)); return *this;}
168
170
173 inline const NetworkAccessConfiguration& GetNetworkAccessConfiguration() const{ return m_networkAccessConfiguration; }
174 inline bool NetworkAccessConfigurationHasBeenSet() const { return m_networkAccessConfigurationHasBeenSet; }
175 inline void SetNetworkAccessConfiguration(const NetworkAccessConfiguration& value) { m_networkAccessConfigurationHasBeenSet = true; m_networkAccessConfiguration = value; }
176 inline void SetNetworkAccessConfiguration(NetworkAccessConfiguration&& value) { m_networkAccessConfigurationHasBeenSet = true; m_networkAccessConfiguration = std::move(value); }
180
182
185 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
186 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
187 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
188 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
189 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
190 inline Session& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
191 inline Session& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
192 inline Session& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
194 private:
195
196 Aws::String m_id;
197 bool m_idHasBeenSet = false;
198
199 Aws::String m_userId;
200 bool m_userIdHasBeenSet = false;
201
202 Aws::String m_stackName;
203 bool m_stackNameHasBeenSet = false;
204
205 Aws::String m_fleetName;
206 bool m_fleetNameHasBeenSet = false;
207
208 SessionState m_state;
209 bool m_stateHasBeenSet = false;
210
211 SessionConnectionState m_connectionState;
212 bool m_connectionStateHasBeenSet = false;
213
214 Aws::Utils::DateTime m_startTime;
215 bool m_startTimeHasBeenSet = false;
216
217 Aws::Utils::DateTime m_maxExpirationTime;
218 bool m_maxExpirationTimeHasBeenSet = false;
219
220 AuthenticationType m_authenticationType;
221 bool m_authenticationTypeHasBeenSet = false;
222
223 NetworkAccessConfiguration m_networkAccessConfiguration;
224 bool m_networkAccessConfigurationHasBeenSet = false;
225
226 Aws::String m_instanceId;
227 bool m_instanceIdHasBeenSet = false;
228 };
229
230} // namespace Model
231} // namespace AppStream
232} // namespace Aws
Session & WithId(const char *value)
Definition Session.h:56
const Aws::String & GetInstanceId() const
Definition Session.h:185
Session & WithFleetName(const char *value)
Definition Session.h:98
void SetId(const char *value)
Definition Session.h:53
Session & WithUserId(const char *value)
Definition Session.h:70
Session & WithStackName(Aws::String &&value)
Definition Session.h:83
bool NetworkAccessConfigurationHasBeenSet() const
Definition Session.h:174
void SetInstanceId(Aws::String &&value)
Definition Session.h:188
Session & WithInstanceId(const Aws::String &value)
Definition Session.h:190
Session & WithAuthenticationType(AuthenticationType &&value)
Definition Session.h:166
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetState(const SessionState &value)
Definition Session.h:107
Session & WithInstanceId(const char *value)
Definition Session.h:192
void SetUserId(const Aws::String &value)
Definition Session.h:65
void SetId(Aws::String &&value)
Definition Session.h:52
Session & WithMaxExpirationTime(const Aws::Utils::DateTime &value)
Definition Session.h:152
void SetId(const Aws::String &value)
Definition Session.h:51
Session & WithInstanceId(Aws::String &&value)
Definition Session.h:191
void SetFleetName(const char *value)
Definition Session.h:95
Session & WithFleetName(Aws::String &&value)
Definition Session.h:97
void SetMaxExpirationTime(Aws::Utils::DateTime &&value)
Definition Session.h:151
Session & WithMaxExpirationTime(Aws::Utils::DateTime &&value)
Definition Session.h:153
void SetStackName(const char *value)
Definition Session.h:81
const Aws::String & GetFleetName() const
Definition Session.h:91
Session & WithUserId(Aws::String &&value)
Definition Session.h:69
const Aws::Utils::DateTime & GetStartTime() const
Definition Session.h:129
void SetInstanceId(const Aws::String &value)
Definition Session.h:187
Session & WithStackName(const char *value)
Definition Session.h:84
bool StackNameHasBeenSet() const
Definition Session.h:78
Session & WithState(const SessionState &value)
Definition Session.h:109
Session & WithNetworkAccessConfiguration(NetworkAccessConfiguration &&value)
Definition Session.h:178
bool FleetNameHasBeenSet() const
Definition Session.h:92
void SetMaxExpirationTime(const Aws::Utils::DateTime &value)
Definition Session.h:150
Session & WithNetworkAccessConfiguration(const NetworkAccessConfiguration &value)
Definition Session.h:177
bool UserIdHasBeenSet() const
Definition Session.h:64
void SetStartTime(const Aws::Utils::DateTime &value)
Definition Session.h:131
Session & WithStartTime(const Aws::Utils::DateTime &value)
Definition Session.h:133
Session & WithUserId(const Aws::String &value)
Definition Session.h:68
Session & WithAuthenticationType(const AuthenticationType &value)
Definition Session.h:165
bool InstanceIdHasBeenSet() const
Definition Session.h:186
const Aws::String & GetUserId() const
Definition Session.h:63
void SetUserId(const char *value)
Definition Session.h:67
Session & WithFleetName(const Aws::String &value)
Definition Session.h:96
void SetStackName(const Aws::String &value)
Definition Session.h:79
Session & WithStartTime(Aws::Utils::DateTime &&value)
Definition Session.h:134
bool MaxExpirationTimeHasBeenSet() const
Definition Session.h:149
void SetAuthenticationType(AuthenticationType &&value)
Definition Session.h:164
void SetState(SessionState &&value)
Definition Session.h:108
bool AuthenticationTypeHasBeenSet() const
Definition Session.h:162
AWS_APPSTREAM_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetStackName() const
Definition Session.h:77
AWS_APPSTREAM_API Session()
void SetConnectionState(const SessionConnectionState &value)
Definition Session.h:119
Session & WithStackName(const Aws::String &value)
Definition Session.h:82
bool ConnectionStateHasBeenSet() const
Definition Session.h:118
const SessionState & GetState() const
Definition Session.h:105
void SetNetworkAccessConfiguration(const NetworkAccessConfiguration &value)
Definition Session.h:175
void SetUserId(Aws::String &&value)
Definition Session.h:66
const Aws::Utils::DateTime & GetMaxExpirationTime() const
Definition Session.h:148
Session & WithConnectionState(SessionConnectionState &&value)
Definition Session.h:122
AWS_APPSTREAM_API Session(Aws::Utils::Json::JsonView jsonValue)
const NetworkAccessConfiguration & GetNetworkAccessConfiguration() const
Definition Session.h:173
void SetAuthenticationType(const AuthenticationType &value)
Definition Session.h:163
Session & WithId(Aws::String &&value)
Definition Session.h:55
const Aws::String & GetId() const
Definition Session.h:49
void SetFleetName(Aws::String &&value)
Definition Session.h:94
Session & WithState(SessionState &&value)
Definition Session.h:110
Session & WithId(const Aws::String &value)
Definition Session.h:54
void SetStackName(Aws::String &&value)
Definition Session.h:80
void SetInstanceId(const char *value)
Definition Session.h:189
const AuthenticationType & GetAuthenticationType() const
Definition Session.h:161
void SetFleetName(const Aws::String &value)
Definition Session.h:93
void SetStartTime(Aws::Utils::DateTime &&value)
Definition Session.h:132
Session & WithConnectionState(const SessionConnectionState &value)
Definition Session.h:121
bool StartTimeHasBeenSet() const
Definition Session.h:130
void SetConnectionState(SessionConnectionState &&value)
Definition Session.h:120
void SetNetworkAccessConfiguration(NetworkAccessConfiguration &&value)
Definition Session.h:176
const SessionConnectionState & GetConnectionState() const
Definition Session.h:117
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue