AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
GetTopicAttributesResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sns/SNS_EXPORTS.h>
10#include <aws/sns/model/ResponseMetadata.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace SNS {
24namespace Model {
31 public:
32 AWS_SNS_API GetTopicAttributesResult() = default;
35
37
101 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
102 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
103 void SetAttributes(AttributesT&& value) {
104 m_attributesHasBeenSet = true;
105 m_attributes = std::forward<AttributesT>(value);
106 }
107 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
109 SetAttributes(std::forward<AttributesT>(value));
110 return *this;
111 }
112 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
113 GetTopicAttributesResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
114 m_attributesHasBeenSet = true;
115 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
116 return *this;
117 }
119
121
122 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
123 template <typename ResponseMetadataT = ResponseMetadata>
124 void SetResponseMetadata(ResponseMetadataT&& value) {
125 m_responseMetadataHasBeenSet = true;
126 m_responseMetadata = std::forward<ResponseMetadataT>(value);
127 }
128 template <typename ResponseMetadataT = ResponseMetadata>
129 GetTopicAttributesResult& WithResponseMetadata(ResponseMetadataT&& value) {
130 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
131 return *this;
132 }
134 private:
136
137 ResponseMetadata m_responseMetadata;
138 bool m_attributesHasBeenSet = false;
139 bool m_responseMetadataHasBeenSet = false;
140};
141
142} // namespace Model
143} // namespace SNS
144} // 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)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Xml::XmlDocument XmlDocument