AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
UpdateMetricResult.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/Metric.h>
9#include <aws/core/http/HttpResponse.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 AppMonetization {
24namespace Model {
31 public:
32 AWS_APPMONETIZATION_API UpdateMetricResult() = default;
35
37
40 inline const Metric& GetMetric() const { return m_metric; }
41 template <typename MetricT = Metric>
42 void SetMetric(MetricT&& value) {
43 m_metricHasBeenSet = true;
44 m_metric = std::forward<MetricT>(value);
45 }
46 template <typename MetricT = Metric>
47 UpdateMetricResult& WithMetric(MetricT&& value) {
48 SetMetric(std::forward<MetricT>(value));
49 return *this;
50 }
52
54
55 inline const Aws::String& GetRequestId() const { return m_requestId; }
56 template <typename RequestIdT = Aws::String>
57 void SetRequestId(RequestIdT&& value) {
58 m_requestIdHasBeenSet = true;
59 m_requestId = std::forward<RequestIdT>(value);
60 }
61 template <typename RequestIdT = Aws::String>
62 UpdateMetricResult& WithRequestId(RequestIdT&& value) {
63 SetRequestId(std::forward<RequestIdT>(value));
64 return *this;
65 }
67 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
68
69 private:
70 Metric m_metric;
71
72 Aws::String m_requestId;
73 Aws::Http::HttpResponseCode m_HttpResponseCode;
74 bool m_metricHasBeenSet = false;
75 bool m_requestIdHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace AppMonetization
80} // namespace Aws
AWS_APPMONETIZATION_API UpdateMetricResult()=default
AWS_APPMONETIZATION_API UpdateMetricResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateMetricResult & WithMetric(MetricT &&value)
UpdateMetricResult & WithRequestId(RequestIdT &&value)
AWS_APPMONETIZATION_API UpdateMetricResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue