AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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
102 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
103 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
104 void SetAttributes(AttributesT&& value) {
105 m_attributesHasBeenSet = true;
106 m_attributes = std::forward<AttributesT>(value);
107 }
108 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
110 SetAttributes(std::forward<AttributesT>(value));
111 return *this;
112 }
113 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
114 GetTopicAttributesResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
115 m_attributesHasBeenSet = true;
116 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
117 return *this;
118 }
120
122
123 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
124 template <typename ResponseMetadataT = ResponseMetadata>
125 void SetResponseMetadata(ResponseMetadataT&& value) {
126 m_responseMetadataHasBeenSet = true;
127 m_responseMetadata = std::forward<ResponseMetadataT>(value);
128 }
129 template <typename ResponseMetadataT = ResponseMetadata>
130 GetTopicAttributesResult& WithResponseMetadata(ResponseMetadataT&& value) {
131 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
132 return *this;
133 }
135 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
136
137 private:
139
140 ResponseMetadata m_responseMetadata;
141 Aws::Http::HttpResponseCode m_HttpResponseCode;
142 bool m_attributesHasBeenSet = false;
143 bool m_responseMetadataHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace SNS
148} // 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