AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateContactAttributesRequest.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/AWSMap.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 "UpdateContactAttributes"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetInitialContactId() const{ return m_initialContactId; }
42 inline bool InitialContactIdHasBeenSet() const { return m_initialContactIdHasBeenSet; }
43 inline void SetInitialContactId(const Aws::String& value) { m_initialContactIdHasBeenSet = true; m_initialContactId = value; }
44 inline void SetInitialContactId(Aws::String&& value) { m_initialContactIdHasBeenSet = true; m_initialContactId = std::move(value); }
45 inline void SetInitialContactId(const char* value) { m_initialContactIdHasBeenSet = true; m_initialContactId.assign(value); }
47 inline UpdateContactAttributesRequest& WithInitialContactId(Aws::String&& value) { SetInitialContactId(std::move(value)); return *this;}
48 inline UpdateContactAttributesRequest& WithInitialContactId(const char* value) { SetInitialContactId(value); return *this;}
50
52
57 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
58 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
59 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
60 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
61 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
62 inline UpdateContactAttributesRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
63 inline UpdateContactAttributesRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
64 inline UpdateContactAttributesRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
66
68
84 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
85 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
86 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
87 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
90 inline UpdateContactAttributesRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
91 inline UpdateContactAttributesRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
92 inline UpdateContactAttributesRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
93 inline UpdateContactAttributesRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
94 inline UpdateContactAttributesRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
95 inline UpdateContactAttributesRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
96 inline UpdateContactAttributesRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
98 private:
99
100 Aws::String m_initialContactId;
101 bool m_initialContactIdHasBeenSet = false;
102
103 Aws::String m_instanceId;
104 bool m_instanceIdHasBeenSet = false;
105
107 bool m_attributesHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Connect
112} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
UpdateContactAttributesRequest & AddAttributes(const char *key, Aws::String &&value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
UpdateContactAttributesRequest & AddAttributes(const char *key, const char *value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
UpdateContactAttributesRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
UpdateContactAttributesRequest & WithInitialContactId(Aws::String &&value)
UpdateContactAttributesRequest & WithInitialContactId(const Aws::String &value)
UpdateContactAttributesRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
UpdateContactAttributesRequest & WithInitialContactId(const char *value)
UpdateContactAttributesRequest & WithInstanceId(const char *value)
UpdateContactAttributesRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
UpdateContactAttributesRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
UpdateContactAttributesRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
AWS_CONNECT_API Aws::String SerializePayload() const override
UpdateContactAttributesRequest & WithInstanceId(const Aws::String &value)
UpdateContactAttributesRequest & AddAttributes(Aws::String &&key, const char *value)
UpdateContactAttributesRequest & WithInstanceId(Aws::String &&value)
UpdateContactAttributesRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String