AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AuthenticationProfile.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Connect
24{
25namespace Model
26{
27
41 {
42 public:
43 AWS_CONNECT_API AuthenticationProfile() = default;
46 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
47
48
50
53 inline const Aws::String& GetId() const { return m_id; }
54 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
55 template<typename IdT = Aws::String>
56 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
57 template<typename IdT = Aws::String>
58 AuthenticationProfile& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
69 template<typename ArnT = Aws::String>
70 AuthenticationProfile& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template<typename NameT = Aws::String>
80 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
81 template<typename NameT = Aws::String>
82 AuthenticationProfile& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
84
86
89 inline const Aws::String& GetDescription() const { return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 template<typename DescriptionT = Aws::String>
92 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
93 template<typename DescriptionT = Aws::String>
94 AuthenticationProfile& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
96
98
106 inline const Aws::Vector<Aws::String>& GetAllowedIps() const { return m_allowedIps; }
107 inline bool AllowedIpsHasBeenSet() const { return m_allowedIpsHasBeenSet; }
108 template<typename AllowedIpsT = Aws::Vector<Aws::String>>
109 void SetAllowedIps(AllowedIpsT&& value) { m_allowedIpsHasBeenSet = true; m_allowedIps = std::forward<AllowedIpsT>(value); }
110 template<typename AllowedIpsT = Aws::Vector<Aws::String>>
111 AuthenticationProfile& WithAllowedIps(AllowedIpsT&& value) { SetAllowedIps(std::forward<AllowedIpsT>(value)); return *this;}
112 template<typename AllowedIpsT = Aws::String>
113 AuthenticationProfile& AddAllowedIps(AllowedIpsT&& value) { m_allowedIpsHasBeenSet = true; m_allowedIps.emplace_back(std::forward<AllowedIpsT>(value)); return *this; }
115
117
125 inline const Aws::Vector<Aws::String>& GetBlockedIps() const { return m_blockedIps; }
126 inline bool BlockedIpsHasBeenSet() const { return m_blockedIpsHasBeenSet; }
127 template<typename BlockedIpsT = Aws::Vector<Aws::String>>
128 void SetBlockedIps(BlockedIpsT&& value) { m_blockedIpsHasBeenSet = true; m_blockedIps = std::forward<BlockedIpsT>(value); }
129 template<typename BlockedIpsT = Aws::Vector<Aws::String>>
130 AuthenticationProfile& WithBlockedIps(BlockedIpsT&& value) { SetBlockedIps(std::forward<BlockedIpsT>(value)); return *this;}
131 template<typename BlockedIpsT = Aws::String>
132 AuthenticationProfile& AddBlockedIps(BlockedIpsT&& value) { m_blockedIpsHasBeenSet = true; m_blockedIps.emplace_back(std::forward<BlockedIpsT>(value)); return *this; }
134
136
142 inline bool GetIsDefault() const { return m_isDefault; }
143 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
144 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
145 inline AuthenticationProfile& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
153 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
154 template<typename CreatedTimeT = Aws::Utils::DateTime>
155 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
156 template<typename CreatedTimeT = Aws::Utils::DateTime>
157 AuthenticationProfile& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
159
161
164 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
165 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
166 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
167 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
168 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
169 AuthenticationProfile& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
171
173
177 inline const Aws::String& GetLastModifiedRegion() const { return m_lastModifiedRegion; }
178 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
179 template<typename LastModifiedRegionT = Aws::String>
180 void SetLastModifiedRegion(LastModifiedRegionT&& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = std::forward<LastModifiedRegionT>(value); }
181 template<typename LastModifiedRegionT = Aws::String>
182 AuthenticationProfile& WithLastModifiedRegion(LastModifiedRegionT&& value) { SetLastModifiedRegion(std::forward<LastModifiedRegionT>(value)); return *this;}
184
186
193 inline int GetPeriodicSessionDuration() const { return m_periodicSessionDuration; }
194 inline bool PeriodicSessionDurationHasBeenSet() const { return m_periodicSessionDurationHasBeenSet; }
195 inline void SetPeriodicSessionDuration(int value) { m_periodicSessionDurationHasBeenSet = true; m_periodicSessionDuration = value; }
198
200
207 inline int GetMaxSessionDuration() const { return m_maxSessionDuration; }
208 inline bool MaxSessionDurationHasBeenSet() const { return m_maxSessionDurationHasBeenSet; }
209 inline void SetMaxSessionDuration(int value) { m_maxSessionDurationHasBeenSet = true; m_maxSessionDuration = value; }
210 inline AuthenticationProfile& WithMaxSessionDuration(int value) { SetMaxSessionDuration(value); return *this;}
212 private:
213
214 Aws::String m_id;
215 bool m_idHasBeenSet = false;
216
217 Aws::String m_arn;
218 bool m_arnHasBeenSet = false;
219
220 Aws::String m_name;
221 bool m_nameHasBeenSet = false;
222
223 Aws::String m_description;
224 bool m_descriptionHasBeenSet = false;
225
226 Aws::Vector<Aws::String> m_allowedIps;
227 bool m_allowedIpsHasBeenSet = false;
228
229 Aws::Vector<Aws::String> m_blockedIps;
230 bool m_blockedIpsHasBeenSet = false;
231
232 bool m_isDefault{false};
233 bool m_isDefaultHasBeenSet = false;
234
235 Aws::Utils::DateTime m_createdTime{};
236 bool m_createdTimeHasBeenSet = false;
237
238 Aws::Utils::DateTime m_lastModifiedTime{};
239 bool m_lastModifiedTimeHasBeenSet = false;
240
241 Aws::String m_lastModifiedRegion;
242 bool m_lastModifiedRegionHasBeenSet = false;
243
244 int m_periodicSessionDuration{0};
245 bool m_periodicSessionDurationHasBeenSet = false;
246
247 int m_maxSessionDuration{0};
248 bool m_maxSessionDurationHasBeenSet = false;
249 };
250
251} // namespace Model
252} // namespace Connect
253} // namespace Aws
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 & WithPeriodicSessionDuration(int 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