AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
51 inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
52 inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
53 inline Topic& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
54 inline Topic& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
55 inline Topic& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
57 private:
58
59 Aws::String m_topicArn;
60 bool m_topicArnHasBeenSet = false;
61 };
62
63} // namespace Model
64} // namespace SNS
65} // namespace Aws
void SetTopicArn(Aws::String &&value)
Definition Topic.h:51
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
Topic & WithTopicArn(Aws::String &&value)
Definition Topic.h:54
void SetTopicArn(const char *value)
Definition Topic.h:52
AWS_SNS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Topic & WithTopicArn(const char *value)
Definition Topic.h:55
AWS_SNS_API Topic(const Aws::Utils::Xml::XmlNode &xmlNode)
Topic & WithTopicArn(const Aws::String &value)
Definition Topic.h:53
AWS_SNS_API Topic & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetTopicArn(const Aws::String &value)
Definition Topic.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream