AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
UpdateAuthenticationProfileRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.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 Connect {
16namespace Model {
17
21 public:
22 AWS_CONNECT_API UpdateAuthenticationProfileRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "UpdateAuthenticationProfile"; }
29
30 AWS_CONNECT_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetAuthenticationProfileId() const { return m_authenticationProfileId; }
37 inline bool AuthenticationProfileIdHasBeenSet() const { return m_authenticationProfileIdHasBeenSet; }
38 template <typename AuthenticationProfileIdT = Aws::String>
39 void SetAuthenticationProfileId(AuthenticationProfileIdT&& value) {
40 m_authenticationProfileIdHasBeenSet = true;
41 m_authenticationProfileId = std::forward<AuthenticationProfileIdT>(value);
42 }
43 template <typename AuthenticationProfileIdT = Aws::String>
45 SetAuthenticationProfileId(std::forward<AuthenticationProfileIdT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
57 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
58 template <typename InstanceIdT = Aws::String>
59 void SetInstanceId(InstanceIdT&& value) {
60 m_instanceIdHasBeenSet = true;
61 m_instanceId = std::forward<InstanceIdT>(value);
62 }
63 template <typename InstanceIdT = Aws::String>
65 SetInstanceId(std::forward<InstanceIdT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 template <typename NameT = Aws::String>
77 void SetName(NameT&& value) {
78 m_nameHasBeenSet = true;
79 m_name = std::forward<NameT>(value);
80 }
81 template <typename NameT = Aws::String>
83 SetName(std::forward<NameT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetDescription() const { return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 template <typename DescriptionT = Aws::String>
95 void SetDescription(DescriptionT&& value) {
96 m_descriptionHasBeenSet = true;
97 m_description = std::forward<DescriptionT>(value);
98 }
99 template <typename DescriptionT = Aws::String>
101 SetDescription(std::forward<DescriptionT>(value));
102 return *this;
103 }
105
107
113 inline const Aws::Vector<Aws::String>& GetAllowedIps() const { return m_allowedIps; }
114 inline bool AllowedIpsHasBeenSet() const { return m_allowedIpsHasBeenSet; }
115 template <typename AllowedIpsT = Aws::Vector<Aws::String>>
116 void SetAllowedIps(AllowedIpsT&& value) {
117 m_allowedIpsHasBeenSet = true;
118 m_allowedIps = std::forward<AllowedIpsT>(value);
119 }
120 template <typename AllowedIpsT = Aws::Vector<Aws::String>>
122 SetAllowedIps(std::forward<AllowedIpsT>(value));
123 return *this;
124 }
125 template <typename AllowedIpsT = Aws::String>
127 m_allowedIpsHasBeenSet = true;
128 m_allowedIps.emplace_back(std::forward<AllowedIpsT>(value));
129 return *this;
130 }
132
134
142 inline const Aws::Vector<Aws::String>& GetBlockedIps() const { return m_blockedIps; }
143 inline bool BlockedIpsHasBeenSet() const { return m_blockedIpsHasBeenSet; }
144 template <typename BlockedIpsT = Aws::Vector<Aws::String>>
145 void SetBlockedIps(BlockedIpsT&& value) {
146 m_blockedIpsHasBeenSet = true;
147 m_blockedIps = std::forward<BlockedIpsT>(value);
148 }
149 template <typename BlockedIpsT = Aws::Vector<Aws::String>>
151 SetBlockedIps(std::forward<BlockedIpsT>(value));
152 return *this;
153 }
154 template <typename BlockedIpsT = Aws::String>
156 m_blockedIpsHasBeenSet = true;
157 m_blockedIps.emplace_back(std::forward<BlockedIpsT>(value));
158 return *this;
159 }
161
163
167 inline int GetSessionInactivityDuration() const { return m_sessionInactivityDuration; }
168 inline bool SessionInactivityDurationHasBeenSet() const { return m_sessionInactivityDurationHasBeenSet; }
169 inline void SetSessionInactivityDuration(int value) {
170 m_sessionInactivityDurationHasBeenSet = true;
171 m_sessionInactivityDuration = value;
172 }
175 return *this;
176 }
178
180
183 inline bool GetSessionInactivityHandlingEnabled() const { return m_sessionInactivityHandlingEnabled; }
184 inline bool SessionInactivityHandlingEnabledHasBeenSet() const { return m_sessionInactivityHandlingEnabledHasBeenSet; }
185 inline void SetSessionInactivityHandlingEnabled(bool value) {
186 m_sessionInactivityHandlingEnabledHasBeenSet = true;
187 m_sessionInactivityHandlingEnabled = value;
188 }
191 return *this;
192 }
194 private:
195 Aws::String m_authenticationProfileId;
196
197 Aws::String m_instanceId;
198
199 Aws::String m_name;
200
201 Aws::String m_description;
202
203 Aws::Vector<Aws::String> m_allowedIps;
204
205 Aws::Vector<Aws::String> m_blockedIps;
206
207 int m_sessionInactivityDuration{0};
208
209 bool m_sessionInactivityHandlingEnabled{false};
210 bool m_authenticationProfileIdHasBeenSet = false;
211 bool m_instanceIdHasBeenSet = false;
212 bool m_nameHasBeenSet = false;
213 bool m_descriptionHasBeenSet = false;
214 bool m_allowedIpsHasBeenSet = false;
215 bool m_blockedIpsHasBeenSet = false;
216 bool m_sessionInactivityDurationHasBeenSet = false;
217 bool m_sessionInactivityHandlingEnabledHasBeenSet = false;
218};
219
220} // namespace Model
221} // namespace Connect
222} // namespace Aws
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdateAuthenticationProfileRequest & AddBlockedIps(BlockedIpsT &&value)
UpdateAuthenticationProfileRequest & WithSessionInactivityDuration(int value)
UpdateAuthenticationProfileRequest & WithBlockedIps(BlockedIpsT &&value)
UpdateAuthenticationProfileRequest & WithAllowedIps(AllowedIpsT &&value)
UpdateAuthenticationProfileRequest & WithSessionInactivityHandlingEnabled(bool value)
UpdateAuthenticationProfileRequest & WithInstanceId(InstanceIdT &&value)
UpdateAuthenticationProfileRequest & WithDescription(DescriptionT &&value)
UpdateAuthenticationProfileRequest & WithName(NameT &&value)
UpdateAuthenticationProfileRequest & AddAllowedIps(AllowedIpsT &&value)
UpdateAuthenticationProfileRequest & WithAuthenticationProfileId(AuthenticationProfileIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector