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/ivschat/Ivschat_EXPORTS.h>
8#include <aws/ivschat/IvschatRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ivschat
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_IVSCHAT_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_IVSCHAT_API Aws::String SerializePayload() const override;
34
35
37
41 inline const Aws::String& GetRoomIdentifier() const { return m_roomIdentifier; }
42 inline bool RoomIdentifierHasBeenSet() const { return m_roomIdentifierHasBeenSet; }
43 template<typename RoomIdentifierT = Aws::String>
44 void SetRoomIdentifier(RoomIdentifierT&& value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier = std::forward<RoomIdentifierT>(value); }
45 template<typename RoomIdentifierT = Aws::String>
46 SendEventRequest& WithRoomIdentifier(RoomIdentifierT&& value) { SetRoomIdentifier(std::forward<RoomIdentifierT>(value)); return *this;}
48
50
53 inline const Aws::String& GetEventName() const { return m_eventName; }
54 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
55 template<typename EventNameT = Aws::String>
56 void SetEventName(EventNameT&& value) { m_eventNameHasBeenSet = true; m_eventName = std::forward<EventNameT>(value); }
57 template<typename EventNameT = Aws::String>
58 SendEventRequest& WithEventName(EventNameT&& value) { SetEventName(std::forward<EventNameT>(value)); return *this;}
60
62
66 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
67 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
68 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
69 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
70 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
71 SendEventRequest& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
72 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
73 SendEventRequest& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
74 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
75 }
77 private:
78
79 Aws::String m_roomIdentifier;
80 bool m_roomIdentifierHasBeenSet = false;
81
82 Aws::String m_eventName;
83 bool m_eventNameHasBeenSet = false;
84
86 bool m_attributesHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace ivschat
91} // 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