/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace SNS { namespace Model { /** *

A wrapper type for the topic's Amazon Resource Name (ARN). To retrieve a * topic's attributes, use GetTopicAttributes.

See * Also:

AWS API * Reference

*/ class Topic { public: AWS_SNS_API Topic(); AWS_SNS_API Topic(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SNS_API Topic& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The topic's ARN.

*/ inline const Aws::String& GetTopicArn() const{ return m_topicArn; } /** *

The topic's ARN.

*/ inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; } /** *

The topic's ARN.

*/ inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; } /** *

The topic's ARN.

*/ inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); } /** *

The topic's ARN.

*/ inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); } /** *

The topic's ARN.

*/ inline Topic& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;} /** *

The topic's ARN.

*/ inline Topic& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;} /** *

The topic's ARN.

*/ inline Topic& WithTopicArn(const char* value) { SetTopicArn(value); return *this;} private: Aws::String m_topicArn; bool m_topicArnHasBeenSet = false; }; } // namespace Model } // namespace SNS } // namespace Aws