AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetAppUsageSummaryRequest.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/appmonetization/model/UsageSummaryDimension.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14#include <aws/core/utils/memory/stl/AWSVector.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Http {
20class URI;
21} // namespace Http
22namespace AppMonetization {
23namespace Model {
24
31 public:
32 AWS_APPMONETIZATION_API GetAppUsageSummaryRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "GetAppUsageSummary"; }
39
40 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
41
42 AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
45
48 inline const Aws::String& GetAppId() const { return m_appId; }
49 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
50 template <typename AppIdT = Aws::String>
51 void SetAppId(AppIdT&& value) {
52 m_appIdHasBeenSet = true;
53 m_appId = std::forward<AppIdT>(value);
54 }
55 template <typename AppIdT = Aws::String>
57 SetAppId(std::forward<AppIdT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::Utils::DateTime& GetStartedAt() const { return m_startedAt; }
67 inline bool StartedAtHasBeenSet() const { return m_startedAtHasBeenSet; }
68 template <typename StartedAtT = Aws::Utils::DateTime>
69 void SetStartedAt(StartedAtT&& value) {
70 m_startedAtHasBeenSet = true;
71 m_startedAt = std::forward<StartedAtT>(value);
72 }
73 template <typename StartedAtT = Aws::Utils::DateTime>
75 SetStartedAt(std::forward<StartedAtT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Utils::DateTime& GetEndedAt() const { return m_endedAt; }
86 inline bool EndedAtHasBeenSet() const { return m_endedAtHasBeenSet; }
87 template <typename EndedAtT = Aws::Utils::DateTime>
88 void SetEndedAt(EndedAtT&& value) {
89 m_endedAtHasBeenSet = true;
90 m_endedAt = std::forward<EndedAtT>(value);
91 }
92 template <typename EndedAtT = Aws::Utils::DateTime>
94 SetEndedAt(std::forward<EndedAtT>(value));
95 return *this;
96 }
98
100
103 inline UsageSummaryDimension GetGroupBy() const { return m_groupBy; }
104 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
106 m_groupByHasBeenSet = true;
107 m_groupBy = value;
108 }
110 SetGroupBy(value);
111 return *this;
112 }
114
116
120 inline const Aws::Map<UsageSummaryDimension, Aws::Vector<Aws::String>>& GetFilterBy() const { return m_filterBy; }
121 inline bool FilterByHasBeenSet() const { return m_filterByHasBeenSet; }
122 template <typename FilterByT = Aws::Map<UsageSummaryDimension, Aws::Vector<Aws::String>>>
123 void SetFilterBy(FilterByT&& value) {
124 m_filterByHasBeenSet = true;
125 m_filterBy = std::forward<FilterByT>(value);
126 }
127 template <typename FilterByT = Aws::Map<UsageSummaryDimension, Aws::Vector<Aws::String>>>
129 SetFilterBy(std::forward<FilterByT>(value));
130 return *this;
131 }
133 m_filterByHasBeenSet = true;
134 m_filterBy.emplace(key, value);
135 return *this;
136 }
138
140
143 inline RequestScope GetScope() const { return m_scope; }
144 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
145 inline void SetScope(RequestScope value) {
146 m_scopeHasBeenSet = true;
147 m_scope = value;
148 }
150 SetScope(value);
151 return *this;
152 }
154 private:
155 Aws::String m_appId;
156
157 Aws::Utils::DateTime m_startedAt{};
158
159 Aws::Utils::DateTime m_endedAt{};
160
162
164
166 bool m_appIdHasBeenSet = false;
167 bool m_startedAtHasBeenSet = false;
168 bool m_endedAtHasBeenSet = false;
169 bool m_groupByHasBeenSet = false;
170 bool m_filterByHasBeenSet = false;
171 bool m_scopeHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace AppMonetization
176} // namespace Aws
GetAppUsageSummaryRequest & WithEndedAt(EndedAtT &&value)
GetAppUsageSummaryRequest & WithAppId(AppIdT &&value)
GetAppUsageSummaryRequest & WithGroupBy(UsageSummaryDimension value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
GetAppUsageSummaryRequest & WithScope(RequestScope value)
const Aws::Map< UsageSummaryDimension, Aws::Vector< Aws::String > > & GetFilterBy() const
GetAppUsageSummaryRequest & AddFilterBy(UsageSummaryDimension key, Aws::Vector< Aws::String > value)
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetAppUsageSummaryRequest & WithStartedAt(StartedAtT &&value)
AWS_APPMONETIZATION_API GetAppUsageSummaryRequest()=default
GetAppUsageSummaryRequest & WithFilterBy(FilterByT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector