AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
SendEventRequest.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipantRequest.h>
8#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ConnectParticipant {
16namespace Model {
17
21 public:
22 AWS_CONNECTPARTICIPANT_API SendEventRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "SendEvent"; }
29
30 AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override;
31
32 AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
43 inline const Aws::String& GetContentType() const { return m_contentType; }
44 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
45 template <typename ContentTypeT = Aws::String>
46 void SetContentType(ContentTypeT&& value) {
47 m_contentTypeHasBeenSet = true;
48 m_contentType = std::forward<ContentTypeT>(value);
49 }
50 template <typename ContentTypeT = Aws::String>
51 SendEventRequest& WithContentType(ContentTypeT&& value) {
52 SetContentType(std::forward<ContentTypeT>(value));
53 return *this;
54 }
56
58
64 inline const Aws::String& GetContent() const { return m_content; }
65 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
66 template <typename ContentT = Aws::String>
67 void SetContent(ContentT&& value) {
68 m_contentHasBeenSet = true;
69 m_content = std::forward<ContentT>(value);
70 }
71 template <typename ContentT = Aws::String>
72 SendEventRequest& WithContent(ContentT&& value) {
73 SetContent(std::forward<ContentT>(value));
74 return *this;
75 }
77
79
86 inline const Aws::String& GetClientToken() const { return m_clientToken; }
87 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
88 template <typename ClientTokenT = Aws::String>
89 void SetClientToken(ClientTokenT&& value) {
90 m_clientTokenHasBeenSet = true;
91 m_clientToken = std::forward<ClientTokenT>(value);
92 }
93 template <typename ClientTokenT = Aws::String>
94 SendEventRequest& WithClientToken(ClientTokenT&& value) {
95 SetClientToken(std::forward<ClientTokenT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetConnectionToken() const { return m_connectionToken; }
105 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; }
106 template <typename ConnectionTokenT = Aws::String>
107 void SetConnectionToken(ConnectionTokenT&& value) {
108 m_connectionTokenHasBeenSet = true;
109 m_connectionToken = std::forward<ConnectionTokenT>(value);
110 }
111 template <typename ConnectionTokenT = Aws::String>
112 SendEventRequest& WithConnectionToken(ConnectionTokenT&& value) {
113 SetConnectionToken(std::forward<ConnectionTokenT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_contentType;
119 bool m_contentTypeHasBeenSet = false;
120
121 Aws::String m_content;
122 bool m_contentHasBeenSet = false;
123
125 bool m_clientTokenHasBeenSet = true;
126
127 Aws::String m_connectionToken;
128 bool m_connectionTokenHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace ConnectParticipant
133} // namespace Aws
AWS_CONNECTPARTICIPANT_API SendEventRequest()=default
void SetConnectionToken(ConnectionTokenT &&value)
AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SendEventRequest & WithClientToken(ClientTokenT &&value)
AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override
SendEventRequest & WithContent(ContentT &&value)
virtual const char * GetServiceRequestName() const override
SendEventRequest & WithContentType(ContentTypeT &&value)
SendEventRequest & WithConnectionToken(ConnectionTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String