/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace ivschat { namespace Model { /** */ class CreateRoomRequest : public IvschatRequest { public: AWS_IVSCHAT_API CreateRoomRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateRoom"; } AWS_IVSCHAT_API Aws::String SerializePayload() const override; /** *

Array of logging-configuration identifiers attached to the room.

*/ inline const Aws::Vector& GetLoggingConfigurationIdentifiers() const{ return m_loggingConfigurationIdentifiers; } /** *

Array of logging-configuration identifiers attached to the room.

*/ inline bool LoggingConfigurationIdentifiersHasBeenSet() const { return m_loggingConfigurationIdentifiersHasBeenSet; } /** *

Array of logging-configuration identifiers attached to the room.

*/ inline void SetLoggingConfigurationIdentifiers(const Aws::Vector& value) { m_loggingConfigurationIdentifiersHasBeenSet = true; m_loggingConfigurationIdentifiers = value; } /** *

Array of logging-configuration identifiers attached to the room.

*/ inline void SetLoggingConfigurationIdentifiers(Aws::Vector&& value) { m_loggingConfigurationIdentifiersHasBeenSet = true; m_loggingConfigurationIdentifiers = std::move(value); } /** *

Array of logging-configuration identifiers attached to the room.

*/ inline CreateRoomRequest& WithLoggingConfigurationIdentifiers(const Aws::Vector& value) { SetLoggingConfigurationIdentifiers(value); return *this;} /** *

Array of logging-configuration identifiers attached to the room.

*/ inline CreateRoomRequest& WithLoggingConfigurationIdentifiers(Aws::Vector&& value) { SetLoggingConfigurationIdentifiers(std::move(value)); return *this;} /** *

Array of logging-configuration identifiers attached to the room.

*/ inline CreateRoomRequest& AddLoggingConfigurationIdentifiers(const Aws::String& value) { m_loggingConfigurationIdentifiersHasBeenSet = true; m_loggingConfigurationIdentifiers.push_back(value); return *this; } /** *

Array of logging-configuration identifiers attached to the room.

*/ inline CreateRoomRequest& AddLoggingConfigurationIdentifiers(Aws::String&& value) { m_loggingConfigurationIdentifiersHasBeenSet = true; m_loggingConfigurationIdentifiers.push_back(std::move(value)); return *this; } /** *

Array of logging-configuration identifiers attached to the room.

*/ inline CreateRoomRequest& AddLoggingConfigurationIdentifiers(const char* value) { m_loggingConfigurationIdentifiersHasBeenSet = true; m_loggingConfigurationIdentifiers.push_back(value); return *this; } /** *

Maximum number of characters in a single message. Messages are expected to be * UTF-8 encoded and this limit applies specifically to rune/code-point count, not * number of bytes. Default: 500.

*/ inline int GetMaximumMessageLength() const{ return m_maximumMessageLength; } /** *

Maximum number of characters in a single message. Messages are expected to be * UTF-8 encoded and this limit applies specifically to rune/code-point count, not * number of bytes. Default: 500.

*/ inline bool MaximumMessageLengthHasBeenSet() const { return m_maximumMessageLengthHasBeenSet; } /** *

Maximum number of characters in a single message. Messages are expected to be * UTF-8 encoded and this limit applies specifically to rune/code-point count, not * number of bytes. Default: 500.

*/ inline void SetMaximumMessageLength(int value) { m_maximumMessageLengthHasBeenSet = true; m_maximumMessageLength = value; } /** *

Maximum number of characters in a single message. Messages are expected to be * UTF-8 encoded and this limit applies specifically to rune/code-point count, not * number of bytes. Default: 500.

*/ inline CreateRoomRequest& WithMaximumMessageLength(int value) { SetMaximumMessageLength(value); return *this;} /** *

Maximum number of messages per second that can be sent to the room (by all * clients). Default: 10.

*/ inline int GetMaximumMessageRatePerSecond() const{ return m_maximumMessageRatePerSecond; } /** *

Maximum number of messages per second that can be sent to the room (by all * clients). Default: 10.

*/ inline bool MaximumMessageRatePerSecondHasBeenSet() const { return m_maximumMessageRatePerSecondHasBeenSet; } /** *

Maximum number of messages per second that can be sent to the room (by all * clients). Default: 10.

*/ inline void SetMaximumMessageRatePerSecond(int value) { m_maximumMessageRatePerSecondHasBeenSet = true; m_maximumMessageRatePerSecond = value; } /** *

Maximum number of messages per second that can be sent to the room (by all * clients). Default: 10.

*/ inline CreateRoomRequest& WithMaximumMessageRatePerSecond(int value) { SetMaximumMessageRatePerSecond(value); return *this;} /** *

Configuration information for optional review of messages.

*/ inline const MessageReviewHandler& GetMessageReviewHandler() const{ return m_messageReviewHandler; } /** *

Configuration information for optional review of messages.

*/ inline bool MessageReviewHandlerHasBeenSet() const { return m_messageReviewHandlerHasBeenSet; } /** *

Configuration information for optional review of messages.

*/ inline void SetMessageReviewHandler(const MessageReviewHandler& value) { m_messageReviewHandlerHasBeenSet = true; m_messageReviewHandler = value; } /** *

Configuration information for optional review of messages.

*/ inline void SetMessageReviewHandler(MessageReviewHandler&& value) { m_messageReviewHandlerHasBeenSet = true; m_messageReviewHandler = std::move(value); } /** *

Configuration information for optional review of messages.

*/ inline CreateRoomRequest& WithMessageReviewHandler(const MessageReviewHandler& value) { SetMessageReviewHandler(value); return *this;} /** *

Configuration information for optional review of messages.

*/ inline CreateRoomRequest& WithMessageReviewHandler(MessageReviewHandler&& value) { SetMessageReviewHandler(std::move(value)); return *this;} /** *

Room name. The value does not need to be unique.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

Room name. The value does not need to be unique.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

Room name. The value does not need to be unique.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

Room name. The value does not need to be unique.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

Room name. The value does not need to be unique.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

Room name. The value does not need to be unique.

*/ inline CreateRoomRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

Room name. The value does not need to be unique.

*/ inline CreateRoomRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

Room name. The value does not need to be unique.

*/ inline CreateRoomRequest& WithName(const char* value) { SetName(value); return *this;} /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond * what is documented there.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond * what is documented there.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond * what is documented there.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond * what is documented there.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond * what is documented there.

*/ inline CreateRoomRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond * what is documented there.

*/ inline CreateRoomRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond * what is documented there.

*/ inline CreateRoomRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond * what is documented there.

*/ inline CreateRoomRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond * what is documented there.

*/ inline CreateRoomRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond * what is documented there.

*/ inline CreateRoomRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond * what is documented there.

*/ inline CreateRoomRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond * what is documented there.

*/ inline CreateRoomRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags to attach to the resource. Array of maps, each of the form * string:string (key:value). See Tagging * AWS Resources for details, including restrictions that apply to tags and * "Tag naming limits and requirements"; Amazon IVS Chat has no constraints beyond * what is documented there.

*/ inline CreateRoomRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::Vector m_loggingConfigurationIdentifiers; bool m_loggingConfigurationIdentifiersHasBeenSet = false; int m_maximumMessageLength; bool m_maximumMessageLengthHasBeenSet = false; int m_maximumMessageRatePerSecond; bool m_maximumMessageRatePerSecondHasBeenSet = false; MessageReviewHandler m_messageReviewHandler; bool m_messageReviewHandlerHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ivschat } // namespace Aws