AWS SDK for C++  1.9.104
AWS SDK for C++
Topic.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/sns/SNS_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace SNS
22 {
23 namespace Model
24 {
25 
34  {
35  public:
36  Topic();
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::String& GetTopicArn() const{ return m_topicArn; }
48 
52  inline bool TopicArnHasBeenSet() const { return m_topicArnHasBeenSet; }
53 
57  inline void SetTopicArn(const Aws::String& value) { m_topicArnHasBeenSet = true; m_topicArn = value; }
58 
62  inline void SetTopicArn(Aws::String&& value) { m_topicArnHasBeenSet = true; m_topicArn = std::move(value); }
63 
67  inline void SetTopicArn(const char* value) { m_topicArnHasBeenSet = true; m_topicArn.assign(value); }
68 
72  inline Topic& WithTopicArn(const Aws::String& value) { SetTopicArn(value); return *this;}
73 
77  inline Topic& WithTopicArn(Aws::String&& value) { SetTopicArn(std::move(value)); return *this;}
78 
82  inline Topic& WithTopicArn(const char* value) { SetTopicArn(value); return *this;}
83 
84  private:
85 
86  Aws::String m_topicArn;
87  bool m_topicArnHasBeenSet;
88  };
89 
90 } // namespace Model
91 } // namespace SNS
92 } // namespace Aws
Aws::SNS::Model::Topic::SetTopicArn
void SetTopicArn(const Aws::String &value)
Definition: Topic.h:57
Aws::SNS::Model::Topic::Topic
Topic()
Aws::SNS::Model::Topic::SetTopicArn
void SetTopicArn(Aws::String &&value)
Definition: Topic.h:62
Aws::SNS::Model::Topic::operator=
Topic & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SNS::Model::Topic::TopicArnHasBeenSet
bool TopicArnHasBeenSet() const
Definition: Topic.h:52
AWSStreamFwd.h
Aws::SNS::Model::Topic::WithTopicArn
Topic & WithTopicArn(Aws::String &&value)
Definition: Topic.h:77
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::SNS::Model::Topic::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::SNS::Model::Topic::SetTopicArn
void SetTopicArn(const char *value)
Definition: Topic.h:67
Aws::SNS::Model::Topic::WithTopicArn
Topic & WithTopicArn(const char *value)
Definition: Topic.h:82
AWSString.h
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
Aws::SNS::Model::Topic::WithTopicArn
Topic & WithTopicArn(const Aws::String &value)
Definition: Topic.h:72
SNS_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::Topic::GetTopicArn
const Aws::String & GetTopicArn() const
Definition: Topic.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::Topic
Definition: Topic.h:34
index
int index
Definition: cJSON.h:181
Aws::SNS::Model::Topic::Topic
Topic(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::SNS::Model::Topic::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const