AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
GetSubscriptionAttributesResult.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 GetSubscriptionAttributesResult() = default;
35
37
79 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
80 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
81 void SetAttributes(AttributesT&& value) {
82 m_attributesHasBeenSet = true;
83 m_attributes = std::forward<AttributesT>(value);
84 }
85 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
87 SetAttributes(std::forward<AttributesT>(value));
88 return *this;
89 }
90 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
91 GetSubscriptionAttributesResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
92 m_attributesHasBeenSet = true;
93 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
94 return *this;
95 }
97
99
100 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
101 template <typename ResponseMetadataT = ResponseMetadata>
102 void SetResponseMetadata(ResponseMetadataT&& value) {
103 m_responseMetadataHasBeenSet = true;
104 m_responseMetadata = std::forward<ResponseMetadataT>(value);
105 }
106 template <typename ResponseMetadataT = ResponseMetadata>
108 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
109 return *this;
110 }
112 private:
114
115 ResponseMetadata m_responseMetadata;
116 bool m_attributesHasBeenSet = false;
117 bool m_responseMetadataHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace SNS
122} // 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