AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
45 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
46 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
47 inline CreateRoomRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
48 inline CreateRoomRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
49 inline CreateRoomRequest& WithName(const char* value) { SetName(value); return *this;}
51
53
57 inline int GetMaximumMessageRatePerSecond() const{ return m_maximumMessageRatePerSecond; }
58 inline bool MaximumMessageRatePerSecondHasBeenSet() const { return m_maximumMessageRatePerSecondHasBeenSet; }
59 inline void SetMaximumMessageRatePerSecond(int value) { m_maximumMessageRatePerSecondHasBeenSet = true; m_maximumMessageRatePerSecond = value; }
62
64
69 inline int GetMaximumMessageLength() const{ return m_maximumMessageLength; }
70 inline bool MaximumMessageLengthHasBeenSet() const { return m_maximumMessageLengthHasBeenSet; }
71 inline void SetMaximumMessageLength(int value) { m_maximumMessageLengthHasBeenSet = true; m_maximumMessageLength = value; }
72 inline CreateRoomRequest& WithMaximumMessageLength(int value) { SetMaximumMessageLength(value); return *this;}
74
76
79 inline const MessageReviewHandler& GetMessageReviewHandler() const{ return m_messageReviewHandler; }
80 inline bool MessageReviewHandlerHasBeenSet() const { return m_messageReviewHandlerHasBeenSet; }
81 inline void SetMessageReviewHandler(const MessageReviewHandler& value) { m_messageReviewHandlerHasBeenSet = true; m_messageReviewHandler = value; }
82 inline void SetMessageReviewHandler(MessageReviewHandler&& value) { m_messageReviewHandlerHasBeenSet = true; m_messageReviewHandler = std::move(value); }
86
88
97 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
98 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
99 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
100 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
101 inline CreateRoomRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
102 inline CreateRoomRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
103 inline CreateRoomRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
104 inline CreateRoomRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
105 inline CreateRoomRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
106 inline CreateRoomRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
107 inline CreateRoomRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
108 inline CreateRoomRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
109 inline CreateRoomRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
111
113
116 inline const Aws::Vector<Aws::String>& GetLoggingConfigurationIdentifiers() const{ return m_loggingConfigurationIdentifiers; }
117 inline bool LoggingConfigurationIdentifiersHasBeenSet() const { return m_loggingConfigurationIdentifiersHasBeenSet; }
118 inline void SetLoggingConfigurationIdentifiers(const Aws::Vector<Aws::String>& value) { m_loggingConfigurationIdentifiersHasBeenSet = true; m_loggingConfigurationIdentifiers = value; }
119 inline void SetLoggingConfigurationIdentifiers(Aws::Vector<Aws::String>&& value) { m_loggingConfigurationIdentifiersHasBeenSet = true; m_loggingConfigurationIdentifiers = std::move(value); }
122 inline CreateRoomRequest& AddLoggingConfigurationIdentifiers(const Aws::String& value) { m_loggingConfigurationIdentifiersHasBeenSet = true; m_loggingConfigurationIdentifiers.push_back(value); return *this; }
123 inline CreateRoomRequest& AddLoggingConfigurationIdentifiers(Aws::String&& value) { m_loggingConfigurationIdentifiersHasBeenSet = true; m_loggingConfigurationIdentifiers.push_back(std::move(value)); return *this; }
124 inline CreateRoomRequest& AddLoggingConfigurationIdentifiers(const char* value) { m_loggingConfigurationIdentifiersHasBeenSet = true; m_loggingConfigurationIdentifiers.push_back(value); return *this; }
126 private:
127
128 Aws::String m_name;
129 bool m_nameHasBeenSet = false;
130
131 int m_maximumMessageRatePerSecond;
132 bool m_maximumMessageRatePerSecondHasBeenSet = false;
133
134 int m_maximumMessageLength;
135 bool m_maximumMessageLengthHasBeenSet = false;
136
137 MessageReviewHandler m_messageReviewHandler;
138 bool m_messageReviewHandlerHasBeenSet = false;
139
141 bool m_tagsHasBeenSet = false;
142
143 Aws::Vector<Aws::String> m_loggingConfigurationIdentifiers;
144 bool m_loggingConfigurationIdentifiersHasBeenSet = false;
145 };
146
147} // namespace Model
148} // namespace ivschat
149} // namespace Aws
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateRoomRequest & AddTags(const char *key, Aws::String &&value)
CreateRoomRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRoomRequest & WithMessageReviewHandler(const MessageReviewHandler &value)
CreateRoomRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetMessageReviewHandler(MessageReviewHandler &&value)
CreateRoomRequest & AddTags(const char *key, const char *value)
CreateRoomRequest & WithMaximumMessageRatePerSecond(int value)
const Aws::Vector< Aws::String > & GetLoggingConfigurationIdentifiers() const
CreateRoomRequest & WithMaximumMessageLength(int value)
void SetLoggingConfigurationIdentifiers(Aws::Vector< Aws::String > &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRoomRequest & WithLoggingConfigurationIdentifiers(Aws::Vector< Aws::String > &&value)
AWS_IVSCHAT_API Aws::String SerializePayload() const override
CreateRoomRequest & WithName(Aws::String &&value)
CreateRoomRequest & WithName(const Aws::String &value)
CreateRoomRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateRoomRequest & WithLoggingConfigurationIdentifiers(const Aws::Vector< Aws::String > &value)
const Aws::String & GetName() const
CreateRoomRequest & AddLoggingConfigurationIdentifiers(const Aws::String &value)
void SetLoggingConfigurationIdentifiers(const Aws::Vector< Aws::String > &value)
CreateRoomRequest & AddTags(const Aws::String &key, Aws::String &&value)
const MessageReviewHandler & GetMessageReviewHandler() const
CreateRoomRequest & WithMessageReviewHandler(MessageReviewHandler &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRoomRequest & AddLoggingConfigurationIdentifiers(Aws::String &&value)
CreateRoomRequest & AddTags(Aws::String &&key, const char *value)
void SetMessageReviewHandler(const MessageReviewHandler &value)
CreateRoomRequest & WithName(const char *value)
void SetName(const Aws::String &value)
CreateRoomRequest & AddLoggingConfigurationIdentifiers(const char *value)
CreateRoomRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateRoomRequest & WithTags(Aws::Map< Aws::String, 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
std::vector< T, Aws::Allocator< T > > Vector