AWS SDK for C++  1.9.160
AWS SDK for C++
PublishResult.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 
45  inline const Aws::String& GetMessageId() const{ return m_messageId; }
46 
51  inline void SetMessageId(const Aws::String& value) { m_messageId = value; }
52 
57  inline void SetMessageId(Aws::String&& value) { m_messageId = std::move(value); }
58 
63  inline void SetMessageId(const char* value) { m_messageId.assign(value); }
64 
69  inline PublishResult& WithMessageId(const Aws::String& value) { SetMessageId(value); return *this;}
70 
75  inline PublishResult& WithMessageId(Aws::String&& value) { SetMessageId(std::move(value)); return *this;}
76 
81  inline PublishResult& WithMessageId(const char* value) { SetMessageId(value); return *this;}
82 
83 
91  inline const Aws::String& GetSequenceNumber() const{ return m_sequenceNumber; }
92 
100  inline void SetSequenceNumber(const Aws::String& value) { m_sequenceNumber = value; }
101 
109  inline void SetSequenceNumber(Aws::String&& value) { m_sequenceNumber = std::move(value); }
110 
118  inline void SetSequenceNumber(const char* value) { m_sequenceNumber.assign(value); }
119 
127  inline PublishResult& WithSequenceNumber(const Aws::String& value) { SetSequenceNumber(value); return *this;}
128 
136  inline PublishResult& WithSequenceNumber(Aws::String&& value) { SetSequenceNumber(std::move(value)); return *this;}
137 
145  inline PublishResult& WithSequenceNumber(const char* value) { SetSequenceNumber(value); return *this;}
146 
147 
148 
149  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
150 
151 
152  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
153 
154 
155  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); }
156 
157 
158  inline PublishResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
159 
160 
161  inline PublishResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;}
162 
163  private:
164 
165  Aws::String m_messageId;
166 
167  Aws::String m_sequenceNumber;
168 
169  ResponseMetadata m_responseMetadata;
170  };
171 
172 } // namespace Model
173 } // namespace SNS
174 } // namespace Aws
Aws::SNS::Model::PublishResult::WithSequenceNumber
PublishResult & WithSequenceNumber(const Aws::String &value)
Definition: PublishResult.h:127
Aws::SNS::Model::PublishResult::WithSequenceNumber
PublishResult & WithSequenceNumber(Aws::String &&value)
Definition: PublishResult.h:136
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::SNS::Model::PublishResult
Definition: PublishResult.h:34
Aws::SNS::Model::PublishResult::GetMessageId
const Aws::String & GetMessageId() const
Definition: PublishResult.h:45
Aws::SNS::Model::PublishResult::operator=
PublishResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SNS::Model::PublishResult::WithMessageId
PublishResult & WithMessageId(Aws::String &&value)
Definition: PublishResult.h:75
Aws::SNS::Model::PublishResult::WithMessageId
PublishResult & WithMessageId(const Aws::String &value)
Definition: PublishResult.h:69
Aws::SNS::Model::PublishResult::PublishResult
PublishResult()
Aws::SNS::Model::PublishResult::GetSequenceNumber
const Aws::String & GetSequenceNumber() const
Definition: PublishResult.h:91
Aws::SNS::Model::PublishResult::SetMessageId
void SetMessageId(const Aws::String &value)
Definition: PublishResult.h:51
Aws::SNS::Model::PublishResult::WithMessageId
PublishResult & WithMessageId(const char *value)
Definition: PublishResult.h:81
Aws::SNS::Model::PublishResult::PublishResult
PublishResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
Aws::SNS::Model::PublishResult::SetMessageId
void SetMessageId(Aws::String &&value)
Definition: PublishResult.h:57
ResponseMetadata.h
Aws::SNS::Model::PublishResult::SetSequenceNumber
void SetSequenceNumber(const char *value)
Definition: PublishResult.h:118
AWSString.h
Aws::SNS::Model::PublishResult::SetSequenceNumber
void SetSequenceNumber(const Aws::String &value)
Definition: PublishResult.h:100
Aws::SNS::Model::PublishResult::SetResponseMetadata
void SetResponseMetadata(ResponseMetadata &&value)
Definition: PublishResult.h:155
Aws::CostExplorer::Model::SubscriberType::NOT_SET
@ NOT_SET
Aws::SNS::Model::PublishResult::SetSequenceNumber
void SetSequenceNumber(Aws::String &&value)
Definition: PublishResult.h:109
AWS_SNS_API
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:28
Aws::SNS::Model::PublishResult::WithResponseMetadata
PublishResult & WithResponseMetadata(const ResponseMetadata &value)
Definition: PublishResult.h:158
SNS_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::SNS::Model::PublishResult::SetMessageId
void SetMessageId(const char *value)
Definition: PublishResult.h:63
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SNS::Model::PublishResult::WithResponseMetadata
PublishResult & WithResponseMetadata(ResponseMetadata &&value)
Definition: PublishResult.h:161
Aws::SNS::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::SNS::Model::PublishResult::WithSequenceNumber
PublishResult & WithSequenceNumber(const char *value)
Definition: PublishResult.h:145
Aws::SNS::Model::PublishResult::SetResponseMetadata
void SetResponseMetadata(const ResponseMetadata &value)
Definition: PublishResult.h:152
Aws::SNS::Model::PublishResult::GetResponseMetadata
const ResponseMetadata & GetResponseMetadata() const
Definition: PublishResult.h:149