AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetMetricRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/PlanStage.h>
10#include <aws/appmonetization/model/RequestScope.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace AppMonetization {
20namespace Model {
21
28 public:
29 AWS_APPMONETIZATION_API GetMetricRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetMetric"; }
36
37 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
38
39 AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
45 inline const Aws::String& GetAppId() const { return m_appId; }
46 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
47 template <typename AppIdT = Aws::String>
48 void SetAppId(AppIdT&& value) {
49 m_appIdHasBeenSet = true;
50 m_appId = std::forward<AppIdT>(value);
51 }
52 template <typename AppIdT = Aws::String>
53 GetMetricRequest& WithAppId(AppIdT&& value) {
54 SetAppId(std::forward<AppIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetMetricId() const { return m_metricId; }
64 inline bool MetricIdHasBeenSet() const { return m_metricIdHasBeenSet; }
65 template <typename MetricIdT = Aws::String>
66 void SetMetricId(MetricIdT&& value) {
67 m_metricIdHasBeenSet = true;
68 m_metricId = std::forward<MetricIdT>(value);
69 }
70 template <typename MetricIdT = Aws::String>
71 GetMetricRequest& WithMetricId(MetricIdT&& value) {
72 SetMetricId(std::forward<MetricIdT>(value));
73 return *this;
74 }
76
78
83 inline PlanStage GetStage() const { return m_stage; }
84 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
85 inline void SetStage(PlanStage value) {
86 m_stageHasBeenSet = true;
87 m_stage = value;
88 }
90 SetStage(value);
91 return *this;
92 }
94
96
100 inline RequestScope GetScope() const { return m_scope; }
101 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
102 inline void SetScope(RequestScope value) {
103 m_scopeHasBeenSet = true;
104 m_scope = value;
105 }
107 SetScope(value);
108 return *this;
109 }
111 private:
112 Aws::String m_appId;
113
114 Aws::String m_metricId;
115
117
119 bool m_appIdHasBeenSet = false;
120 bool m_metricIdHasBeenSet = false;
121 bool m_stageHasBeenSet = false;
122 bool m_scopeHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace AppMonetization
127} // namespace Aws
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
GetMetricRequest & WithMetricId(MetricIdT &&value)
AWS_APPMONETIZATION_API GetMetricRequest()=default
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
GetMetricRequest & WithScope(RequestScope value)
GetMetricRequest & WithAppId(AppIdT &&value)
GetMetricRequest & WithStage(PlanStage value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String