AWS SDK for C++  0.14.3
AWS SDK for C++
GetEndpointAttributesResult.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 
59  inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const{ return m_attributes; }
60 
73  inline void SetAttributes(const Aws::Map<Aws::String, Aws::String>& value) { m_attributes = value; }
74 
87  inline void SetAttributes(Aws::Map<Aws::String, Aws::String>&& value) { m_attributes = value; }
88 
101  inline GetEndpointAttributesResult& WithAttributes(const Aws::Map<Aws::String, Aws::String>& value) { SetAttributes(value); return *this;}
102 
115  inline GetEndpointAttributesResult& WithAttributes(Aws::Map<Aws::String, Aws::String>&& value) { SetAttributes(value); return *this;}
116 
129  inline GetEndpointAttributesResult& AddAttributes(const Aws::String& key, const Aws::String& value) { m_attributes[key] = value; return *this; }
130 
143  inline GetEndpointAttributesResult& AddAttributes(Aws::String&& key, const Aws::String& value) { m_attributes[key] = value; return *this; }
144 
157  inline GetEndpointAttributesResult& AddAttributes(const Aws::String& key, Aws::String&& value) { m_attributes[key] = value; return *this; }
158 
171  inline GetEndpointAttributesResult& AddAttributes(Aws::String&& key, Aws::String&& value) { m_attributes[key] = value; return *this; }
172 
185  inline GetEndpointAttributesResult& AddAttributes(const char* key, Aws::String&& value) { m_attributes[key] = value; return *this; }
186 
199  inline GetEndpointAttributesResult& AddAttributes(Aws::String&& key, const char* value) { m_attributes[key] = value; return *this; }
200 
213  inline GetEndpointAttributesResult& AddAttributes(const char* key, const char* value) { m_attributes[key] = value; return *this; }
214 
215 
216  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
217 
218 
219  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
220 
221 
222  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
223 
224 
225  inline GetEndpointAttributesResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
226 
227 
228  inline GetEndpointAttributesResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
229 
230  private:
232  ResponseMetadata m_responseMetadata;
233  };
234 
235 } // namespace Model
236 } // namespace SNS
237 } // namespace Aws
GetEndpointAttributesResult & WithResponseMetadata(const ResponseMetadata &value)
GetEndpointAttributesResult & AddAttributes(Aws::String &&key, Aws::String &&value)
GetEndpointAttributesResult & AddAttributes(Aws::String &&key, const char *value)
GetEndpointAttributesResult & WithResponseMetadata(ResponseMetadata &&value)
GetEndpointAttributesResult & AddAttributes(Aws::String &&key, const Aws::String &value)
GetEndpointAttributesResult & WithAttributes(const Aws::Map< Aws::String, Aws::String > &value)
void SetResponseMetadata(const ResponseMetadata &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:28
GetEndpointAttributesResult & AddAttributes(const Aws::String &key, Aws::String &&value)
void SetAttributes(const Aws::Map< Aws::String, Aws::String > &value)
GetEndpointAttributesResult & AddAttributes(const char *key, const char *value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
GetEndpointAttributesResult & AddAttributes(const Aws::String &key, const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
GetEndpointAttributesResult & AddAttributes(const char *key, Aws::String &&value)
#define AWS_SNS_API
Definition: SNS_EXPORTS.h:37
GetEndpointAttributesResult & WithAttributes(Aws::Map< Aws::String, Aws::String > &&value)
void SetAttributes(Aws::Map< Aws::String, Aws::String > &&value)
JSON (JavaScript Object Notation).