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/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();
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 inline void SetRoomIdentifier(const Aws::String& value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier = value; }
44 inline void SetRoomIdentifier(Aws::String&& value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier = std::move(value); }
45 inline void SetRoomIdentifier(const char* value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier.assign(value); }
46 inline SendEventRequest& WithRoomIdentifier(const Aws::String& value) { SetRoomIdentifier(value); return *this;}
47 inline SendEventRequest& WithRoomIdentifier(Aws::String&& value) { SetRoomIdentifier(std::move(value)); return *this;}
48 inline SendEventRequest& WithRoomIdentifier(const char* value) { SetRoomIdentifier(value); return *this;}
50
52
55 inline const Aws::String& GetEventName() const{ return m_eventName; }
56 inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; }
57 inline void SetEventName(const Aws::String& value) { m_eventNameHasBeenSet = true; m_eventName = value; }
58 inline void SetEventName(Aws::String&& value) { m_eventNameHasBeenSet = true; m_eventName = std::move(value); }
59 inline void SetEventName(const char* value) { m_eventNameHasBeenSet = true; m_eventName.assign(value); }
60 inline SendEventRequest& WithEventName(const Aws::String& value) { SetEventName(value); return *this;}
61 inline SendEventRequest& WithEventName(Aws::String&& value) { SetEventName(std::move(value)); return *this;}
62 inline SendEventRequest& WithEventName(const char* value) { SetEventName(value); return *this;}
64
66
70 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
71 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
72 inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
73 inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
75 inline SendEventRequest& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(std::move(value)); return *this;}
76 inline SendEventRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
77 inline SendEventRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
78 inline SendEventRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
79 inline SendEventRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; }
80 inline SendEventRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; }
81 inline SendEventRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; }
82 inline SendEventRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; }
84 private:
85
86 Aws::String m_roomIdentifier;
87 bool m_roomIdentifierHasBeenSet = false;
88
89 Aws::String m_eventName;
90 bool m_eventNameHasBeenSet = false;
91
93 bool m_attributesHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace ivschat
98} // namespace Aws
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
SendEventRequest & AddAttributes(Aws::String &&key, const Aws::String &value)
const Aws::String & GetEventName() const
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
SendEventRequest & WithRoomIdentifier(const char *value)
SendEventRequest & AddAttributes(const Aws::String &key, Aws::String &&value)
SendEventRequest & AddAttributes(const char *key, const char *value)
SendEventRequest & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetRoomIdentifier(const Aws::String &value)
SendEventRequest & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::String & GetRoomIdentifier() const
AWS_IVSCHAT_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
SendEventRequest & AddAttributes(Aws::String &&key, Aws::String &&value)
SendEventRequest & AddAttributes(Aws::String &&key, const char *value)
SendEventRequest & AddAttributes(const char *key, Aws::String &&value)
void SetRoomIdentifier(Aws::String &&value)
SendEventRequest & AddAttributes(const Aws::String &key, const Aws::String &value)
virtual const char * GetServiceRequestName() const override
SendEventRequest & WithEventName(const char *value)
SendEventRequest & WithEventName(Aws::String &&value)
SendEventRequest & WithRoomIdentifier(Aws::String &&value)
void SetEventName(const Aws::String &value)
void SetRoomIdentifier(const char *value)
SendEventRequest & WithRoomIdentifier(const Aws::String &value)
void SetEventName(Aws::String &&value)
SendEventRequest & WithEventName(const Aws::String &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