AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetTopicAttributesResult.h
1
6#pragma once
7#include <aws/sns/SNS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/sns/model/ResponseMetadata.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Xml
21{
22 class XmlDocument;
23} // namespace Xml
24} // namespace Utils
25namespace SNS
26{
27namespace Model
28{
35 {
36 public:
37 AWS_SNS_API GetTopicAttributesResult() = default;
40
41
43
107 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
108 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
109 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
110 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
111 GetTopicAttributesResult& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
112 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
113 GetTopicAttributesResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
114 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
115 }
117
119
120 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
121 template<typename ResponseMetadataT = ResponseMetadata>
122 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
123 template<typename ResponseMetadataT = ResponseMetadata>
124 GetTopicAttributesResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
126 private:
127
129 bool m_attributesHasBeenSet = false;
130
131 ResponseMetadata m_responseMetadata;
132 bool m_responseMetadataHasBeenSet = false;
133 };
134
135} // namespace Model
136} // namespace SNS
137} // 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