AWS SDK for C++  0.14.3
AWS SDK for C++
GetTopicAttributesResult.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/sns/SNS_EXPORTS.h>
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Xml
29 {
30  class XmlDocument;
31 } // namespace Xml
32 } // namespace Utils
33 namespace SNS
34 {
35 namespace Model
36 {
41  {
42  public:
46 
64  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
65 
83  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributes = value; }
84 
102  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributes = value; }
103 
121  inline GetTopicAttributesResult& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
122 
140  inline GetTopicAttributesResult& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
141 
159  inline GetTopicAttributesResult& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributes[key] = value; return *this; }
160 
178  inline GetTopicAttributesResult& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributes[key] = value; return *this; }
179 
197  inline GetTopicAttributesResult& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributes[key] = value; return *this; }
198 
216  inline GetTopicAttributesResult& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributes[key] = value; return *this; }
217 
235  inline GetTopicAttributesResult& AddAttributes(const char* key, Aws::String&& value) { m_attributes[key] = value; return *this; }
236 
254  inline GetTopicAttributesResult& AddAttributes(Aws::String&& key, const char* value) { m_attributes[key] = value; return *this; }
255 
273  inline GetTopicAttributesResult& AddAttributes(const char* key, const char* value) { m_attributes[key] = value; return *this; }
274 
275 
276  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
277 
278 
279  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
280 
281 
282  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
283 
284 
285  inline GetTopicAttributesResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
286 
287 
288  inline GetTopicAttributesResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
289 
290  private:
292  ResponseMetadata m_responseMetadata;
293  };
294 
295 } // namespace Model
296 } // namespace SNS
297 } // namespace Aws
GetTopicAttributesResult & AddAttributes(const char *key, const char *value)
GetTopicAttributesResult & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
GetTopicAttributesResult & WithResponseMetadata(const ResponseMetadata &value)
GetTopicAttributesResult & AddAttributes(const Aws::String &key, const Aws::String &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetResponseMetadata(ResponseMetadata &&value)
GetTopicAttributesResult & AddAttributes(Aws::String &&key, Aws::String &&value)
const ResponseMetadata & GetResponseMetadata() const
void SetResponseMetadata(const ResponseMetadata &value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
GetTopicAttributesResult & AddAttributes(const Aws::String &key, Aws::String &&value)
GetTopicAttributesResult & WithResponseMetadata(ResponseMetadata &&value)
GetTopicAttributesResult & AddAttributes(Aws::String &&key, const char *value)
GetTopicAttributesResult & AddAttributes(const char *key, Aws::String &&value)
GetTopicAttributesResult & AddAttributes(Aws::String &&key, const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:37
JSON (JavaScript Object Notation).
GetTopicAttributesResult & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)