AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Topic.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace SNS
22{
23namespace Model
24{
25
33 class Topic
34 {
35 public:
36 AWS_SNS_API Topic() = default;
37 AWS_SNS_API Topic(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_SNS_API Topic& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_SNS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_SNS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetTopicArn() const { return m_topicArn; }
49 inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
50 template<typename TopicArnT = Aws::String>
51 void SetTopicArn(TopicArnT&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::forward<TopicArnT>(value); }
52 template<typename TopicArnT = Aws::String>
53 Topic& WithTopicArn(TopicArnT&& value) { SetTopicArn(std::forward<TopicArnT>(value)); return *this;}
55 private:
56
57 Aws::String m_topicArn;
58 bool m_topicArnHasBeenSet = false;
59 };
60
61} // namespace Model
62} // namespace SNS
63} // namespace Aws
void SetTopicArn(TopicArnT &&value)
Definition Topic.h:51
Topic & WithTopicArn(TopicArnT &&value)
Definition Topic.h:53
AWS_SNS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetTopicArn() const
Definition Topic.h:48
bool TopicArnHasBeenSet() const
Definition Topic.h:49
AWS_SNS_API Topic()=default
AWS_SNS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_SNS_API Topic(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_SNS_API Topic & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream