AWS SDK for C++  1.9.104
AWS SDK for C++
SubscribeResult.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 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Xml
20 {
21  class XmlDocument;
22 } // namespace Xml
23 } // namespace Utils
24 namespace SNS
25 {
26 namespace Model
27 {
34  {
35  public:
39 
40 
47  inline const Aws::String& GetSubscriptionArn() const{ return m_subscriptionArn; }
48 
55  inline void SetSubscriptionArn(const Aws::String& value) { m_subscriptionArn = value; }
56 
63  inline void SetSubscriptionArn(Aws::String&& value) { m_subscriptionArn = std::move(value); }
64 
71  inline void SetSubscriptionArn(const char* value) { m_subscriptionArn.assign(value); }
72 
79  inline SubscribeResult& WithSubscriptionArn(const Aws::String& value) { SetSubscriptionArn(value); return *this;}
80 
87  inline SubscribeResult& WithSubscriptionArn(Aws::String&& value) { SetSubscriptionArn(std::move(value)); return *this;}
88 
95  inline SubscribeResult& WithSubscriptionArn(const char* value) { SetSubscriptionArn(value); return *this;}
96 
97 
98 
99  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
100 
101 
102  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
103 
104 
105  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
106 
107 
108  inline SubscribeResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
109 
110 
111  inline SubscribeResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::String m_subscriptionArn;
116 
117  ResponseMetadata m_responseMetadata;
118  };
119 
120 } // namespace Model
121 } // namespace SNS
122 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SNS::Model::SubscribeResult::SetSubscriptionArn
void SetSubscriptionArn(Aws::String &&value)
Definition: SubscribeResult.h:63
Aws::SNS::Model::SubscribeResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: SubscribeResult.h:105
Aws::SNS::Model::SubscribeResult
Definition: SubscribeResult.h:34
Aws::SNS::Model::SubscribeResult::WithSubscriptionArn
SubscribeResult & WithSubscriptionArn(const Aws::String &value)
Definition: SubscribeResult.h:79
ResponseMetadata.h
AWSString.h
Aws::SNS::Model::SubscribeResult::SubscribeResult
SubscribeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SNS::Model::SubscribeResult::WithResponseMetadata
SubscribeResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: SubscribeResult.h:111
Aws::SNS::Model::SubscribeResult::operator=
SubscribeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
SNS_EXPORTS.h
Aws::SNS::Model::SubscribeResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: SubscribeResult.h:102
Aws::SNS::Model::SubscribeResult::WithSubscriptionArn
SubscribeResult & WithSubscriptionArn(const char *value)
Definition: SubscribeResult.h:95
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::SubscribeResult::WithSubscriptionArn
SubscribeResult & WithSubscriptionArn(Aws::String &&value)
Definition: SubscribeResult.h:87
Aws::SNS::Model::SubscribeResult::SubscribeResult
SubscribeResult()
Aws::SNS::Model::SubscribeResult::GetSubscriptionArn
const Aws::String & GetSubscriptionArn() const
Definition: SubscribeResult.h:47
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::SubscribeResult::SetSubscriptionArn
void SetSubscriptionArn(const Aws::String &value)
Definition: SubscribeResult.h:55
Aws::SNS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::SNS::Model::SubscribeResult::SetSubscriptionArn
void SetSubscriptionArn(const char *value)
Definition: SubscribeResult.h:71
Aws::SNS::Model::SubscribeResult::WithResponseMetadata
SubscribeResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: SubscribeResult.h:108
Aws::SNS::Model::SubscribeResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: SubscribeResult.h:99