AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRoomRequest.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/ivschat/model/MessageReviewHandler.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ivschat
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_IVSCHAT_API CreateRoomRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateRoom"; }
34
35 AWS_IVSCHAT_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 CreateRoomRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
55 inline int GetMaximumMessageRatePerSecond() const { return m_maximumMessageRatePerSecond; }
56 inline bool MaximumMessageRatePerSecondHasBeenSet() const { return m_maximumMessageRatePerSecondHasBeenSet; }
57 inline void SetMaximumMessageRatePerSecond(int value) { m_maximumMessageRatePerSecondHasBeenSet = true; m_maximumMessageRatePerSecond = value; }
60
62
67 inline int GetMaximumMessageLength() const { return m_maximumMessageLength; }
68 inline bool MaximumMessageLengthHasBeenSet() const { return m_maximumMessageLengthHasBeenSet; }
69 inline void SetMaximumMessageLength(int value) { m_maximumMessageLengthHasBeenSet = true; m_maximumMessageLength = value; }
70 inline CreateRoomRequest& WithMaximumMessageLength(int value) { SetMaximumMessageLength(value); return *this;}
72
74
77 inline const MessageReviewHandler& GetMessageReviewHandler() const { return m_messageReviewHandler; }
78 inline bool MessageReviewHandlerHasBeenSet() const { return m_messageReviewHandlerHasBeenSet; }
79 template<typename MessageReviewHandlerT = MessageReviewHandler>
80 void SetMessageReviewHandler(MessageReviewHandlerT&& value) { m_messageReviewHandlerHasBeenSet = true; m_messageReviewHandler = std::forward<MessageReviewHandlerT>(value); }
81 template<typename MessageReviewHandlerT = MessageReviewHandler>
82 CreateRoomRequest& WithMessageReviewHandler(MessageReviewHandlerT&& value) { SetMessageReviewHandler(std::forward<MessageReviewHandlerT>(value)); return *this;}
84
86
95 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
99 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 CreateRoomRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
101 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
102 CreateRoomRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
103 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
104 }
106
108
111 inline const Aws::Vector<Aws::String>& GetLoggingConfigurationIdentifiers() const { return m_loggingConfigurationIdentifiers; }
112 inline bool LoggingConfigurationIdentifiersHasBeenSet() const { return m_loggingConfigurationIdentifiersHasBeenSet; }
113 template<typename LoggingConfigurationIdentifiersT = Aws::Vector<Aws::String>>
114 void SetLoggingConfigurationIdentifiers(LoggingConfigurationIdentifiersT&& value) { m_loggingConfigurationIdentifiersHasBeenSet = true; m_loggingConfigurationIdentifiers = std::forward<LoggingConfigurationIdentifiersT>(value); }
115 template<typename LoggingConfigurationIdentifiersT = Aws::Vector<Aws::String>>
116 CreateRoomRequest& WithLoggingConfigurationIdentifiers(LoggingConfigurationIdentifiersT&& value) { SetLoggingConfigurationIdentifiers(std::forward<LoggingConfigurationIdentifiersT>(value)); return *this;}
117 template<typename LoggingConfigurationIdentifiersT = Aws::String>
118 CreateRoomRequest& AddLoggingConfigurationIdentifiers(LoggingConfigurationIdentifiersT&& value) { m_loggingConfigurationIdentifiersHasBeenSet = true; m_loggingConfigurationIdentifiers.emplace_back(std::forward<LoggingConfigurationIdentifiersT>(value)); return *this; }
120 private:
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 int m_maximumMessageRatePerSecond{0};
126 bool m_maximumMessageRatePerSecondHasBeenSet = false;
127
128 int m_maximumMessageLength{0};
129 bool m_maximumMessageLengthHasBeenSet = false;
130
131 MessageReviewHandler m_messageReviewHandler;
132 bool m_messageReviewHandlerHasBeenSet = false;
133
135 bool m_tagsHasBeenSet = false;
136
137 Aws::Vector<Aws::String> m_loggingConfigurationIdentifiers;
138 bool m_loggingConfigurationIdentifiersHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace ivschat
143} // namespace Aws
void SetLoggingConfigurationIdentifiers(LoggingConfigurationIdentifiersT &&value)
CreateRoomRequest & WithMessageReviewHandler(MessageReviewHandlerT &&value)
CreateRoomRequest & WithMaximumMessageRatePerSecond(int value)
const Aws::Vector< Aws::String > & GetLoggingConfigurationIdentifiers() const
CreateRoomRequest & WithMaximumMessageLength(int value)
CreateRoomRequest & WithLoggingConfigurationIdentifiers(LoggingConfigurationIdentifiersT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetMessageReviewHandler(MessageReviewHandlerT &&value)
AWS_IVSCHAT_API Aws::String SerializePayload() const override
AWS_IVSCHAT_API CreateRoomRequest()=default
CreateRoomRequest & AddLoggingConfigurationIdentifiers(LoggingConfigurationIdentifiersT &&value)
const Aws::String & GetName() const
CreateRoomRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const MessageReviewHandler & GetMessageReviewHandler() const
CreateRoomRequest & WithTags(TagsT &&value)
CreateRoomRequest & WithName(NameT &&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
std::vector< T, Aws::Allocator< T > > Vector