/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include The input for the Publish operation.See Also:
AWS
* API Reference
The name of the MQTT topic.
*/ inline const Aws::String& GetTopic() const{ return m_topic; } /** *The name of the MQTT topic.
*/ inline bool TopicHasBeenSet() const { return m_topicHasBeenSet; } /** *The name of the MQTT topic.
*/ inline void SetTopic(const Aws::String& value) { m_topicHasBeenSet = true; m_topic = value; } /** *The name of the MQTT topic.
*/ inline void SetTopic(Aws::String&& value) { m_topicHasBeenSet = true; m_topic = std::move(value); } /** *The name of the MQTT topic.
*/ inline void SetTopic(const char* value) { m_topicHasBeenSet = true; m_topic.assign(value); } /** *The name of the MQTT topic.
*/ inline PublishRequest& WithTopic(const Aws::String& value) { SetTopic(value); return *this;} /** *The name of the MQTT topic.
*/ inline PublishRequest& WithTopic(Aws::String&& value) { SetTopic(std::move(value)); return *this;} /** *The name of the MQTT topic.
*/ inline PublishRequest& WithTopic(const char* value) { SetTopic(value); return *this;} /** *The Quality of Service (QoS) level.
*/ inline int GetQos() const{ return m_qos; } /** *The Quality of Service (QoS) level.
*/ inline bool QosHasBeenSet() const { return m_qosHasBeenSet; } /** *The Quality of Service (QoS) level.
*/ inline void SetQos(int value) { m_qosHasBeenSet = true; m_qos = value; } /** *The Quality of Service (QoS) level.
*/ inline PublishRequest& WithQos(int value) { SetQos(value); return *this;} private: Aws::String m_topic; bool m_topicHasBeenSet; int m_qos; bool m_qosHasBeenSet; }; } // namespace Model } // namespace IoTDataPlane } // namespace Aws