AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePersistentContactAssociationRequest.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/connect/model/RehydrationType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Connect
16{
17namespace Model
18{
19
23 {
24 public:
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 "CreatePersistentContactAssociation"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
35
37
42 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
43 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
44 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
45 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
46 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
48 inline CreatePersistentContactAssociationRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
49 inline CreatePersistentContactAssociationRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
51
53
57 inline const Aws::String& GetInitialContactId() const{ return m_initialContactId; }
58 inline bool InitialContactIdHasBeenSet() const { return m_initialContactIdHasBeenSet; }
59 inline void SetInitialContactId(const Aws::String& value) { m_initialContactIdHasBeenSet = true; m_initialContactId = value; }
60 inline void SetInitialContactId(Aws::String&& value) { m_initialContactIdHasBeenSet = true; m_initialContactId = std::move(value); }
61 inline void SetInitialContactId(const char* value) { m_initialContactIdHasBeenSet = true; m_initialContactId.assign(value); }
66
68
107 inline const RehydrationType& GetRehydrationType() const{ return m_rehydrationType; }
108 inline bool RehydrationTypeHasBeenSet() const { return m_rehydrationTypeHasBeenSet; }
109 inline void SetRehydrationType(const RehydrationType& value) { m_rehydrationTypeHasBeenSet = true; m_rehydrationType = value; }
110 inline void SetRehydrationType(RehydrationType&& value) { m_rehydrationTypeHasBeenSet = true; m_rehydrationType = std::move(value); }
114
116
119 inline const Aws::String& GetSourceContactId() const{ return m_sourceContactId; }
120 inline bool SourceContactIdHasBeenSet() const { return m_sourceContactIdHasBeenSet; }
121 inline void SetSourceContactId(const Aws::String& value) { m_sourceContactIdHasBeenSet = true; m_sourceContactId = value; }
122 inline void SetSourceContactId(Aws::String&& value) { m_sourceContactIdHasBeenSet = true; m_sourceContactId = std::move(value); }
123 inline void SetSourceContactId(const char* value) { m_sourceContactIdHasBeenSet = true; m_sourceContactId.assign(value); }
126 inline CreatePersistentContactAssociationRequest& WithSourceContactId(const char* value) { SetSourceContactId(value); return *this;}
128
130
137 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
138 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
139 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
140 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
141 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
143 inline CreatePersistentContactAssociationRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
144 inline CreatePersistentContactAssociationRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
146 private:
147
148 Aws::String m_instanceId;
149 bool m_instanceIdHasBeenSet = false;
150
151 Aws::String m_initialContactId;
152 bool m_initialContactIdHasBeenSet = false;
153
154 RehydrationType m_rehydrationType;
155 bool m_rehydrationTypeHasBeenSet = false;
156
157 Aws::String m_sourceContactId;
158 bool m_sourceContactIdHasBeenSet = false;
159
160 Aws::String m_clientToken;
161 bool m_clientTokenHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace Connect
166} // namespace Aws
CreatePersistentContactAssociationRequest & WithRehydrationType(RehydrationType &&value)
CreatePersistentContactAssociationRequest & WithClientToken(const Aws::String &value)
CreatePersistentContactAssociationRequest & WithSourceContactId(const char *value)
CreatePersistentContactAssociationRequest & WithClientToken(Aws::String &&value)
CreatePersistentContactAssociationRequest & WithSourceContactId(Aws::String &&value)
CreatePersistentContactAssociationRequest & WithInstanceId(Aws::String &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
CreatePersistentContactAssociationRequest & WithInitialContactId(Aws::String &&value)
CreatePersistentContactAssociationRequest & WithInstanceId(const Aws::String &value)
CreatePersistentContactAssociationRequest & WithSourceContactId(const Aws::String &value)
CreatePersistentContactAssociationRequest & WithInitialContactId(const char *value)
CreatePersistentContactAssociationRequest & WithInitialContactId(const Aws::String &value)
CreatePersistentContactAssociationRequest & WithClientToken(const char *value)
CreatePersistentContactAssociationRequest & WithRehydrationType(const RehydrationType &value)
CreatePersistentContactAssociationRequest & WithInstanceId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String