AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateParticipantRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/connect/model/ParticipantDetailsToAdd.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Connect {
17namespace Model {
18
22 public:
23 AWS_CONNECT_API CreateParticipantRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateParticipant"; }
30
31 AWS_CONNECT_API Aws::String SerializePayload() const override;
32
34
39 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
40 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
41 template <typename InstanceIdT = Aws::String>
42 void SetInstanceId(InstanceIdT&& value) {
43 m_instanceIdHasBeenSet = true;
44 m_instanceId = std::forward<InstanceIdT>(value);
45 }
46 template <typename InstanceIdT = Aws::String>
48 SetInstanceId(std::forward<InstanceIdT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::String& GetContactId() const { return m_contactId; }
61 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
62 template <typename ContactIdT = Aws::String>
63 void SetContactId(ContactIdT&& value) {
64 m_contactIdHasBeenSet = true;
65 m_contactId = std::forward<ContactIdT>(value);
66 }
67 template <typename ContactIdT = Aws::String>
69 SetContactId(std::forward<ContactIdT>(value));
70 return *this;
71 }
73
75
82 inline const Aws::String& GetClientToken() const { return m_clientToken; }
83 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
84 template <typename ClientTokenT = Aws::String>
85 void SetClientToken(ClientTokenT&& value) {
86 m_clientTokenHasBeenSet = true;
87 m_clientToken = std::forward<ClientTokenT>(value);
88 }
89 template <typename ClientTokenT = Aws::String>
91 SetClientToken(std::forward<ClientTokenT>(value));
92 return *this;
93 }
95
97
102 inline const ParticipantDetailsToAdd& GetParticipantDetails() const { return m_participantDetails; }
103 inline bool ParticipantDetailsHasBeenSet() const { return m_participantDetailsHasBeenSet; }
104 template <typename ParticipantDetailsT = ParticipantDetailsToAdd>
105 void SetParticipantDetails(ParticipantDetailsT&& value) {
106 m_participantDetailsHasBeenSet = true;
107 m_participantDetails = std::forward<ParticipantDetailsT>(value);
108 }
109 template <typename ParticipantDetailsT = ParticipantDetailsToAdd>
110 CreateParticipantRequest& WithParticipantDetails(ParticipantDetailsT&& value) {
111 SetParticipantDetails(std::forward<ParticipantDetailsT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_instanceId;
117
118 Aws::String m_contactId;
119
121
122 ParticipantDetailsToAdd m_participantDetails;
123 bool m_instanceIdHasBeenSet = false;
124 bool m_contactIdHasBeenSet = false;
125 bool m_clientTokenHasBeenSet = true;
126 bool m_participantDetailsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace Connect
131} // namespace Aws
AWS_CONNECT_API CreateParticipantRequest()=default
AWS_CONNECT_API Aws::String SerializePayload() const override
CreateParticipantRequest & WithClientToken(ClientTokenT &&value)
CreateParticipantRequest & WithContactId(ContactIdT &&value)
virtual const char * GetServiceRequestName() const override
CreateParticipantRequest & WithInstanceId(InstanceIdT &&value)
const ParticipantDetailsToAdd & GetParticipantDetails() const
CreateParticipantRequest & WithParticipantDetails(ParticipantDetailsT &&value)
void SetParticipantDetails(ParticipantDetailsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String