AWS SDK for C++

AWS SDK for C++ Version 1.11.695

Loading...
Searching...
No Matches
SendEventRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivschat/IvschatRequest.h>
10#include <aws/ivschat/Ivschat_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ivschat {
16namespace Model {
17
21 public:
22 AWS_IVSCHAT_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_IVSCHAT_API Aws::String SerializePayload() const override;
31
33
37 inline const Aws::String& GetRoomIdentifier() const { return m_roomIdentifier; }
38 inline bool RoomIdentifierHasBeenSet() const { return m_roomIdentifierHasBeenSet; }
39 template <typename RoomIdentifierT = Aws::String>
40 void SetRoomIdentifier(RoomIdentifierT&& value) {
41 m_roomIdentifierHasBeenSet = true;
42 m_roomIdentifier = std::forward<RoomIdentifierT>(value);
43 }
44 template <typename RoomIdentifierT = Aws::String>
45 SendEventRequest& WithRoomIdentifier(RoomIdentifierT&& value) {
46 SetRoomIdentifier(std::forward<RoomIdentifierT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetEventName() const { return m_eventName; }
56 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
57 template <typename EventNameT = Aws::String>
58 void SetEventName(EventNameT&& value) {
59 m_eventNameHasBeenSet = true;
60 m_eventName = std::forward<EventNameT>(value);
61 }
62 template <typename EventNameT = Aws::String>
63 SendEventRequest& WithEventName(EventNameT&& value) {
64 SetEventName(std::forward<EventNameT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
75 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
76 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
77 void SetAttributes(AttributesT&& value) {
78 m_attributesHasBeenSet = true;
79 m_attributes = std::forward<AttributesT>(value);
80 }
81 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
82 SendEventRequest& WithAttributes(AttributesT&& value) {
83 SetAttributes(std::forward<AttributesT>(value));
84 return *this;
85 }
86 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
87 SendEventRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
88 m_attributesHasBeenSet = true;
89 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_roomIdentifier;
95 bool m_roomIdentifierHasBeenSet = false;
96
97 Aws::String m_eventName;
98 bool m_eventNameHasBeenSet = false;
99
101 bool m_attributesHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace ivschat
106} // namespace Aws
AWS_IVSCHAT_API SendEventRequest()=default
const Aws::String & GetEventName() const
SendEventRequest & WithAttributes(AttributesT &&value)
const Aws::String & GetRoomIdentifier() const
AWS_IVSCHAT_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
SendEventRequest & WithRoomIdentifier(RoomIdentifierT &&value)
SendEventRequest & WithEventName(EventNameT &&value)
virtual const char * GetServiceRequestName() const override
void SetEventName(EventNameT &&value)
SendEventRequest & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
void SetRoomIdentifier(RoomIdentifierT &&value)
void SetAttributes(AttributesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String