AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
CreatePersistentContactAssociationRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/RehydrationType.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Connect {
16namespace Model {
17
21 public:
22 AWS_CONNECT_API CreatePersistentContactAssociationRequest() = 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 "CreatePersistentContactAssociation"; }
29
30 AWS_CONNECT_API Aws::String SerializePayload() const override;
31
33
38 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
39 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
40 template <typename InstanceIdT = Aws::String>
41 void SetInstanceId(InstanceIdT&& value) {
42 m_instanceIdHasBeenSet = true;
43 m_instanceId = std::forward<InstanceIdT>(value);
44 }
45 template <typename InstanceIdT = Aws::String>
47 SetInstanceId(std::forward<InstanceIdT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetInitialContactId() const { return m_initialContactId; }
58 inline bool InitialContactIdHasBeenSet() const { return m_initialContactIdHasBeenSet; }
59 template <typename InitialContactIdT = Aws::String>
60 void SetInitialContactId(InitialContactIdT&& value) {
61 m_initialContactIdHasBeenSet = true;
62 m_initialContactId = std::forward<InitialContactIdT>(value);
63 }
64 template <typename InitialContactIdT = Aws::String>
66 SetInitialContactId(std::forward<InitialContactIdT>(value));
67 return *this;
68 }
70
72
111 inline RehydrationType GetRehydrationType() const { return m_rehydrationType; }
112 inline bool RehydrationTypeHasBeenSet() const { return m_rehydrationTypeHasBeenSet; }
114 m_rehydrationTypeHasBeenSet = true;
115 m_rehydrationType = value;
116 }
118 SetRehydrationType(value);
119 return *this;
120 }
122
124
127 inline const Aws::String& GetSourceContactId() const { return m_sourceContactId; }
128 inline bool SourceContactIdHasBeenSet() const { return m_sourceContactIdHasBeenSet; }
129 template <typename SourceContactIdT = Aws::String>
130 void SetSourceContactId(SourceContactIdT&& value) {
131 m_sourceContactIdHasBeenSet = true;
132 m_sourceContactId = std::forward<SourceContactIdT>(value);
133 }
134 template <typename SourceContactIdT = Aws::String>
136 SetSourceContactId(std::forward<SourceContactIdT>(value));
137 return *this;
138 }
140
142
149 inline const Aws::String& GetClientToken() const { return m_clientToken; }
150 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
151 template <typename ClientTokenT = Aws::String>
152 void SetClientToken(ClientTokenT&& value) {
153 m_clientTokenHasBeenSet = true;
154 m_clientToken = std::forward<ClientTokenT>(value);
155 }
156 template <typename ClientTokenT = Aws::String>
158 SetClientToken(std::forward<ClientTokenT>(value));
159 return *this;
160 }
162 private:
163 Aws::String m_instanceId;
164 bool m_instanceIdHasBeenSet = false;
165
166 Aws::String m_initialContactId;
167 bool m_initialContactIdHasBeenSet = false;
168
169 RehydrationType m_rehydrationType{RehydrationType::NOT_SET};
170 bool m_rehydrationTypeHasBeenSet = false;
171
172 Aws::String m_sourceContactId;
173 bool m_sourceContactIdHasBeenSet = false;
174
175 Aws::String m_clientToken;
176 bool m_clientTokenHasBeenSet = false;
177};
178
179} // namespace Model
180} // namespace Connect
181} // namespace Aws
CreatePersistentContactAssociationRequest & WithInitialContactId(InitialContactIdT &&value)
CreatePersistentContactAssociationRequest & WithRehydrationType(RehydrationType value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreatePersistentContactAssociationRequest & WithInstanceId(InstanceIdT &&value)
CreatePersistentContactAssociationRequest & WithSourceContactId(SourceContactIdT &&value)
CreatePersistentContactAssociationRequest & WithClientToken(ClientTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String