AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SendMessageRequest.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 SendMessageRequest();
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 "SendMessage"; }
32
33 AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override;
34
35 AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
44 inline const Aws::String& GetContentType() const{ return m_contentType; }
45 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
46 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
47 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
48 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
49 inline SendMessageRequest& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
50 inline SendMessageRequest& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
51 inline SendMessageRequest& WithContentType(const char* value) { SetContentType(value); return *this;}
53
55
63 inline const Aws::String& GetContent() const{ return m_content; }
64 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
65 inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; }
66 inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); }
67 inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); }
68 inline SendMessageRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;}
69 inline SendMessageRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;}
70 inline SendMessageRequest& WithContent(const char* value) { SetContent(value); return *this;}
72
74
81 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
82 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
83 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
84 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
85 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
86 inline SendMessageRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
87 inline SendMessageRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
88 inline SendMessageRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
90
92
95 inline const Aws::String& GetConnectionToken() const{ return m_connectionToken; }
96 inline bool ConnectionTokenHasBeenSet() const { return m_connectionTokenHasBeenSet; }
97 inline void SetConnectionToken(const Aws::String& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = value; }
98 inline void SetConnectionToken(Aws::String&& value) { m_connectionTokenHasBeenSet = true; m_connectionToken = std::move(value); }
99 inline void SetConnectionToken(const char* value) { m_connectionTokenHasBeenSet = true; m_connectionToken.assign(value); }
100 inline SendMessageRequest& WithConnectionToken(const Aws::String& value) { SetConnectionToken(value); return *this;}
101 inline SendMessageRequest& WithConnectionToken(Aws::String&& value) { SetConnectionToken(std::move(value)); return *this;}
102 inline SendMessageRequest& WithConnectionToken(const char* value) { SetConnectionToken(value); return *this;}
104 private:
105
106 Aws::String m_contentType;
107 bool m_contentTypeHasBeenSet = false;
108
109 Aws::String m_content;
110 bool m_contentHasBeenSet = false;
111
112 Aws::String m_clientToken;
113 bool m_clientTokenHasBeenSet = false;
114
115 Aws::String m_connectionToken;
116 bool m_connectionTokenHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ConnectParticipant
121} // namespace Aws
virtual const char * GetServiceRequestName() const override
SendMessageRequest & WithContentType(Aws::String &&value)
SendMessageRequest & WithContentType(const char *value)
SendMessageRequest & WithConnectionToken(const char *value)
SendMessageRequest & WithContent(const char *value)
SendMessageRequest & WithConnectionToken(const Aws::String &value)
SendMessageRequest & WithClientToken(Aws::String &&value)
AWS_CONNECTPARTICIPANT_API SendMessageRequest()
SendMessageRequest & WithClientToken(const char *value)
SendMessageRequest & WithConnectionToken(Aws::String &&value)
SendMessageRequest & WithClientToken(const Aws::String &value)
SendMessageRequest & WithContent(Aws::String &&value)
SendMessageRequest & WithContentType(const Aws::String &value)
SendMessageRequest & WithContent(const Aws::String &value)
AWS_CONNECTPARTICIPANT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CONNECTPARTICIPANT_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String