AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetSubscriptionAttributesResult.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 {
32 public:
33 AWS_SNS_API GetSubscriptionAttributesResult() = default;
36
38
80 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
81 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
82 void SetAttributes(AttributesT&& value) {
83 m_attributesHasBeenSet = true;
84 m_attributes = std::forward<AttributesT>(value);
85 }
86 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
88 SetAttributes(std::forward<AttributesT>(value));
89 return *this;
90 }
91 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
92 GetSubscriptionAttributesResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
93 m_attributesHasBeenSet = true;
94 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
95 return *this;
96 }
98
100
101 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
102 template <typename ResponseMetadataT = ResponseMetadata>
103 void SetResponseMetadata(ResponseMetadataT&& value) {
104 m_responseMetadataHasBeenSet = true;
105 m_responseMetadata = std::forward<ResponseMetadataT>(value);
106 }
107 template <typename ResponseMetadataT = ResponseMetadata>
109 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
110 return *this;
111 }
113 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
114
115 private:
117
118 ResponseMetadata m_responseMetadata;
119 Aws::Http::HttpResponseCode m_HttpResponseCode;
120 bool m_attributesHasBeenSet = false;
121 bool m_responseMetadataHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace SNS
126} // namespace Aws
GetSubscriptionAttributesResult & WithAttributes(AttributesT &&value)
AWS_SNS_API GetSubscriptionAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_SNS_API GetSubscriptionAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
GetSubscriptionAttributesResult & WithResponseMetadata(ResponseMetadataT &&value)
GetSubscriptionAttributesResult & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Xml::XmlDocument XmlDocument