AWS SDK for C++  0.12.9
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 
63  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
64 
81  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributes = value; }
82 
99  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributes = value; }
100 
117  inline GetTopicAttributesResult& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
118 
135  inline GetTopicAttributesResult& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
136 
153  inline GetTopicAttributesResult& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributes[key] = value; return *this; }
154 
171  inline GetTopicAttributesResult& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributes[key] = value; return *this; }
172 
189  inline GetTopicAttributesResult& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributes[key] = value; return *this; }
190 
207  inline GetTopicAttributesResult& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributes[key] = value; return *this; }
208 
225  inline GetTopicAttributesResult& AddAttributes(const char* key, Aws::String&& value) { m_attributes[key] = value; return *this; }
226 
243  inline GetTopicAttributesResult& AddAttributes(Aws::String&& key, const char* value) { m_attributes[key] = value; return *this; }
244 
261  inline GetTopicAttributesResult& AddAttributes(const char* key, const char* value) { m_attributes[key] = value; return *this; }
262 
263 
264  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
265 
266 
267  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
268 
269 
270  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
271 
272 
273  inline GetTopicAttributesResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
274 
275 
276  inline GetTopicAttributesResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
277 
278  private:
280  ResponseMetadata m_responseMetadata;
281  };
282 
283 } // namespace Model
284 } // namespace SNS
285 } // 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:34
JSON (JavaScript Object Notation).
GetTopicAttributesResult & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)