AWS SDK for C++

AWS SDK for C++ Version 1.11.643

Loading...
Searching...
No Matches
CreateParticipantRequest.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/ParticipantDetailsToAdd.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Connect
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CONNECT_API CreateParticipantRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateParticipant"; }
33
34 AWS_CONNECT_API Aws::String SerializePayload() const override;
35
36
38
43 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
44 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
45 template<typename InstanceIdT = Aws::String>
46 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
47 template<typename InstanceIdT = Aws::String>
48 CreateParticipantRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
50
52
58 inline const Aws::String& GetContactId() const { return m_contactId; }
59 inline bool ContactIdHasBeenSet() const { return m_contactIdHasBeenSet; }
60 template<typename ContactIdT = Aws::String>
61 void SetContactId(ContactIdT&& value) { m_contactIdHasBeenSet = true; m_contactId = std::forward<ContactIdT>(value); }
62 template<typename ContactIdT = Aws::String>
63 CreateParticipantRequest& WithContactId(ContactIdT&& value) { SetContactId(std::forward<ContactIdT>(value)); return *this;}
65
67
74 inline const Aws::String& GetClientToken() const { return m_clientToken; }
75 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
76 template<typename ClientTokenT = Aws::String>
77 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
78 template<typename ClientTokenT = Aws::String>
79 CreateParticipantRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
81
83
88 inline const ParticipantDetailsToAdd& GetParticipantDetails() const { return m_participantDetails; }
89 inline bool ParticipantDetailsHasBeenSet() const { return m_participantDetailsHasBeenSet; }
90 template<typename ParticipantDetailsT = ParticipantDetailsToAdd>
91 void SetParticipantDetails(ParticipantDetailsT&& value) { m_participantDetailsHasBeenSet = true; m_participantDetails = std::forward<ParticipantDetailsT>(value); }
92 template<typename ParticipantDetailsT = ParticipantDetailsToAdd>
93 CreateParticipantRequest& WithParticipantDetails(ParticipantDetailsT&& value) { SetParticipantDetails(std::forward<ParticipantDetailsT>(value)); return *this;}
95 private:
96
97 Aws::String m_instanceId;
98 bool m_instanceIdHasBeenSet = false;
99
100 Aws::String m_contactId;
101 bool m_contactIdHasBeenSet = false;
102
104 bool m_clientTokenHasBeenSet = true;
105
106 ParticipantDetailsToAdd m_participantDetails;
107 bool m_participantDetailsHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Connect
112} // 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