AWS SDK for C++

AWS SDK for C++ Version 1.11.906

Loading...
Searching...
No Matches
GetTopicAttributesResult.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 GetTopicAttributesResult() = default;
36
38
108 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
109 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
110 void SetAttributes(AttributesT&& value) {
111 m_attributesHasBeenSet = true;
112 m_attributes = std::forward<AttributesT>(value);
113 }
114 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
116 SetAttributes(std::forward<AttributesT>(value));
117 return *this;
118 }
119 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
120 GetTopicAttributesResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
121 m_attributesHasBeenSet = true;
122 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
123 return *this;
124 }
126
128
129 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
130 template <typename ResponseMetadataT = ResponseMetadata>
131 void SetResponseMetadata(ResponseMetadataT&& value) {
132 m_responseMetadataHasBeenSet = true;
133 m_responseMetadata = std::forward<ResponseMetadataT>(value);
134 }
135 template <typename ResponseMetadataT = ResponseMetadata>
136 GetTopicAttributesResult& WithResponseMetadata(ResponseMetadataT&& value) {
137 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
138 return *this;
139 }
141 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
142
143 private:
145
146 ResponseMetadata m_responseMetadata;
147 Aws::Http::HttpResponseCode m_HttpResponseCode;
148 bool m_attributesHasBeenSet = false;
149 bool m_responseMetadataHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace SNS
154} // namespace Aws
GetTopicAttributesResult & WithResponseMetadata(ResponseMetadataT &&value)
GetTopicAttributesResult & WithAttributes(AttributesT &&value)
AWS_SNS_API GetTopicAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AWS_SNS_API GetTopicAttributesResult()=default
const ResponseMetadata & GetResponseMetadata() const
AWS_SNS_API GetTopicAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
GetTopicAttributesResult & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Xml::XmlDocument XmlDocument