AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetContactMetricsResult.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/ContactMetricResult.h>
9#include <aws/core/http/HttpResponse.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Connect {
25namespace Model {
27 public:
28 AWS_CONNECT_API GetContactMetricsResult() = default;
31
33
40 inline const Aws::Vector<ContactMetricResult>& GetMetricResults() const { return m_metricResults; }
41 template <typename MetricResultsT = Aws::Vector<ContactMetricResult>>
42 void SetMetricResults(MetricResultsT&& value) {
43 m_metricResultsHasBeenSet = true;
44 m_metricResults = std::forward<MetricResultsT>(value);
45 }
46 template <typename MetricResultsT = Aws::Vector<ContactMetricResult>>
47 GetContactMetricsResult& WithMetricResults(MetricResultsT&& value) {
48 SetMetricResults(std::forward<MetricResultsT>(value));
49 return *this;
50 }
51 template <typename MetricResultsT = ContactMetricResult>
52 GetContactMetricsResult& AddMetricResults(MetricResultsT&& value) {
53 m_metricResultsHasBeenSet = true;
54 m_metricResults.emplace_back(std::forward<MetricResultsT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetId() const { return m_id; }
65 template <typename IdT = Aws::String>
66 void SetId(IdT&& value) {
67 m_idHasBeenSet = true;
68 m_id = std::forward<IdT>(value);
69 }
70 template <typename IdT = Aws::String>
72 SetId(std::forward<IdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetArn() const { return m_arn; }
82 template <typename ArnT = Aws::String>
83 void SetArn(ArnT&& value) {
84 m_arnHasBeenSet = true;
85 m_arn = std::forward<ArnT>(value);
86 }
87 template <typename ArnT = Aws::String>
89 SetArn(std::forward<ArnT>(value));
90 return *this;
91 }
93
95
96 inline const Aws::String& GetRequestId() const { return m_requestId; }
97 template <typename RequestIdT = Aws::String>
98 void SetRequestId(RequestIdT&& value) {
99 m_requestIdHasBeenSet = true;
100 m_requestId = std::forward<RequestIdT>(value);
101 }
102 template <typename RequestIdT = Aws::String>
104 SetRequestId(std::forward<RequestIdT>(value));
105 return *this;
106 }
108 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
109
110 private:
111 Aws::Vector<ContactMetricResult> m_metricResults;
112
113 Aws::String m_id;
114
115 Aws::String m_arn;
116
117 Aws::String m_requestId;
118 Aws::Http::HttpResponseCode m_HttpResponseCode;
119 bool m_metricResultsHasBeenSet = false;
120 bool m_idHasBeenSet = false;
121 bool m_arnHasBeenSet = false;
122 bool m_requestIdHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Connect
127} // namespace Aws
GetContactMetricsResult & WithId(IdT &&value)
AWS_CONNECT_API GetContactMetricsResult()=default
AWS_CONNECT_API GetContactMetricsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetContactMetricsResult & WithRequestId(RequestIdT &&value)
AWS_CONNECT_API GetContactMetricsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ContactMetricResult > & GetMetricResults() const
GetContactMetricsResult & WithMetricResults(MetricResultsT &&value)
GetContactMetricsResult & WithArn(ArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetContactMetricsResult & AddMetricResults(MetricResultsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue