AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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