AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetMetricUsageRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/RequestScope.h>
10#include <aws/core/utils/DateTime.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 GetMetricUsageRequest() = 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 "GetMetricUsage"; }
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>
54 SetAppId(std::forward<AppIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetUserId() const { return m_userId; }
65 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
66 template <typename UserIdT = Aws::String>
67 void SetUserId(UserIdT&& value) {
68 m_userIdHasBeenSet = true;
69 m_userId = std::forward<UserIdT>(value);
70 }
71 template <typename UserIdT = Aws::String>
73 SetUserId(std::forward<UserIdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
83 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
84 template <typename StartedAtT = Aws::Utils::DateTime>
85 void SetStartedAt(StartedAtT&& value) {
86 m_startedAtHasBeenSet = true;
87 m_startedAt = std::forward<StartedAtT>(value);
88 }
89 template <typename StartedAtT = Aws::Utils::DateTime>
90 GetMetricUsageRequest& WithStartedAt(StartedAtT&& value) {
91 SetStartedAt(std::forward<StartedAtT>(value));
92 return *this;
93 }
95
97
102 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
103 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
104 template <typename EndedAtT = Aws::Utils::DateTime>
105 void SetEndedAt(EndedAtT&& value) {
106 m_endedAtHasBeenSet = true;
107 m_endedAt = std::forward<EndedAtT>(value);
108 }
109 template <typename EndedAtT = Aws::Utils::DateTime>
111 SetEndedAt(std::forward<EndedAtT>(value));
112 return *this;
113 }
115
117
121 inline RequestScope GetScope() const { return m_scope; }
122 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
123 inline void SetScope(RequestScope value) {
124 m_scopeHasBeenSet = true;
125 m_scope = value;
126 }
128 SetScope(value);
129 return *this;
130 }
132
134
138 inline int GetMaxResults() const { return m_maxResults; }
139 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
140 inline void SetMaxResults(int value) {
141 m_maxResultsHasBeenSet = true;
142 m_maxResults = value;
143 }
145 SetMaxResults(value);
146 return *this;
147 }
149
151
155 inline const Aws::String& GetNextToken() const { return m_nextToken; }
156 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
157 template <typename NextTokenT = Aws::String>
158 void SetNextToken(NextTokenT&& value) {
159 m_nextTokenHasBeenSet = true;
160 m_nextToken = std::forward<NextTokenT>(value);
161 }
162 template <typename NextTokenT = Aws::String>
164 SetNextToken(std::forward<NextTokenT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_appId;
170
171 Aws::String m_userId;
172
173 Aws::Utils::DateTime m_startedAt{};
174
175 Aws::Utils::DateTime m_endedAt{};
176
178
179 int m_maxResults{0};
180
181 Aws::String m_nextToken;
182 bool m_appIdHasBeenSet = false;
183 bool m_userIdHasBeenSet = false;
184 bool m_startedAtHasBeenSet = false;
185 bool m_endedAtHasBeenSet = false;
186 bool m_scopeHasBeenSet = false;
187 bool m_maxResultsHasBeenSet = false;
188 bool m_nextTokenHasBeenSet = false;
189};
190
191} // namespace Model
192} // namespace AppMonetization
193} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetMetricUsageRequest & WithUserId(UserIdT &&value)
GetMetricUsageRequest & WithStartedAt(StartedAtT &&value)
GetMetricUsageRequest & WithEndedAt(EndedAtT &&value)
GetMetricUsageRequest & WithNextToken(NextTokenT &&value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
const Aws::Utils::DateTime & GetStartedAt() const
GetMetricUsageRequest & WithScope(RequestScope value)
AWS_APPMONETIZATION_API GetMetricUsageRequest()=default
GetMetricUsageRequest & WithAppId(AppIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String