AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetContactAttributesResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Connect {
24namespace Model {
26 public:
27 AWS_CONNECT_API GetContactAttributesResult() = default;
30
32
35 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
36 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
37 void SetAttributes(AttributesT&& value) {
38 m_attributesHasBeenSet = true;
39 m_attributes = std::forward<AttributesT>(value);
40 }
41 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
43 SetAttributes(std::forward<AttributesT>(value));
44 return *this;
45 }
46 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
47 GetContactAttributesResult& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
48 m_attributesHasBeenSet = true;
49 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
50 return *this;
51 }
53
55
56 inline const Aws::String& GetRequestId() const { return m_requestId; }
57 template <typename RequestIdT = Aws::String>
58 void SetRequestId(RequestIdT&& value) {
59 m_requestIdHasBeenSet = true;
60 m_requestId = std::forward<RequestIdT>(value);
61 }
62 template <typename RequestIdT = Aws::String>
64 SetRequestId(std::forward<RequestIdT>(value));
65 return *this;
66 }
68 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
69
70 private:
72
73 Aws::String m_requestId;
74 Aws::Http::HttpResponseCode m_HttpResponseCode;
75 bool m_attributesHasBeenSet = false;
76 bool m_requestIdHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Connect
81} // namespace Aws
GetContactAttributesResult & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
GetContactAttributesResult & WithAttributes(AttributesT &&value)
AWS_CONNECT_API GetContactAttributesResult()=default
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_CONNECT_API GetContactAttributesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CONNECT_API GetContactAttributesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetContactAttributesResult & WithRequestId(RequestIdT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue