AWS SDK for C++

AWS SDK for C++ Version 1.11.555

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
UpdateAuthenticationProfileRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Connect
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONNECT_API UpdateAuthenticationProfileRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "UpdateAuthenticationProfile"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
35
37
40 inline const Aws::String& GetAuthenticationProfileId() const { return m_authenticationProfileId; }
41 inline bool AuthenticationProfileIdHasBeenSet() const { return m_authenticationProfileIdHasBeenSet; }
42 template<typename AuthenticationProfileIdT = Aws::String>
43 void SetAuthenticationProfileId(AuthenticationProfileIdT&& value) { m_authenticationProfileIdHasBeenSet = true; m_authenticationProfileId = std::forward<AuthenticationProfileIdT>(value); }
44 template<typename AuthenticationProfileIdT = Aws::String>
45 UpdateAuthenticationProfileRequest& WithAuthenticationProfileId(AuthenticationProfileIdT&& value) { SetAuthenticationProfileId(std::forward<AuthenticationProfileIdT>(value)); return *this;}
47
49
54 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
55 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
56 template<typename InstanceIdT = Aws::String>
57 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
58 template<typename InstanceIdT = Aws::String>
59 UpdateAuthenticationProfileRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
61
63
66 inline const Aws::String& GetName() const { return m_name; }
67 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
68 template<typename NameT = Aws::String>
69 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
70 template<typename NameT = Aws::String>
71 UpdateAuthenticationProfileRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template<typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
82 template<typename DescriptionT = Aws::String>
83 UpdateAuthenticationProfileRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
85
87
93 inline const Aws::Vector<Aws::String>& GetAllowedIps() const { return m_allowedIps; }
94 inline bool AllowedIpsHasBeenSet() const { return m_allowedIpsHasBeenSet; }
95 template<typename AllowedIpsT = Aws::Vector<Aws::String>>
96 void SetAllowedIps(AllowedIpsT&& value) { m_allowedIpsHasBeenSet = true; m_allowedIps = std::forward<AllowedIpsT>(value); }
97 template<typename AllowedIpsT = Aws::Vector<Aws::String>>
98 UpdateAuthenticationProfileRequest& WithAllowedIps(AllowedIpsT&& value) { SetAllowedIps(std::forward<AllowedIpsT>(value)); return *this;}
99 template<typename AllowedIpsT = Aws::String>
100 UpdateAuthenticationProfileRequest& AddAllowedIps(AllowedIpsT&& value) { m_allowedIpsHasBeenSet = true; m_allowedIps.emplace_back(std::forward<AllowedIpsT>(value)); return *this; }
102
104
112 inline const Aws::Vector<Aws::String>& GetBlockedIps() const { return m_blockedIps; }
113 inline bool BlockedIpsHasBeenSet() const { return m_blockedIpsHasBeenSet; }
114 template<typename BlockedIpsT = Aws::Vector<Aws::String>>
115 void SetBlockedIps(BlockedIpsT&& value) { m_blockedIpsHasBeenSet = true; m_blockedIps = std::forward<BlockedIpsT>(value); }
116 template<typename BlockedIpsT = Aws::Vector<Aws::String>>
117 UpdateAuthenticationProfileRequest& WithBlockedIps(BlockedIpsT&& value) { SetBlockedIps(std::forward<BlockedIpsT>(value)); return *this;}
118 template<typename BlockedIpsT = Aws::String>
119 UpdateAuthenticationProfileRequest& AddBlockedIps(BlockedIpsT&& value) { m_blockedIpsHasBeenSet = true; m_blockedIps.emplace_back(std::forward<BlockedIpsT>(value)); return *this; }
121
123
131 inline int GetPeriodicSessionDuration() const { return m_periodicSessionDuration; }
132 inline bool PeriodicSessionDurationHasBeenSet() const { return m_periodicSessionDurationHasBeenSet; }
133 inline void SetPeriodicSessionDuration(int value) { m_periodicSessionDurationHasBeenSet = true; m_periodicSessionDuration = value; }
136 private:
137
138 Aws::String m_authenticationProfileId;
139 bool m_authenticationProfileIdHasBeenSet = false;
140
141 Aws::String m_instanceId;
142 bool m_instanceIdHasBeenSet = false;
143
144 Aws::String m_name;
145 bool m_nameHasBeenSet = false;
146
147 Aws::String m_description;
148 bool m_descriptionHasBeenSet = false;
149
150 Aws::Vector<Aws::String> m_allowedIps;
151 bool m_allowedIpsHasBeenSet = false;
152
153 Aws::Vector<Aws::String> m_blockedIps;
154 bool m_blockedIpsHasBeenSet = false;
155
156 int m_periodicSessionDuration{0};
157 bool m_periodicSessionDurationHasBeenSet = false;
158 };
159
160} // namespace Model
161} // namespace Connect
162} // namespace Aws
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdateAuthenticationProfileRequest & AddBlockedIps(BlockedIpsT &&value)
UpdateAuthenticationProfileRequest & WithBlockedIps(BlockedIpsT &&value)
UpdateAuthenticationProfileRequest & WithAllowedIps(AllowedIpsT &&value)
UpdateAuthenticationProfileRequest & WithInstanceId(InstanceIdT &&value)
UpdateAuthenticationProfileRequest & WithDescription(DescriptionT &&value)
UpdateAuthenticationProfileRequest & WithName(NameT &&value)
UpdateAuthenticationProfileRequest & WithPeriodicSessionDuration(int 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