AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetPlanRecommendationRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/AlternativeInputs.h>
10#include <aws/appmonetization/model/BillableAction.h>
11#include <aws/appmonetization/model/CostInputs.h>
12#include <aws/appmonetization/model/CustomerSegment.h>
13#include <aws/appmonetization/model/FeatureScores.h>
14#include <aws/appmonetization/model/MarketInputs.h>
15#include <aws/appmonetization/model/PlanOptions.h>
16#include <aws/appmonetization/model/PlanRecommendationAppType.h>
17#include <aws/appmonetization/model/RequestContext.h>
18#include <aws/appmonetization/model/ValueKind.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
20#include <aws/core/utils/memory/stl/AWSVector.h>
21
22#include <utility>
23
24namespace Aws {
25namespace AppMonetization {
26namespace Model {
27
47 public:
48 AWS_APPMONETIZATION_API GetPlanRecommendationRequest() = default;
49
50 // Service request name is the Operation name which will send this request out,
51 // each operation should has unique request name, so that we can get operation's name from this request.
52 // Note: this is not true for response, multiple operations may have the same response name,
53 // so we can not get operation's name from response.
54 inline virtual const char* GetServiceRequestName() const override { return "GetPlanRecommendation"; }
55
56 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
57
59
63 inline const Aws::String& GetAppName() const { return m_appName; }
64 inline bool AppNameHasBeenSet() const { return m_appNameHasBeenSet; }
65 template <typename AppNameT = Aws::String>
66 void SetAppName(AppNameT&& value) {
67 m_appNameHasBeenSet = true;
68 m_appName = std::forward<AppNameT>(value);
69 }
70 template <typename AppNameT = Aws::String>
72 SetAppName(std::forward<AppNameT>(value));
73 return *this;
74 }
76
78
81 inline CustomerSegment GetSegment() const { return m_segment; }
82 inline bool SegmentHasBeenSet() const { return m_segmentHasBeenSet; }
83 inline void SetSegment(CustomerSegment value) {
84 m_segmentHasBeenSet = true;
85 m_segment = value;
86 }
88 SetSegment(value);
89 return *this;
90 }
92
94
98 inline PlanRecommendationAppType GetAppType() const { return m_appType; }
99 inline bool AppTypeHasBeenSet() const { return m_appTypeHasBeenSet; }
101 m_appTypeHasBeenSet = true;
102 m_appType = value;
103 }
105 SetAppType(value);
106 return *this;
107 }
109
111
127 inline ValueKind GetValueKind() const { return m_valueKind; }
128 inline bool ValueKindHasBeenSet() const { return m_valueKindHasBeenSet; }
129 inline void SetValueKind(ValueKind value) {
130 m_valueKindHasBeenSet = true;
131 m_valueKind = value;
132 }
134 SetValueKind(value);
135 return *this;
136 }
138
140
150 inline const Aws::Vector<BillableAction>& GetActions() const { return m_actions; }
151 inline bool ActionsHasBeenSet() const { return m_actionsHasBeenSet; }
152 template <typename ActionsT = Aws::Vector<BillableAction>>
153 void SetActions(ActionsT&& value) {
154 m_actionsHasBeenSet = true;
155 m_actions = std::forward<ActionsT>(value);
156 }
157 template <typename ActionsT = Aws::Vector<BillableAction>>
159 SetActions(std::forward<ActionsT>(value));
160 return *this;
161 }
162 template <typename ActionsT = BillableAction>
164 m_actionsHasBeenSet = true;
165 m_actions.emplace_back(std::forward<ActionsT>(value));
166 return *this;
167 }
169
171
179 inline double GetHourlyRate() const { return m_hourlyRate; }
180 inline bool HourlyRateHasBeenSet() const { return m_hourlyRateHasBeenSet; }
181 inline void SetHourlyRate(double value) {
182 m_hourlyRateHasBeenSet = true;
183 m_hourlyRate = value;
184 }
186 SetHourlyRate(value);
187 return *this;
188 }
190
192
213 inline double GetValueShare() const { return m_valueShare; }
214 inline bool ValueShareHasBeenSet() const { return m_valueShareHasBeenSet; }
215 inline void SetValueShare(double value) {
216 m_valueShareHasBeenSet = true;
217 m_valueShare = value;
218 }
220 SetValueShare(value);
221 return *this;
222 }
224
226
237 inline const FeatureScores& GetFeatures() const { return m_features; }
238 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
239 template <typename FeaturesT = FeatureScores>
240 void SetFeatures(FeaturesT&& value) {
241 m_featuresHasBeenSet = true;
242 m_features = std::forward<FeaturesT>(value);
243 }
244 template <typename FeaturesT = FeatureScores>
246 SetFeatures(std::forward<FeaturesT>(value));
247 return *this;
248 }
250
252
259 inline const CostInputs& GetCosts() const { return m_costs; }
260 inline bool CostsHasBeenSet() const { return m_costsHasBeenSet; }
261 template <typename CostsT = CostInputs>
262 void SetCosts(CostsT&& value) {
263 m_costsHasBeenSet = true;
264 m_costs = std::forward<CostsT>(value);
265 }
266 template <typename CostsT = CostInputs>
268 SetCosts(std::forward<CostsT>(value));
269 return *this;
270 }
272
274
279 inline const AlternativeInputs& GetAlternatives() const { return m_alternatives; }
280 inline bool AlternativesHasBeenSet() const { return m_alternativesHasBeenSet; }
281 template <typename AlternativesT = AlternativeInputs>
282 void SetAlternatives(AlternativesT&& value) {
283 m_alternativesHasBeenSet = true;
284 m_alternatives = std::forward<AlternativesT>(value);
285 }
286 template <typename AlternativesT = AlternativeInputs>
288 SetAlternatives(std::forward<AlternativesT>(value));
289 return *this;
290 }
292
294
299 inline const MarketInputs& GetMarket() const { return m_market; }
300 inline bool MarketHasBeenSet() const { return m_marketHasBeenSet; }
301 template <typename MarketT = MarketInputs>
302 void SetMarket(MarketT&& value) {
303 m_marketHasBeenSet = true;
304 m_market = std::forward<MarketT>(value);
305 }
306 template <typename MarketT = MarketInputs>
308 SetMarket(std::forward<MarketT>(value));
309 return *this;
310 }
312
314
320 inline const PlanOptions& GetPlanOptions() const { return m_planOptions; }
321 inline bool PlanOptionsHasBeenSet() const { return m_planOptionsHasBeenSet; }
322 template <typename PlanOptionsT = PlanOptions>
323 void SetPlanOptions(PlanOptionsT&& value) {
324 m_planOptionsHasBeenSet = true;
325 m_planOptions = std::forward<PlanOptionsT>(value);
326 }
327 template <typename PlanOptionsT = PlanOptions>
329 SetPlanOptions(std::forward<PlanOptionsT>(value));
330 return *this;
331 }
333
335
341 inline const RequestContext& GetContext() const { return m_context; }
342 inline bool ContextHasBeenSet() const { return m_contextHasBeenSet; }
343 template <typename ContextT = RequestContext>
344 void SetContext(ContextT&& value) {
345 m_contextHasBeenSet = true;
346 m_context = std::forward<ContextT>(value);
347 }
348 template <typename ContextT = RequestContext>
350 SetContext(std::forward<ContextT>(value));
351 return *this;
352 }
354 private:
355 Aws::String m_appName;
356
358
360
361 ValueKind m_valueKind{ValueKind::NOT_SET};
362
364
365 double m_hourlyRate{0.0};
366
367 double m_valueShare{0.0};
368
369 FeatureScores m_features;
370
371 CostInputs m_costs;
372
373 AlternativeInputs m_alternatives;
374
375 MarketInputs m_market;
376
377 PlanOptions m_planOptions;
378
379 RequestContext m_context;
380 bool m_appNameHasBeenSet = false;
381 bool m_segmentHasBeenSet = false;
382 bool m_appTypeHasBeenSet = false;
383 bool m_valueKindHasBeenSet = false;
384 bool m_actionsHasBeenSet = false;
385 bool m_hourlyRateHasBeenSet = false;
386 bool m_valueShareHasBeenSet = false;
387 bool m_featuresHasBeenSet = false;
388 bool m_costsHasBeenSet = false;
389 bool m_alternativesHasBeenSet = false;
390 bool m_marketHasBeenSet = false;
391 bool m_planOptionsHasBeenSet = false;
392 bool m_contextHasBeenSet = false;
393};
394
395} // namespace Model
396} // namespace AppMonetization
397} // namespace Aws
GetPlanRecommendationRequest & WithValueKind(ValueKind value)
GetPlanRecommendationRequest & WithPlanOptions(PlanOptionsT &&value)
GetPlanRecommendationRequest & WithMarket(MarketT &&value)
GetPlanRecommendationRequest & WithActions(ActionsT &&value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
GetPlanRecommendationRequest & WithAlternatives(AlternativesT &&value)
GetPlanRecommendationRequest & AddActions(ActionsT &&value)
GetPlanRecommendationRequest & WithAppType(PlanRecommendationAppType value)
GetPlanRecommendationRequest & WithFeatures(FeaturesT &&value)
GetPlanRecommendationRequest & WithSegment(CustomerSegment value)
GetPlanRecommendationRequest & WithAppName(AppNameT &&value)
GetPlanRecommendationRequest & WithContext(ContextT &&value)
AWS_APPMONETIZATION_API GetPlanRecommendationRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector