AWS SDK for C++  1.9.157
AWS SDK for C++
UpdateContactAttributesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Connect
16 {
17 namespace 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 "UpdateContactAttributes"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
40  inline const Aws::String& GetInitialContactId() const{ return m_initialContactId; }
41 
46  inline bool InitialContactIdHasBeenSet() const { return m_initialContactIdHasBeenSet; }
47 
52  inline void SetInitialContactId(const Aws::String& value) { m_initialContactIdHasBeenSet = true; m_initialContactId = value; }
53 
58  inline void SetInitialContactId(Aws::String&& value) { m_initialContactIdHasBeenSet = true; m_initialContactId = std::move(value); }
59 
64  inline void SetInitialContactId(const char* value) { m_initialContactIdHasBeenSet = true; m_initialContactId.assign(value); }
65 
70  inline UpdateContactAttributesRequest& WithInitialContactId(const Aws::String& value) { SetInitialContactId(value); return *this;}
71 
76  inline UpdateContactAttributesRequest& WithInitialContactId(Aws::String&& value) { SetInitialContactId(std::move(value)); return *this;}
77 
82  inline UpdateContactAttributesRequest& WithInitialContactId(const char* value) { SetInitialContactId(value); return *this;}
83 
84 
89  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
90 
95  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
96 
101  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
102 
107  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
108 
113  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
114 
119  inline UpdateContactAttributesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
120 
125  inline UpdateContactAttributesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
126 
131  inline UpdateContactAttributesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
132 
133 
140  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
141 
148  inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
149 
156  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
157 
164  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
165 
172  inline UpdateContactAttributesRequest& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
173 
180  inline UpdateContactAttributesRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
181 
188  inline UpdateContactAttributesRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
189 
196  inline UpdateContactAttributesRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
197 
204  inline UpdateContactAttributesRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
205 
212  inline UpdateContactAttributesRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
213 
220  inline UpdateContactAttributesRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
221 
228  inline UpdateContactAttributesRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
229 
236  inline UpdateContactAttributesRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
237 
238  private:
239 
240  Aws::String m_initialContactId;
241  bool m_initialContactIdHasBeenSet;
242 
243  Aws::String m_instanceId;
244  bool m_instanceIdHasBeenSet;
245 
247  bool m_attributesHasBeenSet;
248  };
249 
250 } // namespace Model
251 } // namespace Connect
252 } // namespace Aws
Aws::Connect::Model::UpdateContactAttributesRequest::GetInitialContactId
const Aws::String & GetInitialContactId() const
Definition: UpdateContactAttributesRequest.h:40
Aws::Connect::Model::UpdateContactAttributesRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: UpdateContactAttributesRequest.h:89
Aws::Connect::Model::UpdateContactAttributesRequest::WithInitialContactId
UpdateContactAttributesRequest & WithInitialContactId(const Aws::String &value)
Definition: UpdateContactAttributesRequest.h:70
Aws::Connect::Model::UpdateContactAttributesRequest::AddAttributes
UpdateContactAttributesRequest & AddAttributes(const char *key, const char *value)
Definition: UpdateContactAttributesRequest.h:236
Aws::Connect::Model::UpdateContactAttributesRequest::WithInitialContactId
UpdateContactAttributesRequest & WithInitialContactId(Aws::String &&value)
Definition: UpdateContactAttributesRequest.h:76
Aws::Connect::Model::UpdateContactAttributesRequest::AddAttributes
UpdateContactAttributesRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
Definition: UpdateContactAttributesRequest.h:188
Aws::Connect::Model::UpdateContactAttributesRequest::AddAttributes
UpdateContactAttributesRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
Definition: UpdateContactAttributesRequest.h:204
Aws::Connect::Model::UpdateContactAttributesRequest::WithAttributes
UpdateContactAttributesRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: UpdateContactAttributesRequest.h:172
Aws::Connect::Model::UpdateContactAttributesRequest::UpdateContactAttributesRequest
UpdateContactAttributesRequest()
Aws::Connect::Model::UpdateContactAttributesRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: UpdateContactAttributesRequest.h:101
Aws::Connect::Model::UpdateContactAttributesRequest::AddAttributes
UpdateContactAttributesRequest & AddAttributes(Aws::String &&key, const char *value)
Definition: UpdateContactAttributesRequest.h:228
Aws::Connect::Model::UpdateContactAttributesRequest::AddAttributes
UpdateContactAttributesRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
Definition: UpdateContactAttributesRequest.h:196
Aws::Connect::Model::UpdateContactAttributesRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: UpdateContactAttributesRequest.h:95
Aws::Connect::Model::UpdateContactAttributesRequest::SetAttributes
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: UpdateContactAttributesRequest.h:164
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
AWSString.h
Aws::Connect::Model::UpdateContactAttributesRequest::WithAttributes
UpdateContactAttributesRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
Definition: UpdateContactAttributesRequest.h:180
Aws::Connect::Model::UpdateContactAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateContactAttributesRequest.h:31
Aws::Connect::Model::UpdateContactAttributesRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: UpdateContactAttributesRequest.h:107
Aws::Connect::Model::UpdateContactAttributesRequest::WithInstanceId
UpdateContactAttributesRequest & WithInstanceId(const char *value)
Definition: UpdateContactAttributesRequest.h:131
Aws::Connect::Model::UpdateContactAttributesRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: UpdateContactAttributesRequest.h:113
Aws::Connect::Model::UpdateContactAttributesRequest::WithInstanceId
UpdateContactAttributesRequest & WithInstanceId(const Aws::String &value)
Definition: UpdateContactAttributesRequest.h:119
Aws::Connect::Model::UpdateContactAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::UpdateContactAttributesRequest::AttributesHasBeenSet
bool AttributesHasBeenSet() const
Definition: UpdateContactAttributesRequest.h:148
Aws::Connect::Model::UpdateContactAttributesRequest::WithInitialContactId
UpdateContactAttributesRequest & WithInitialContactId(const char *value)
Definition: UpdateContactAttributesRequest.h:82
Aws::Connect::Model::UpdateContactAttributesRequest::AddAttributes
UpdateContactAttributesRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
Definition: UpdateContactAttributesRequest.h:212
Aws::Connect::Model::UpdateContactAttributesRequest
Definition: UpdateContactAttributesRequest.h:23
Aws::Connect::Model::UpdateContactAttributesRequest::AddAttributes
UpdateContactAttributesRequest & AddAttributes(const char *key, Aws::String &&value)
Definition: UpdateContactAttributesRequest.h:220
Aws::Connect::Model::UpdateContactAttributesRequest::SetInitialContactId
void SetInitialContactId(Aws::String &&value)
Definition: UpdateContactAttributesRequest.h:58
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::UpdateContactAttributesRequest::SetInitialContactId
void SetInitialContactId(const Aws::String &value)
Definition: UpdateContactAttributesRequest.h:52
Aws::Connect::Model::UpdateContactAttributesRequest::SetInitialContactId
void SetInitialContactId(const char *value)
Definition: UpdateContactAttributesRequest.h:64
Aws::Connect::Model::UpdateContactAttributesRequest::GetAttributes
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
Definition: UpdateContactAttributesRequest.h:140
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
AWSMap.h
Aws::Connect::Model::UpdateContactAttributesRequest::SetAttributes
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
Definition: UpdateContactAttributesRequest.h:156
ConnectRequest.h
Aws::Connect::Model::UpdateContactAttributesRequest::WithInstanceId
UpdateContactAttributesRequest & WithInstanceId(Aws::String &&value)
Definition: UpdateContactAttributesRequest.h:125
Aws::Connect::Model::UpdateContactAttributesRequest::InitialContactIdHasBeenSet
bool InitialContactIdHasBeenSet() const
Definition: UpdateContactAttributesRequest.h:46
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19