AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetEntitlementDecisionResult.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/EntitlementDecision.h>
9#include <aws/appmonetization/model/EntitlementMetricStatus.h>
10#include <aws/appmonetization/model/EntitlementReason.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace AppMonetization {
27namespace Model {
34 public:
35 AWS_APPMONETIZATION_API GetEntitlementDecisionResult() = default;
38
40
43 inline EntitlementDecision GetDecision() const { return m_decision; }
44 inline void SetDecision(EntitlementDecision value) {
45 m_decisionHasBeenSet = true;
46 m_decision = value;
47 }
49 SetDecision(value);
50 return *this;
51 }
53
55
58 inline const EntitlementReason& GetReason() const { return m_reason; }
59 template <typename ReasonT = EntitlementReason>
60 void SetReason(ReasonT&& value) {
61 m_reasonHasBeenSet = true;
62 m_reason = std::forward<ReasonT>(value);
63 }
64 template <typename ReasonT = EntitlementReason>
66 SetReason(std::forward<ReasonT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetPlanId() const { return m_planId; }
77 template <typename PlanIdT = Aws::String>
78 void SetPlanId(PlanIdT&& value) {
79 m_planIdHasBeenSet = true;
80 m_planId = std::forward<PlanIdT>(value);
81 }
82 template <typename PlanIdT = Aws::String>
84 SetPlanId(std::forward<PlanIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Vector<EntitlementMetricStatus>& GetMetrics() const { return m_metrics; }
94 template <typename MetricsT = Aws::Vector<EntitlementMetricStatus>>
95 void SetMetrics(MetricsT&& value) {
96 m_metricsHasBeenSet = true;
97 m_metrics = std::forward<MetricsT>(value);
98 }
99 template <typename MetricsT = Aws::Vector<EntitlementMetricStatus>>
101 SetMetrics(std::forward<MetricsT>(value));
102 return *this;
103 }
104 template <typename MetricsT = EntitlementMetricStatus>
106 m_metricsHasBeenSet = true;
107 m_metrics.emplace_back(std::forward<MetricsT>(value));
108 return *this;
109 }
111
113
114 inline const Aws::String& GetRequestId() const { return m_requestId; }
115 template <typename RequestIdT = Aws::String>
116 void SetRequestId(RequestIdT&& value) {
117 m_requestIdHasBeenSet = true;
118 m_requestId = std::forward<RequestIdT>(value);
119 }
120 template <typename RequestIdT = Aws::String>
122 SetRequestId(std::forward<RequestIdT>(value));
123 return *this;
124 }
126 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
127
128 private:
130
131 EntitlementReason m_reason;
132
133 Aws::String m_planId;
134
136
137 Aws::String m_requestId;
138 Aws::Http::HttpResponseCode m_HttpResponseCode;
139 bool m_decisionHasBeenSet = false;
140 bool m_reasonHasBeenSet = false;
141 bool m_planIdHasBeenSet = false;
142 bool m_metricsHasBeenSet = false;
143 bool m_requestIdHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace AppMonetization
148} // namespace Aws
AWS_APPMONETIZATION_API GetEntitlementDecisionResult()=default
AWS_APPMONETIZATION_API GetEntitlementDecisionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEntitlementDecisionResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< EntitlementMetricStatus > & GetMetrics() const
GetEntitlementDecisionResult & WithDecision(EntitlementDecision value)
GetEntitlementDecisionResult & WithMetrics(MetricsT &&value)
GetEntitlementDecisionResult & WithPlanId(PlanIdT &&value)
GetEntitlementDecisionResult & WithReason(ReasonT &&value)
AWS_APPMONETIZATION_API GetEntitlementDecisionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetEntitlementDecisionResult & AddMetrics(MetricsT &&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