AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SendEventRequest.h
1
6#pragma once
7#include <aws/connectparticipant/ConnectParticipant_EXPORTS.h>
8#include <aws/connectparticipant/ConnectParticipantRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace ConnectParticipant
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONNECTPARTICIPANT_API SendEventRequest() = default;
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 "SendEvent"; }
32
33 AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override;
34
35 AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
47 inline const Aws::String& GetContentType() const { return m_contentType; }
48 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
49 template<typename ContentTypeT = Aws::String>
50 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
51 template<typename ContentTypeT = Aws::String>
52 SendEventRequest& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
54
56
62 inline const Aws::String& GetContent() const { return m_content; }
63 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
64 template<typename ContentT = Aws::String>
65 void SetContent(ContentT&& value) { m_contentHasBeenSet = true; m_content = std::forward<ContentT>(value); }
66 template<typename ContentT = Aws::String>
67 SendEventRequest& WithContent(ContentT&& value) { SetContent(std::forward<ContentT>(value)); return *this;}
69
71
78 inline const Aws::String& GetClientToken() const { return m_clientToken; }
79 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
80 template<typename ClientTokenT = Aws::String>
81 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
82 template<typename ClientTokenT = Aws::String>
83 SendEventRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
85
87
90 inline const Aws::String& GetConnectionToken() const { return m_connectionToken; }
91 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; }
92 template<typename ConnectionTokenT = Aws::String>
93 void SetConnectionToken(ConnectionTokenT&& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = std::forward<ConnectionTokenT>(value); }
94 template<typename ConnectionTokenT = Aws::String>
95 SendEventRequest& WithConnectionToken(ConnectionTokenT&& value) { SetConnectionToken(std::forward<ConnectionTokenT>(value)); return *this;}
97 private:
98
99 Aws::String m_contentType;
100 bool m_contentTypeHasBeenSet = false;
101
102 Aws::String m_content;
103 bool m_contentHasBeenSet = false;
104
106 bool m_clientTokenHasBeenSet = true;
107
108 Aws::String m_connectionToken;
109 bool m_connectionTokenHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace ConnectParticipant
114} // 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