AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
AuthenticationProfile.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
37 public:
38 AWS_CONNECT_API AuthenticationProfile() = default;
41 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template <typename IdT = Aws::String>
50 void SetId(IdT&& value) {
51 m_idHasBeenSet = true;
52 m_id = std::forward<IdT>(value);
53 }
54 template <typename IdT = Aws::String>
56 SetId(std::forward<IdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetArn() const { return m_arn; }
66 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
67 template <typename ArnT = Aws::String>
68 void SetArn(ArnT&& value) {
69 m_arnHasBeenSet = true;
70 m_arn = std::forward<ArnT>(value);
71 }
72 template <typename ArnT = Aws::String>
74 SetArn(std::forward<ArnT>(value));
75 return *this;
76 }
78
80
83 inline const Aws::String& GetName() const { return m_name; }
84 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
85 template <typename NameT = Aws::String>
86 void SetName(NameT&& value) {
87 m_nameHasBeenSet = true;
88 m_name = std::forward<NameT>(value);
89 }
90 template <typename NameT = Aws::String>
92 SetName(std::forward<NameT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::String& GetDescription() const { return m_description; }
102 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
103 template <typename DescriptionT = Aws::String>
104 void SetDescription(DescriptionT&& value) {
105 m_descriptionHasBeenSet = true;
106 m_description = std::forward<DescriptionT>(value);
107 }
108 template <typename DescriptionT = Aws::String>
109 AuthenticationProfile& WithDescription(DescriptionT&& value) {
110 SetDescription(std::forward<DescriptionT>(value));
111 return *this;
112 }
114
116
124 inline const Aws::Vector<Aws::String>& GetAllowedIps() const { return m_allowedIps; }
125 inline bool AllowedIpsHasBeenSet() const { return m_allowedIpsHasBeenSet; }
126 template <typename AllowedIpsT = Aws::Vector<Aws::String>>
127 void SetAllowedIps(AllowedIpsT&& value) {
128 m_allowedIpsHasBeenSet = true;
129 m_allowedIps = std::forward<AllowedIpsT>(value);
130 }
131 template <typename AllowedIpsT = Aws::Vector<Aws::String>>
132 AuthenticationProfile& WithAllowedIps(AllowedIpsT&& value) {
133 SetAllowedIps(std::forward<AllowedIpsT>(value));
134 return *this;
135 }
136 template <typename AllowedIpsT = Aws::String>
137 AuthenticationProfile& AddAllowedIps(AllowedIpsT&& value) {
138 m_allowedIpsHasBeenSet = true;
139 m_allowedIps.emplace_back(std::forward<AllowedIpsT>(value));
140 return *this;
141 }
143
145
153 inline const Aws::Vector<Aws::String>& GetBlockedIps() const { return m_blockedIps; }
154 inline bool BlockedIpsHasBeenSet() const { return m_blockedIpsHasBeenSet; }
155 template <typename BlockedIpsT = Aws::Vector<Aws::String>>
156 void SetBlockedIps(BlockedIpsT&& value) {
157 m_blockedIpsHasBeenSet = true;
158 m_blockedIps = std::forward<BlockedIpsT>(value);
159 }
160 template <typename BlockedIpsT = Aws::Vector<Aws::String>>
161 AuthenticationProfile& WithBlockedIps(BlockedIpsT&& value) {
162 SetBlockedIps(std::forward<BlockedIpsT>(value));
163 return *this;
164 }
165 template <typename BlockedIpsT = Aws::String>
166 AuthenticationProfile& AddBlockedIps(BlockedIpsT&& value) {
167 m_blockedIpsHasBeenSet = true;
168 m_blockedIps.emplace_back(std::forward<BlockedIpsT>(value));
169 return *this;
170 }
172
174
180 inline bool GetIsDefault() const { return m_isDefault; }
181 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
182 inline void SetIsDefault(bool value) {
183 m_isDefaultHasBeenSet = true;
184 m_isDefault = value;
185 }
187 SetIsDefault(value);
188 return *this;
189 }
191
193
196 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
197 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
198 template <typename CreatedTimeT = Aws::Utils::DateTime>
199 void SetCreatedTime(CreatedTimeT&& value) {
200 m_createdTimeHasBeenSet = true;
201 m_createdTime = std::forward<CreatedTimeT>(value);
202 }
203 template <typename CreatedTimeT = Aws::Utils::DateTime>
204 AuthenticationProfile& WithCreatedTime(CreatedTimeT&& value) {
205 SetCreatedTime(std::forward<CreatedTimeT>(value));
206 return *this;
207 }
209
211
214 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
215 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
216 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
217 void SetLastModifiedTime(LastModifiedTimeT&& value) {
218 m_lastModifiedTimeHasBeenSet = true;
219 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
220 }
221 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
222 AuthenticationProfile& WithLastModifiedTime(LastModifiedTimeT&& value) {
223 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
224 return *this;
225 }
227
229
233 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
234 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
235 template <typename LastModifiedRegionT = Aws::String>
236 void SetLastModifiedRegion(LastModifiedRegionT&& value) {
237 m_lastModifiedRegionHasBeenSet = true;
238 m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value);
239 }
240 template <typename LastModifiedRegionT = Aws::String>
241 AuthenticationProfile& WithLastModifiedRegion(LastModifiedRegionT&& value) {
242 SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value));
243 return *this;
244 }
246
248
255 inline int GetMaxSessionDuration() const { return m_maxSessionDuration; }
256 inline bool MaxSessionDurationHasBeenSet() const { return m_maxSessionDurationHasBeenSet; }
257 inline void SetMaxSessionDuration(int value) {
258 m_maxSessionDurationHasBeenSet = true;
259 m_maxSessionDuration = value;
260 }
263 return *this;
264 }
266
268
272 inline int GetSessionInactivityDuration() const { return m_sessionInactivityDuration; }
273 inline bool SessionInactivityDurationHasBeenSet() const { return m_sessionInactivityDurationHasBeenSet; }
274 inline void SetSessionInactivityDuration(int value) {
275 m_sessionInactivityDurationHasBeenSet = true;
276 m_sessionInactivityDuration = value;
277 }
280 return *this;
281 }
283
285
288 inline bool GetSessionInactivityHandlingEnabled() const { return m_sessionInactivityHandlingEnabled; }
289 inline bool SessionInactivityHandlingEnabledHasBeenSet() const { return m_sessionInactivityHandlingEnabledHasBeenSet; }
290 inline void SetSessionInactivityHandlingEnabled(bool value) {
291 m_sessionInactivityHandlingEnabledHasBeenSet = true;
292 m_sessionInactivityHandlingEnabled = value;
293 }
296 return *this;
297 }
299 private:
300 Aws::String m_id;
301
302 Aws::String m_arn;
303
304 Aws::String m_name;
305
306 Aws::String m_description;
307
308 Aws::Vector<Aws::String> m_allowedIps;
309
310 Aws::Vector<Aws::String> m_blockedIps;
311
312 bool m_isDefault{false};
313
314 Aws::Utils::DateTime m_createdTime{};
315
316 Aws::Utils::DateTime m_lastModifiedTime{};
317
318 Aws::String m_lastModifiedRegion;
319
320 int m_maxSessionDuration{0};
321
322 int m_sessionInactivityDuration{0};
323
324 bool m_sessionInactivityHandlingEnabled{false};
325 bool m_idHasBeenSet = false;
326 bool m_arnHasBeenSet = false;
327 bool m_nameHasBeenSet = false;
328 bool m_descriptionHasBeenSet = false;
329 bool m_allowedIpsHasBeenSet = false;
330 bool m_blockedIpsHasBeenSet = false;
331 bool m_isDefaultHasBeenSet = false;
332 bool m_createdTimeHasBeenSet = false;
333 bool m_lastModifiedTimeHasBeenSet = false;
334 bool m_lastModifiedRegionHasBeenSet = false;
335 bool m_maxSessionDurationHasBeenSet = false;
336 bool m_sessionInactivityDurationHasBeenSet = false;
337 bool m_sessionInactivityHandlingEnabledHasBeenSet = false;
338};
339
340} // namespace Model
341} // namespace Connect
342} // namespace Aws
AuthenticationProfile & WithSessionInactivityDuration(int value)
AuthenticationProfile & WithMaxSessionDuration(int value)
AuthenticationProfile & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
const Aws::Vector< Aws::String > & GetBlockedIps() const
AuthenticationProfile & AddBlockedIps(BlockedIpsT &&value)
void SetLastModifiedRegion(LastModifiedRegionT &&value)
AuthenticationProfile & WithSessionInactivityHandlingEnabled(bool value)
AuthenticationProfile & WithCreatedTime(CreatedTimeT &&value)
AuthenticationProfile & AddAllowedIps(AllowedIpsT &&value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
AuthenticationProfile & WithArn(ArnT &&value)
AuthenticationProfile & WithId(IdT &&value)
AuthenticationProfile & WithIsDefault(bool value)
AWS_CONNECT_API AuthenticationProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API AuthenticationProfile(Aws::Utils::Json::JsonView jsonValue)
AuthenticationProfile & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
AuthenticationProfile & WithBlockedIps(BlockedIpsT &&value)
AuthenticationProfile & WithAllowedIps(AllowedIpsT &&value)
AuthenticationProfile & WithName(NameT &&value)
const Aws::Vector< Aws::String > & GetAllowedIps() const
AuthenticationProfile & WithLastModifiedRegion(LastModifiedRegionT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API AuthenticationProfile()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue