AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetAppUsageSummaryResult.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/UsageGroup.h>
9#include <aws/appmonetization/model/UsageSummaryDimension.h>
10#include <aws/core/http/HttpResponse.h>
11#include <aws/core/utils/DateTime.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 GetAppUsageSummaryResult() = default;
38
40
43 inline const Aws::String& GetAppId() const { return m_appId; }
44 template <typename AppIdT = Aws::String>
45 void SetAppId(AppIdT&& value) {
46 m_appIdHasBeenSet = true;
47 m_appId = std::forward<AppIdT>(value);
48 }
49 template <typename AppIdT = Aws::String>
51 SetAppId(std::forward<AppIdT>(value));
52 return *this;
53 }
55
57
60 inline UsageSummaryDimension GetGroupBy() const { return m_groupBy; }
61 inline void SetGroupBy(UsageSummaryDimension value) {
62 m_groupByHasBeenSet = true;
63 m_groupBy = value;
64 }
66 SetGroupBy(value);
67 return *this;
68 }
70
72
75 inline long long GetTotalEvents() const { return m_totalEvents; }
76 inline void SetTotalEvents(long long value) {
77 m_totalEventsHasBeenSet = true;
78 m_totalEvents = value;
79 }
80 inline GetAppUsageSummaryResult& WithTotalEvents(long long value) {
81 SetTotalEvents(value);
82 return *this;
83 }
85
87
91 inline const Aws::Vector<UsageGroup>& GetGroups() const { return m_groups; }
92 template <typename GroupsT = Aws::Vector<UsageGroup>>
93 void SetGroups(GroupsT&& value) {
94 m_groupsHasBeenSet = true;
95 m_groups = std::forward<GroupsT>(value);
96 }
97 template <typename GroupsT = Aws::Vector<UsageGroup>>
99 SetGroups(std::forward<GroupsT>(value));
100 return *this;
101 }
102 template <typename GroupsT = UsageGroup>
104 m_groupsHasBeenSet = true;
105 m_groups.emplace_back(std::forward<GroupsT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
115 template <typename StartedAtT = Aws::Utils::DateTime>
116 void SetStartedAt(StartedAtT&& value) {
117 m_startedAtHasBeenSet = true;
118 m_startedAt = std::forward<StartedAtT>(value);
119 }
120 template <typename StartedAtT = Aws::Utils::DateTime>
122 SetStartedAt(std::forward<StartedAtT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
132 template <typename EndedAtT = Aws::Utils::DateTime>
133 void SetEndedAt(EndedAtT&& value) {
134 m_endedAtHasBeenSet = true;
135 m_endedAt = std::forward<EndedAtT>(value);
136 }
137 template <typename EndedAtT = Aws::Utils::DateTime>
139 SetEndedAt(std::forward<EndedAtT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
149 template <typename UpdatedAtT = Aws::Utils::DateTime>
150 void SetUpdatedAt(UpdatedAtT&& value) {
151 m_updatedAtHasBeenSet = true;
152 m_updatedAt = std::forward<UpdatedAtT>(value);
153 }
154 template <typename UpdatedAtT = Aws::Utils::DateTime>
156 SetUpdatedAt(std::forward<UpdatedAtT>(value));
157 return *this;
158 }
160
162
163 inline const Aws::String& GetRequestId() const { return m_requestId; }
164 template <typename RequestIdT = Aws::String>
165 void SetRequestId(RequestIdT&& value) {
166 m_requestIdHasBeenSet = true;
167 m_requestId = std::forward<RequestIdT>(value);
168 }
169 template <typename RequestIdT = Aws::String>
171 SetRequestId(std::forward<RequestIdT>(value));
172 return *this;
173 }
175 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
176
177 private:
178 Aws::String m_appId;
179
181
182 long long m_totalEvents{0};
183
185
186 Aws::Utils::DateTime m_startedAt{};
187
188 Aws::Utils::DateTime m_endedAt{};
189
190 Aws::Utils::DateTime m_updatedAt{};
191
192 Aws::String m_requestId;
193 Aws::Http::HttpResponseCode m_HttpResponseCode;
194 bool m_appIdHasBeenSet = false;
195 bool m_groupByHasBeenSet = false;
196 bool m_totalEventsHasBeenSet = false;
197 bool m_groupsHasBeenSet = false;
198 bool m_startedAtHasBeenSet = false;
199 bool m_endedAtHasBeenSet = false;
200 bool m_updatedAtHasBeenSet = false;
201 bool m_requestIdHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace AppMonetization
206} // namespace Aws
GetAppUsageSummaryResult & WithRequestId(RequestIdT &&value)
GetAppUsageSummaryResult & WithEndedAt(EndedAtT &&value)
GetAppUsageSummaryResult & WithGroups(GroupsT &&value)
AWS_APPMONETIZATION_API GetAppUsageSummaryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_APPMONETIZATION_API GetAppUsageSummaryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< UsageGroup > & GetGroups() const
GetAppUsageSummaryResult & WithTotalEvents(long long value)
GetAppUsageSummaryResult & WithAppId(AppIdT &&value)
GetAppUsageSummaryResult & WithUpdatedAt(UpdatedAtT &&value)
GetAppUsageSummaryResult & WithStartedAt(StartedAtT &&value)
AWS_APPMONETIZATION_API GetAppUsageSummaryResult()=default
GetAppUsageSummaryResult & WithGroupBy(UsageSummaryDimension value)
GetAppUsageSummaryResult & AddGroups(GroupsT &&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