AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetEndpointAttributesResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sns/SNS_EXPORTS.h>
11#include <aws/sns/model/ResponseMetadata.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Xml {
21class XmlDocument;
22} // namespace Xml
23} // namespace Utils
24namespace SNS {
25namespace Model {
33 public:
34 AWS_SNS_API GetEndpointAttributesResult() = default;
37
39
53 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
54 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
55 void SetAttributes(AttributesT&& value) {
56 m_attributesHasBeenSet = true;
57 m_attributes = std::forward<AttributesT>(value);
58 }
59 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
61 SetAttributes(std::forward<AttributesT>(value));
62 return *this;
63 }
64 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
65 GetEndpointAttributesResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
66 m_attributesHasBeenSet = true;
67 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
68 return *this;
69 }
71
73
74 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
75 template <typename ResponseMetadataT = ResponseMetadata>
76 void SetResponseMetadata(ResponseMetadataT&& value) {
77 m_responseMetadataHasBeenSet = true;
78 m_responseMetadata = std::forward<ResponseMetadataT>(value);
79 }
80 template <typename ResponseMetadataT = ResponseMetadata>
82 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
83 return *this;
84 }
86 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
87
88 private:
90
91 ResponseMetadata m_responseMetadata;
92 Aws::Http::HttpResponseCode m_HttpResponseCode;
93 bool m_attributesHasBeenSet = false;
94 bool m_responseMetadataHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace SNS
99} // namespace Aws
AWS_SNS_API GetEndpointAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
GetEndpointAttributesResult & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
GetEndpointAttributesResult & WithResponseMetadata(ResponseMetadataT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SNS_API GetEndpointAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_SNS_API GetEndpointAttributesResult()=default
GetEndpointAttributesResult & WithAttributes(AttributesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Xml::XmlDocument XmlDocument