/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ivschat { namespace Model { /** */ class UpdateRoomRequest : public IvschatRequest { public: AWS_IVSCHAT_API UpdateRoomRequest(); // 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 "UpdateRoom"; } AWS_IVSCHAT_API Aws::String SerializePayload() const override; /** *

Identifier of the room to be updated. Currently this must be an ARN.

*/ inline const Aws::String& GetIdentifier() const{ return m_identifier; } /** *

Identifier of the room to be updated. Currently this must be an ARN.

*/ inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; } /** *

Identifier of the room to be updated. Currently this must be an ARN.

*/ inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; } /** *

Identifier of the room to be updated. Currently this must be an ARN.

*/ inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); } /** *

Identifier of the room to be updated. Currently this must be an ARN.

*/ inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); } /** *

Identifier of the room to be updated. Currently this must be an ARN.

*/ inline UpdateRoomRequest& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;} /** *

Identifier of the room to be updated. Currently this must be an ARN.

*/ inline UpdateRoomRequest& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;} /** *

Identifier of the room to be updated. Currently this must be an ARN.

*/ inline UpdateRoomRequest& WithIdentifier(const char* value) { SetIdentifier(value); return *this;} /** *

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 UpdateRoomRequest& WithLoggingConfigurationIdentifiers(const Aws::Vector& value) { SetLoggingConfigurationIdentifiers(value); return *this;} /** *

Array of logging-configuration identifiers attached to the room.

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

Array of logging-configuration identifiers attached to the room.

*/ inline UpdateRoomRequest& 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 UpdateRoomRequest& 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 UpdateRoomRequest& AddLoggingConfigurationIdentifiers(const char* value) { m_loggingConfigurationIdentifiersHasBeenSet = true; m_loggingConfigurationIdentifiers.push_back(value); return *this; } /** *

The 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; } /** *

The 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; } /** *

The 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; } /** *

The 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 UpdateRoomRequest& 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 UpdateRoomRequest& WithMaximumMessageRatePerSecond(int value) { SetMaximumMessageRatePerSecond(value); return *this;} /** *

Configuration information for optional review of messages. Specify an empty * uri string to disassociate a message review handler from the * specified room.

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

Configuration information for optional review of messages. Specify an empty * uri string to disassociate a message review handler from the * specified room.

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

Configuration information for optional review of messages. Specify an empty * uri string to disassociate a message review handler from the * specified room.

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

Configuration information for optional review of messages. Specify an empty * uri string to disassociate a message review handler from the * specified room.

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

Configuration information for optional review of messages. Specify an empty * uri string to disassociate a message review handler from the * specified room.

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

Configuration information for optional review of messages. Specify an empty * uri string to disassociate a message review handler from the * specified room.

*/ inline UpdateRoomRequest& 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 UpdateRoomRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

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

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

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

*/ inline UpdateRoomRequest& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_identifier; bool m_identifierHasBeenSet = false; 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; }; } // namespace Model } // namespace ivschat } // namespace Aws