AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
56 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
57 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
58 inline AuthenticationProfile& WithId(const Aws::String& value) { SetId(value); return *this;}
59 inline AuthenticationProfile& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
60 inline AuthenticationProfile& WithId(const char* value) { SetId(value); return *this;}
62
64
67 inline const Aws::String& GetArn() const{ return m_arn; }
68 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
69 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
70 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
71 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
72 inline AuthenticationProfile& WithArn(const Aws::String& value) { SetArn(value); return *this;}
73 inline AuthenticationProfile& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
74 inline AuthenticationProfile& WithArn(const char* value) { SetArn(value); return *this;}
76
78
81 inline const Aws::String& GetName() const{ return m_name; }
82 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
83 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
84 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
85 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
86 inline AuthenticationProfile& WithName(const Aws::String& value) { SetName(value); return *this;}
87 inline AuthenticationProfile& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
88 inline AuthenticationProfile& WithName(const char* value) { SetName(value); return *this;}
90
92
95 inline const Aws::String& GetDescription() const{ return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
98 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
99 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
100 inline AuthenticationProfile& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
101 inline AuthenticationProfile& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
102 inline AuthenticationProfile& WithDescription(const char* value) { SetDescription(value); return *this;}
104
106
114 inline const Aws::Vector<Aws::String>& GetAllowedIps() const{ return m_allowedIps; }
115 inline bool AllowedIpsHasBeenSet() const { return m_allowedIpsHasBeenSet; }
116 inline void SetAllowedIps(const Aws::Vector<Aws::String>& value) { m_allowedIpsHasBeenSet = true; m_allowedIps = value; }
117 inline void SetAllowedIps(Aws::Vector<Aws::String>&& value) { m_allowedIpsHasBeenSet = true; m_allowedIps = std::move(value); }
118 inline AuthenticationProfile& WithAllowedIps(const Aws::Vector<Aws::String>& value) { SetAllowedIps(value); return *this;}
119 inline AuthenticationProfile& WithAllowedIps(Aws::Vector<Aws::String>&& value) { SetAllowedIps(std::move(value)); return *this;}
120 inline AuthenticationProfile& AddAllowedIps(const Aws::String& value) { m_allowedIpsHasBeenSet = true; m_allowedIps.push_back(value); return *this; }
121 inline AuthenticationProfile& AddAllowedIps(Aws::String&& value) { m_allowedIpsHasBeenSet = true; m_allowedIps.push_back(std::move(value)); return *this; }
122 inline AuthenticationProfile& AddAllowedIps(const char* value) { m_allowedIpsHasBeenSet = true; m_allowedIps.push_back(value); return *this; }
124
126
134 inline const Aws::Vector<Aws::String>& GetBlockedIps() const{ return m_blockedIps; }
135 inline bool BlockedIpsHasBeenSet() const { return m_blockedIpsHasBeenSet; }
136 inline void SetBlockedIps(const Aws::Vector<Aws::String>& value) { m_blockedIpsHasBeenSet = true; m_blockedIps = value; }
137 inline void SetBlockedIps(Aws::Vector<Aws::String>&& value) { m_blockedIpsHasBeenSet = true; m_blockedIps = std::move(value); }
138 inline AuthenticationProfile& WithBlockedIps(const Aws::Vector<Aws::String>& value) { SetBlockedIps(value); return *this;}
139 inline AuthenticationProfile& WithBlockedIps(Aws::Vector<Aws::String>&& value) { SetBlockedIps(std::move(value)); return *this;}
140 inline AuthenticationProfile& AddBlockedIps(const Aws::String& value) { m_blockedIpsHasBeenSet = true; m_blockedIps.push_back(value); return *this; }
141 inline AuthenticationProfile& AddBlockedIps(Aws::String&& value) { m_blockedIpsHasBeenSet = true; m_blockedIps.push_back(std::move(value)); return *this; }
142 inline AuthenticationProfile& AddBlockedIps(const char* value) { m_blockedIpsHasBeenSet = true; m_blockedIps.push_back(value); return *this; }
144
146
152 inline bool GetIsDefault() const{ return m_isDefault; }
153 inline bool IsDefaultHasBeenSet() const { return m_isDefaultHasBeenSet; }
154 inline void SetIsDefault(bool value) { m_isDefaultHasBeenSet = true; m_isDefault = value; }
155 inline AuthenticationProfile& WithIsDefault(bool value) { SetIsDefault(value); return *this;}
157
159
162 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
163 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
164 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
165 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
166 inline AuthenticationProfile& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
167 inline AuthenticationProfile& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
169
171
174 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
175 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
176 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
177 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
179 inline AuthenticationProfile& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
181
183
187 inline const Aws::String& GetLastModifiedRegion() const{ return m_lastModifiedRegion; }
188 inline bool LastModifiedRegionHasBeenSet() const { return m_lastModifiedRegionHasBeenSet; }
189 inline void SetLastModifiedRegion(const Aws::String& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = value; }
190 inline void SetLastModifiedRegion(Aws::String&& value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion = std::move(value); }
191 inline void SetLastModifiedRegion(const char* value) { m_lastModifiedRegionHasBeenSet = true; m_lastModifiedRegion.assign(value); }
193 inline AuthenticationProfile& WithLastModifiedRegion(Aws::String&& value) { SetLastModifiedRegion(std::move(value)); return *this;}
194 inline AuthenticationProfile& WithLastModifiedRegion(const char* value) { SetLastModifiedRegion(value); return *this;}
196
198
205 inline int GetPeriodicSessionDuration() const{ return m_periodicSessionDuration; }
206 inline bool PeriodicSessionDurationHasBeenSet() const { return m_periodicSessionDurationHasBeenSet; }
207 inline void SetPeriodicSessionDuration(int value) { m_periodicSessionDurationHasBeenSet = true; m_periodicSessionDuration = value; }
210
212
219 inline int GetMaxSessionDuration() const{ return m_maxSessionDuration; }
220 inline bool MaxSessionDurationHasBeenSet() const { return m_maxSessionDurationHasBeenSet; }
221 inline void SetMaxSessionDuration(int value) { m_maxSessionDurationHasBeenSet = true; m_maxSessionDuration = value; }
222 inline AuthenticationProfile& WithMaxSessionDuration(int value) { SetMaxSessionDuration(value); return *this;}
224 private:
225
226 Aws::String m_id;
227 bool m_idHasBeenSet = false;
228
229 Aws::String m_arn;
230 bool m_arnHasBeenSet = false;
231
232 Aws::String m_name;
233 bool m_nameHasBeenSet = false;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
238 Aws::Vector<Aws::String> m_allowedIps;
239 bool m_allowedIpsHasBeenSet = false;
240
241 Aws::Vector<Aws::String> m_blockedIps;
242 bool m_blockedIpsHasBeenSet = false;
243
244 bool m_isDefault;
245 bool m_isDefaultHasBeenSet = false;
246
247 Aws::Utils::DateTime m_createdTime;
248 bool m_createdTimeHasBeenSet = false;
249
250 Aws::Utils::DateTime m_lastModifiedTime;
251 bool m_lastModifiedTimeHasBeenSet = false;
252
253 Aws::String m_lastModifiedRegion;
254 bool m_lastModifiedRegionHasBeenSet = false;
255
256 int m_periodicSessionDuration;
257 bool m_periodicSessionDurationHasBeenSet = false;
258
259 int m_maxSessionDuration;
260 bool m_maxSessionDurationHasBeenSet = false;
261 };
262
263} // namespace Model
264} // namespace Connect
265} // namespace Aws
AuthenticationProfile & WithName(Aws::String &&value)
AuthenticationProfile & WithCreatedTime(const Aws::Utils::DateTime &value)
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
void SetAllowedIps(Aws::Vector< Aws::String > &&value)
AuthenticationProfile & WithDescription(const Aws::String &value)
AuthenticationProfile & WithMaxSessionDuration(int value)
AuthenticationProfile & WithId(const Aws::String &value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetBlockedIps(Aws::Vector< Aws::String > &&value)
AuthenticationProfile & WithArn(Aws::String &&value)
AuthenticationProfile & WithLastModifiedTime(const Aws::Utils::DateTime &value)
const Aws::Vector< Aws::String > & GetBlockedIps() const
AuthenticationProfile & WithLastModifiedTime(Aws::Utils::DateTime &&value)
AuthenticationProfile & WithLastModifiedRegion(Aws::String &&value)
AuthenticationProfile & WithPeriodicSessionDuration(int value)
AuthenticationProfile & WithArn(const char *value)
AuthenticationProfile & WithAllowedIps(const Aws::Vector< Aws::String > &value)
AuthenticationProfile & AddAllowedIps(const char *value)
AuthenticationProfile & WithCreatedTime(Aws::Utils::DateTime &&value)
void SetCreatedTime(const Aws::Utils::DateTime &value)
void SetLastModifiedRegion(const Aws::String &value)
AuthenticationProfile & WithLastModifiedRegion(const char *value)
AuthenticationProfile & AddAllowedIps(const Aws::String &value)
void SetBlockedIps(const Aws::Vector< Aws::String > &value)
AuthenticationProfile & WithDescription(const char *value)
void SetCreatedTime(Aws::Utils::DateTime &&value)
AuthenticationProfile & WithAllowedIps(Aws::Vector< Aws::String > &&value)
AuthenticationProfile & WithIsDefault(bool value)
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
AWS_CONNECT_API AuthenticationProfile & operator=(Aws::Utils::Json::JsonView jsonValue)
AuthenticationProfile & WithLastModifiedRegion(const Aws::String &value)
AuthenticationProfile & AddBlockedIps(const Aws::String &value)
AWS_CONNECT_API AuthenticationProfile(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreatedTime() const
AuthenticationProfile & WithDescription(Aws::String &&value)
AuthenticationProfile & WithId(Aws::String &&value)
AuthenticationProfile & WithName(const char *value)
AuthenticationProfile & AddAllowedIps(Aws::String &&value)
AuthenticationProfile & WithId(const char *value)
AuthenticationProfile & WithName(const Aws::String &value)
AuthenticationProfile & WithBlockedIps(Aws::Vector< Aws::String > &&value)
AuthenticationProfile & AddBlockedIps(const char *value)
AuthenticationProfile & AddBlockedIps(Aws::String &&value)
const Aws::Vector< Aws::String > & GetAllowedIps() const
AuthenticationProfile & WithArn(const Aws::String &value)
AuthenticationProfile & WithBlockedIps(const Aws::Vector< Aws::String > &value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAllowedIps(const Aws::Vector< Aws::String > &value)
void SetDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue