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/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/SessionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ssm/model/SessionManagerOutputUrl.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSM
25{
26namespace Model
27{
28
35 class Session
36 {
37 public:
38 AWS_SSM_API Session();
39 AWS_SSM_API Session(Aws::Utils::Json::JsonView jsonValue);
42
43
45
48 inline const Aws::String& GetSessionId() const{ return m_sessionId; }
49 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
50 inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; }
51 inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); }
52 inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); }
53 inline Session& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;}
54 inline Session& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;}
55 inline Session& WithSessionId(const char* value) { SetSessionId(value); return *this;}
57
59
62 inline const Aws::String& GetTarget() const{ return m_target; }
63 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
64 inline void SetTarget(const Aws::String& value) { m_targetHasBeenSet = true; m_target = value; }
65 inline void SetTarget(Aws::String&& value) { m_targetHasBeenSet = true; m_target = std::move(value); }
66 inline void SetTarget(const char* value) { m_targetHasBeenSet = true; m_target.assign(value); }
67 inline Session& WithTarget(const Aws::String& value) { SetTarget(value); return *this;}
68 inline Session& WithTarget(Aws::String&& value) { SetTarget(std::move(value)); return *this;}
69 inline Session& WithTarget(const char* value) { SetTarget(value); return *this;}
71
73
76 inline const SessionStatus& GetStatus() const{ return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(const SessionStatus& value) { m_statusHasBeenSet = true; m_status = value; }
79 inline void SetStatus(SessionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
80 inline Session& WithStatus(const SessionStatus& value) { SetStatus(value); return *this;}
81 inline Session& WithStatus(SessionStatus&& value) { SetStatus(std::move(value)); return *this;}
83
85
88 inline const Aws::Utils::DateTime& GetStartDate() const{ return m_startDate; }
89 inline bool StartDateHasBeenSet() const { return m_startDateHasBeenSet; }
90 inline void SetStartDate(const Aws::Utils::DateTime& value) { m_startDateHasBeenSet = true; m_startDate = value; }
91 inline void SetStartDate(Aws::Utils::DateTime&& value) { m_startDateHasBeenSet = true; m_startDate = std::move(value); }
92 inline Session& WithStartDate(const Aws::Utils::DateTime& value) { SetStartDate(value); return *this;}
93 inline Session& WithStartDate(Aws::Utils::DateTime&& value) { SetStartDate(std::move(value)); return *this;}
95
97
101 inline const Aws::Utils::DateTime& GetEndDate() const{ return m_endDate; }
102 inline bool EndDateHasBeenSet() const { return m_endDateHasBeenSet; }
103 inline void SetEndDate(const Aws::Utils::DateTime& value) { m_endDateHasBeenSet = true; m_endDate = value; }
104 inline void SetEndDate(Aws::Utils::DateTime&& value) { m_endDateHasBeenSet = true; m_endDate = std::move(value); }
105 inline Session& WithEndDate(const Aws::Utils::DateTime& value) { SetEndDate(value); return *this;}
106 inline Session& WithEndDate(Aws::Utils::DateTime&& value) { SetEndDate(std::move(value)); return *this;}
108
110
115 inline const Aws::String& GetDocumentName() const{ return m_documentName; }
116 inline bool DocumentNameHasBeenSet() const { return m_documentNameHasBeenSet; }
117 inline void SetDocumentName(const Aws::String& value) { m_documentNameHasBeenSet = true; m_documentName = value; }
118 inline void SetDocumentName(Aws::String&& value) { m_documentNameHasBeenSet = true; m_documentName = std::move(value); }
119 inline void SetDocumentName(const char* value) { m_documentNameHasBeenSet = true; m_documentName.assign(value); }
120 inline Session& WithDocumentName(const Aws::String& value) { SetDocumentName(value); return *this;}
121 inline Session& WithDocumentName(Aws::String&& value) { SetDocumentName(std::move(value)); return *this;}
122 inline Session& WithDocumentName(const char* value) { SetDocumentName(value); return *this;}
124
126
129 inline const Aws::String& GetOwner() const{ return m_owner; }
130 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
131 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
132 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
133 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
134 inline Session& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
135 inline Session& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
136 inline Session& WithOwner(const char* value) { SetOwner(value); return *this;}
138
140
143 inline const Aws::String& GetReason() const{ return m_reason; }
144 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
145 inline void SetReason(const Aws::String& value) { m_reasonHasBeenSet = true; m_reason = value; }
146 inline void SetReason(Aws::String&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); }
147 inline void SetReason(const char* value) { m_reasonHasBeenSet = true; m_reason.assign(value); }
148 inline Session& WithReason(const Aws::String& value) { SetReason(value); return *this;}
149 inline Session& WithReason(Aws::String&& value) { SetReason(std::move(value)); return *this;}
150 inline Session& WithReason(const char* value) { SetReason(value); return *this;}
152
154
157 inline const Aws::String& GetDetails() const{ return m_details; }
158 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
159 inline void SetDetails(const Aws::String& value) { m_detailsHasBeenSet = true; m_details = value; }
160 inline void SetDetails(Aws::String&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
161 inline void SetDetails(const char* value) { m_detailsHasBeenSet = true; m_details.assign(value); }
162 inline Session& WithDetails(const Aws::String& value) { SetDetails(value); return *this;}
163 inline Session& WithDetails(Aws::String&& value) { SetDetails(std::move(value)); return *this;}
164 inline Session& WithDetails(const char* value) { SetDetails(value); return *this;}
166
168
171 inline const SessionManagerOutputUrl& GetOutputUrl() const{ return m_outputUrl; }
172 inline bool OutputUrlHasBeenSet() const { return m_outputUrlHasBeenSet; }
173 inline void SetOutputUrl(const SessionManagerOutputUrl& value) { m_outputUrlHasBeenSet = true; m_outputUrl = value; }
174 inline void SetOutputUrl(SessionManagerOutputUrl&& value) { m_outputUrlHasBeenSet = true; m_outputUrl = std::move(value); }
175 inline Session& WithOutputUrl(const SessionManagerOutputUrl& value) { SetOutputUrl(value); return *this;}
176 inline Session& WithOutputUrl(SessionManagerOutputUrl&& value) { SetOutputUrl(std::move(value)); return *this;}
178
180
183 inline const Aws::String& GetMaxSessionDuration() const{ return m_maxSessionDuration; }
184 inline bool MaxSessionDurationHasBeenSet() const { return m_maxSessionDurationHasBeenSet; }
185 inline void SetMaxSessionDuration(const Aws::String& value) { m_maxSessionDurationHasBeenSet = true; m_maxSessionDuration = value; }
186 inline void SetMaxSessionDuration(Aws::String&& value) { m_maxSessionDurationHasBeenSet = true; m_maxSessionDuration = std::move(value); }
187 inline void SetMaxSessionDuration(const char* value) { m_maxSessionDurationHasBeenSet = true; m_maxSessionDuration.assign(value); }
188 inline Session& WithMaxSessionDuration(const Aws::String& value) { SetMaxSessionDuration(value); return *this;}
189 inline Session& WithMaxSessionDuration(Aws::String&& value) { SetMaxSessionDuration(std::move(value)); return *this;}
190 inline Session& WithMaxSessionDuration(const char* value) { SetMaxSessionDuration(value); return *this;}
192 private:
193
194 Aws::String m_sessionId;
195 bool m_sessionIdHasBeenSet = false;
196
197 Aws::String m_target;
198 bool m_targetHasBeenSet = false;
199
200 SessionStatus m_status;
201 bool m_statusHasBeenSet = false;
202
203 Aws::Utils::DateTime m_startDate;
204 bool m_startDateHasBeenSet = false;
205
206 Aws::Utils::DateTime m_endDate;
207 bool m_endDateHasBeenSet = false;
208
209 Aws::String m_documentName;
210 bool m_documentNameHasBeenSet = false;
211
212 Aws::String m_owner;
213 bool m_ownerHasBeenSet = false;
214
215 Aws::String m_reason;
216 bool m_reasonHasBeenSet = false;
217
218 Aws::String m_details;
219 bool m_detailsHasBeenSet = false;
220
221 SessionManagerOutputUrl m_outputUrl;
222 bool m_outputUrlHasBeenSet = false;
223
224 Aws::String m_maxSessionDuration;
225 bool m_maxSessionDurationHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace SSM
230} // namespace Aws
AWS_SSM_API Session & operator=(Aws::Utils::Json::JsonView jsonValue)
Session & WithStatus(const SessionStatus &value)
Definition Session.h:80
void SetDetails(const Aws::String &value)
Definition Session.h:159
const Aws::String & GetDetails() const
Definition Session.h:157
void SetMaxSessionDuration(const Aws::String &value)
Definition Session.h:185
void SetOwner(const Aws::String &value)
Definition Session.h:131
void SetDocumentName(const Aws::String &value)
Definition Session.h:117
bool StartDateHasBeenSet() const
Definition Session.h:89
Session & WithOwner(Aws::String &&value)
Definition Session.h:135
const SessionManagerOutputUrl & GetOutputUrl() const
Definition Session.h:171
void SetSessionId(Aws::String &&value)
Definition Session.h:51
const Aws::String & GetMaxSessionDuration() const
Definition Session.h:183
Session & WithReason(const Aws::String &value)
Definition Session.h:148
void SetStartDate(const Aws::Utils::DateTime &value)
Definition Session.h:90
bool TargetHasBeenSet() const
Definition Session.h:63
void SetSessionId(const Aws::String &value)
Definition Session.h:50
void SetReason(const char *value)
Definition Session.h:147
Session & WithEndDate(const Aws::Utils::DateTime &value)
Definition Session.h:105
Session & WithOutputUrl(SessionManagerOutputUrl &&value)
Definition Session.h:176
bool OwnerHasBeenSet() const
Definition Session.h:130
const Aws::Utils::DateTime & GetStartDate() const
Definition Session.h:88
void SetReason(const Aws::String &value)
Definition Session.h:145
Session & WithDocumentName(const char *value)
Definition Session.h:122
bool ReasonHasBeenSet() const
Definition Session.h:144
Session & WithOwner(const char *value)
Definition Session.h:136
Session & WithOutputUrl(const SessionManagerOutputUrl &value)
Definition Session.h:175
void SetStartDate(Aws::Utils::DateTime &&value)
Definition Session.h:91
Session & WithMaxSessionDuration(const char *value)
Definition Session.h:190
Session & WithMaxSessionDuration(Aws::String &&value)
Definition Session.h:189
void SetOwner(Aws::String &&value)
Definition Session.h:132
void SetOutputUrl(const SessionManagerOutputUrl &value)
Definition Session.h:173
void SetTarget(const Aws::String &value)
Definition Session.h:64
Session & WithStartDate(Aws::Utils::DateTime &&value)
Definition Session.h:93
void SetStatus(SessionStatus &&value)
Definition Session.h:79
void SetMaxSessionDuration(const char *value)
Definition Session.h:187
const Aws::String & GetSessionId() const
Definition Session.h:48
void SetEndDate(Aws::Utils::DateTime &&value)
Definition Session.h:104
Session & WithDocumentName(const Aws::String &value)
Definition Session.h:120
Session & WithDetails(const char *value)
Definition Session.h:164
void SetOutputUrl(SessionManagerOutputUrl &&value)
Definition Session.h:174
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
Session & WithTarget(Aws::String &&value)
Definition Session.h:68
Session & WithOwner(const Aws::String &value)
Definition Session.h:134
void SetMaxSessionDuration(Aws::String &&value)
Definition Session.h:186
bool SessionIdHasBeenSet() const
Definition Session.h:49
bool StatusHasBeenSet() const
Definition Session.h:77
const SessionStatus & GetStatus() const
Definition Session.h:76
void SetDocumentName(Aws::String &&value)
Definition Session.h:118
Session & WithMaxSessionDuration(const Aws::String &value)
Definition Session.h:188
const Aws::String & GetDocumentName() const
Definition Session.h:115
Session & WithSessionId(const char *value)
Definition Session.h:55
Session & WithSessionId(const Aws::String &value)
Definition Session.h:53
void SetDocumentName(const char *value)
Definition Session.h:119
Session & WithDocumentName(Aws::String &&value)
Definition Session.h:121
void SetDetails(const char *value)
Definition Session.h:161
void SetEndDate(const Aws::Utils::DateTime &value)
Definition Session.h:103
void SetSessionId(const char *value)
Definition Session.h:52
const Aws::String & GetOwner() const
Definition Session.h:129
bool OutputUrlHasBeenSet() const
Definition Session.h:172
void SetDetails(Aws::String &&value)
Definition Session.h:160
bool MaxSessionDurationHasBeenSet() const
Definition Session.h:184
Session & WithStartDate(const Aws::Utils::DateTime &value)
Definition Session.h:92
bool EndDateHasBeenSet() const
Definition Session.h:102
void SetTarget(const char *value)
Definition Session.h:66
void SetStatus(const SessionStatus &value)
Definition Session.h:78
const Aws::Utils::DateTime & GetEndDate() const
Definition Session.h:101
const Aws::String & GetTarget() const
Definition Session.h:62
Session & WithReason(const char *value)
Definition Session.h:150
Session & WithDetails(Aws::String &&value)
Definition Session.h:163
void SetOwner(const char *value)
Definition Session.h:133
Session & WithEndDate(Aws::Utils::DateTime &&value)
Definition Session.h:106
const Aws::String & GetReason() const
Definition Session.h:143
void SetTarget(Aws::String &&value)
Definition Session.h:65
bool DetailsHasBeenSet() const
Definition Session.h:158
Session & WithStatus(SessionStatus &&value)
Definition Session.h:81
bool DocumentNameHasBeenSet() const
Definition Session.h:116
Session & WithDetails(const Aws::String &value)
Definition Session.h:162
AWS_SSM_API Session(Aws::Utils::Json::JsonView jsonValue)
Session & WithReason(Aws::String &&value)
Definition Session.h:149
Session & WithTarget(const Aws::String &value)
Definition Session.h:67
Session & WithSessionId(Aws::String &&value)
Definition Session.h:54
void SetReason(Aws::String &&value)
Definition Session.h:146
Session & WithTarget(const char *value)
Definition Session.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue