AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
AssociateContactWithUserRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Connect {
15namespace Model {
16
20 public:
21 AWS_CONNECT_API AssociateContactWithUserRequest() = default;
22
23 // Service request name is the Operation name which will send this request out,
24 // each operation should has unique request name, so that we can get operation's name from this request.
25 // Note: this is not true for response, multiple operations may have the same response name,
26 // so we can not get operation's name from response.
27 inline virtual const char* GetServiceRequestName() const override { return "AssociateContactWithUser"; }
28
29 AWS_CONNECT_API Aws::String SerializePayload() const override;
30
32
37 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
38 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
39 template <typename InstanceIdT = Aws::String>
40 void SetInstanceId(InstanceIdT&& value) {
41 m_instanceIdHasBeenSet = true;
42 m_instanceId = std::forward<InstanceIdT>(value);
43 }
44 template <typename InstanceIdT = Aws::String>
46 SetInstanceId(std::forward<InstanceIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetContactId() const { return m_contactId; }
56 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
57 template <typename ContactIdT = Aws::String>
58 void SetContactId(ContactIdT&& value) {
59 m_contactIdHasBeenSet = true;
60 m_contactId = std::forward<ContactIdT>(value);
61 }
62 template <typename ContactIdT = Aws::String>
64 SetContactId(std::forward<ContactIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetUserId() const { return m_userId; }
74 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
75 template <typename UserIdT = Aws::String>
76 void SetUserId(UserIdT&& value) {
77 m_userIdHasBeenSet = true;
78 m_userId = std::forward<UserIdT>(value);
79 }
80 template <typename UserIdT = Aws::String>
82 SetUserId(std::forward<UserIdT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_instanceId;
88
89 Aws::String m_contactId;
90
91 Aws::String m_userId;
92 bool m_instanceIdHasBeenSet = false;
93 bool m_contactIdHasBeenSet = false;
94 bool m_userIdHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace Connect
99} // namespace Aws
AssociateContactWithUserRequest & WithContactId(ContactIdT &&value)
AWS_CONNECT_API AssociateContactWithUserRequest()=default
AssociateContactWithUserRequest & WithInstanceId(InstanceIdT &&value)
AssociateContactWithUserRequest & WithUserId(UserIdT &&value)
AWS_CONNECT_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String