AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
50 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
51 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
52 inline SendEventRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
53 inline SendEventRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
54 inline SendEventRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
56
58
64 inline const Aws::String& GetContent() const{ return m_content; }
65 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
66 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
67 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
68 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
69 inline SendEventRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
70 inline SendEventRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
71 inline SendEventRequest& WithContent(const char* value) { SetContent(value); return *this;}
73
75
82 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
83 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
84 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
85 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
86 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
87 inline SendEventRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
88 inline SendEventRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
89 inline SendEventRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
91
93
96 inline const Aws::String& GetConnectionToken() const{ return m_connectionToken; }
97 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; }
98 inline void SetConnectionToken(const Aws::String& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = value; }
99 inline void SetConnectionToken(Aws::String&& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = std::move(value); }
100 inline void SetConnectionToken(const char* value) { m_connectionTokenHasBeenSet = true; m_connectionToken.assign(value); }
101 inline SendEventRequest& WithConnectionToken(const Aws::String& value) { SetConnectionToken(value); return *this;}
102 inline SendEventRequest& WithConnectionToken(Aws::String&& value) { SetConnectionToken(std::move(value)); return *this;}
103 inline SendEventRequest& WithConnectionToken(const char* value) { SetConnectionToken(value); return *this;}
105 private:
106
107 Aws::String m_contentType;
108 bool m_contentTypeHasBeenSet = false;
109
110 Aws::String m_content;
111 bool m_contentHasBeenSet = false;
112
113 Aws::String m_clientToken;
114 bool m_clientTokenHasBeenSet = false;
115
116 Aws::String m_connectionToken;
117 bool m_connectionTokenHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace ConnectParticipant
122} // namespace Aws
AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SendEventRequest & WithContentType(Aws::String &&value)
SendEventRequest & WithContent(const char *value)
SendEventRequest & WithConnectionToken(const Aws::String &value)
SendEventRequest & WithConnectionToken(const char *value)
SendEventRequest & WithClientToken(const char *value)
AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override
void SetConnectionToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
SendEventRequest & WithClientToken(const Aws::String &value)
SendEventRequest & WithClientToken(Aws::String &&value)
SendEventRequest & WithContentType(const Aws::String &value)
AWS_CONNECTPARTICIPANT_API SendEventRequest()
SendEventRequest & WithContentType(const char *value)
SendEventRequest & WithContent(Aws::String &&value)
SendEventRequest & WithContent(const Aws::String &value)
SendEventRequest & WithConnectionToken(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String