AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetEndpointAttributesResult.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{
36 {
37 public:
38 AWS_SNS_API GetEndpointAttributesResult() = default;
41
42
44
58 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
59 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
60 void SetAttributes(AttributesT&& value) { m_attributesHasBeenSet = true; m_attributes = std::forward<AttributesT>(value); }
61 template<typename AttributesT = Aws::Map<Aws::String, Aws::String>>
62 GetEndpointAttributesResult& WithAttributes(AttributesT&& value) { SetAttributes(std::forward<AttributesT>(value)); return *this;}
63 template<typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
64 GetEndpointAttributesResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
65 m_attributesHasBeenSet = true; m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value)); return *this;
66 }
68
70
71 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
72 template<typename ResponseMetadataT = ResponseMetadata>
73 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
74 template<typename ResponseMetadataT = ResponseMetadata>
75 GetEndpointAttributesResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
77 private:
78
80 bool m_attributesHasBeenSet = false;
81
82 ResponseMetadata m_responseMetadata;
83 bool m_responseMetadataHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace SNS
88} // 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