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

Application-defined metadata to attach to the event sent to clients. The * maximum length of the metadata is 1 KB total.

*/ inline const Aws::Map& GetAttributes() const{ return m_attributes; } /** *

Application-defined metadata to attach to the event sent to clients. The * maximum length of the metadata is 1 KB total.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

Application-defined metadata to attach to the event sent to clients. The * maximum length of the metadata is 1 KB total.

*/ inline void SetAttributes(const Aws::Map& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

Application-defined metadata to attach to the event sent to clients. The * maximum length of the metadata is 1 KB total.

*/ inline void SetAttributes(Aws::Map&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

Application-defined metadata to attach to the event sent to clients. The * maximum length of the metadata is 1 KB total.

*/ inline SendEventRequest& WithAttributes(const Aws::Map& value) { SetAttributes(value); return *this;} /** *

Application-defined metadata to attach to the event sent to clients. The * maximum length of the metadata is 1 KB total.

*/ inline SendEventRequest& WithAttributes(Aws::Map&& value) { SetAttributes(std::move(value)); return *this;} /** *

Application-defined metadata to attach to the event sent to clients. The * maximum length of the metadata is 1 KB total.

*/ inline SendEventRequest& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

Application-defined metadata to attach to the event sent to clients. The * maximum length of the metadata is 1 KB total.

*/ inline SendEventRequest& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

Application-defined metadata to attach to the event sent to clients. The * maximum length of the metadata is 1 KB total.

*/ inline SendEventRequest& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

Application-defined metadata to attach to the event sent to clients. The * maximum length of the metadata is 1 KB total.

*/ inline SendEventRequest& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), std::move(value)); return *this; } /** *

Application-defined metadata to attach to the event sent to clients. The * maximum length of the metadata is 1 KB total.

*/ inline SendEventRequest& AddAttributes(const char* key, Aws::String&& value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, std::move(value)); return *this; } /** *

Application-defined metadata to attach to the event sent to clients. The * maximum length of the metadata is 1 KB total.

*/ inline SendEventRequest& AddAttributes(Aws::String&& key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(std::move(key), value); return *this; } /** *

Application-defined metadata to attach to the event sent to clients. The * maximum length of the metadata is 1 KB total.

*/ inline SendEventRequest& AddAttributes(const char* key, const char* value) { m_attributesHasBeenSet = true; m_attributes.emplace(key, value); return *this; } /** *

Application-defined name of the event to send to clients.

*/ inline const Aws::String& GetEventName() const{ return m_eventName; } /** *

Application-defined name of the event to send to clients.

*/ inline bool EventNameHasBeenSet() const { return m_eventNameHasBeenSet; } /** *

Application-defined name of the event to send to clients.

*/ inline void SetEventName(const Aws::String& value) { m_eventNameHasBeenSet = true; m_eventName = value; } /** *

Application-defined name of the event to send to clients.

*/ inline void SetEventName(Aws::String&& value) { m_eventNameHasBeenSet = true; m_eventName = std::move(value); } /** *

Application-defined name of the event to send to clients.

*/ inline void SetEventName(const char* value) { m_eventNameHasBeenSet = true; m_eventName.assign(value); } /** *

Application-defined name of the event to send to clients.

*/ inline SendEventRequest& WithEventName(const Aws::String& value) { SetEventName(value); return *this;} /** *

Application-defined name of the event to send to clients.

*/ inline SendEventRequest& WithEventName(Aws::String&& value) { SetEventName(std::move(value)); return *this;} /** *

Application-defined name of the event to send to clients.

*/ inline SendEventRequest& WithEventName(const char* value) { SetEventName(value); return *this;} /** *

Identifier of the room to which the event will be sent. Currently this must * be an ARN.

*/ inline const Aws::String& GetRoomIdentifier() const{ return m_roomIdentifier; } /** *

Identifier of the room to which the event will be sent. Currently this must * be an ARN.

*/ inline bool RoomIdentifierHasBeenSet() const { return m_roomIdentifierHasBeenSet; } /** *

Identifier of the room to which the event will be sent. Currently this must * be an ARN.

*/ inline void SetRoomIdentifier(const Aws::String& value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier = value; } /** *

Identifier of the room to which the event will be sent. Currently this must * be an ARN.

*/ inline void SetRoomIdentifier(Aws::String&& value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier = std::move(value); } /** *

Identifier of the room to which the event will be sent. Currently this must * be an ARN.

*/ inline void SetRoomIdentifier(const char* value) { m_roomIdentifierHasBeenSet = true; m_roomIdentifier.assign(value); } /** *

Identifier of the room to which the event will be sent. Currently this must * be an ARN.

*/ inline SendEventRequest& WithRoomIdentifier(const Aws::String& value) { SetRoomIdentifier(value); return *this;} /** *

Identifier of the room to which the event will be sent. Currently this must * be an ARN.

*/ inline SendEventRequest& WithRoomIdentifier(Aws::String&& value) { SetRoomIdentifier(std::move(value)); return *this;} /** *

Identifier of the room to which the event will be sent. Currently this must * be an ARN.

*/ inline SendEventRequest& WithRoomIdentifier(const char* value) { SetRoomIdentifier(value); return *this;} private: Aws::Map m_attributes; bool m_attributesHasBeenSet = false; Aws::String m_eventName; bool m_eventNameHasBeenSet = false; Aws::String m_roomIdentifier; bool m_roomIdentifierHasBeenSet = false; }; } // namespace Model } // namespace ivschat } // namespace Aws