AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
GetEndpointAttributesResult.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 {
32 public:
33 AWS_SNS_API GetEndpointAttributesResult() = default;
36
38
52 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
53 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
54 void SetAttributes(AttributesT&& value) {
55 m_attributesHasBeenSet = true;
56 m_attributes = std::forward<AttributesT>(value);
57 }
58 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
60 SetAttributes(std::forward<AttributesT>(value));
61 return *this;
62 }
63 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
64 GetEndpointAttributesResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
65 m_attributesHasBeenSet = true;
66 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
67 return *this;
68 }
70
72
73 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
74 template <typename ResponseMetadataT = ResponseMetadata>
75 void SetResponseMetadata(ResponseMetadataT&& value) {
76 m_responseMetadataHasBeenSet = true;
77 m_responseMetadata = std::forward<ResponseMetadataT>(value);
78 }
79 template <typename ResponseMetadataT = ResponseMetadata>
81 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
82 return *this;
83 }
85 private:
87
88 ResponseMetadata m_responseMetadata;
89 bool m_attributesHasBeenSet = false;
90 bool m_responseMetadataHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace SNS
95} // namespace Aws
AWS_SNS_API GetEndpointAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
GetEndpointAttributesResult & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
GetEndpointAttributesResult & WithResponseMetadata(ResponseMetadataT &&value)
AWS_SNS_API GetEndpointAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_SNS_API GetEndpointAttributesResult()=default
GetEndpointAttributesResult & WithAttributes(AttributesT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Aws::Utils::Xml::XmlDocument XmlDocument