This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-sns/include/aws/sns/model/Topic.h

93 lines
2.3 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/sns/SNS_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Xml
{
class XmlNode;
} // namespace Xml
} // namespace Utils
namespace SNS
{
namespace Model
{
/**
* <p>A wrapper type for the topic's Amazon Resource Name (ARN). To retrieve a
* topic's attributes, use <code>GetTopicAttributes</code>.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/Topic">AWS API
* Reference</a></p>
*/
class AWS_SNS_API Topic
{
public:
Topic();
Topic(const Aws::Utils::Xml::XmlNode& xmlNode);
Topic& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
void OutputToStream(Aws::OStream& oStream, const char* location) const;
/**
* <p>The topic's ARN.</p>
*/
inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
/**
* <p>The topic's ARN.</p>
*/
inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
/**
* <p>The topic's ARN.</p>
*/
inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
/**
* <p>The topic's ARN.</p>
*/
inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
/**
* <p>The topic's ARN.</p>
*/
inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
/**
* <p>The topic's ARN.</p>
*/
inline Topic& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
/**
* <p>The topic's ARN.</p>
*/
inline Topic& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
/**
* <p>The topic's ARN.</p>
*/
inline Topic& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
private:
Aws::String m_topicArn;
bool m_topicArnHasBeenSet;
};
} // namespace Model
} // namespace SNS
} // namespace Aws