AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetAppRevenueSummaryRequest.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/RevenueSummaryDimension.h>
11#include <aws/core/utils/memory/stl/AWSMap.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 {
18namespace Http {
19class URI;
20} // namespace Http
21namespace AppMonetization {
22namespace Model {
23
30 public:
31 AWS_APPMONETIZATION_API GetAppRevenueSummaryRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "GetAppRevenueSummary"; }
38
39 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
40
41 AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
47 inline const Aws::String& GetAppId() const { return m_appId; }
48 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
49 template <typename AppIdT = Aws::String>
50 void SetAppId(AppIdT&& value) {
51 m_appIdHasBeenSet = true;
52 m_appId = std::forward<AppIdT>(value);
53 }
54 template <typename AppIdT = Aws::String>
56 SetAppId(std::forward<AppIdT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetPeriod() const { return m_period; }
67 inline bool PeriodHasBeenSet() const { return m_periodHasBeenSet; }
68 template <typename PeriodT = Aws::String>
69 void SetPeriod(PeriodT&& value) {
70 m_periodHasBeenSet = true;
71 m_period = std::forward<PeriodT>(value);
72 }
73 template <typename PeriodT = Aws::String>
75 SetPeriod(std::forward<PeriodT>(value));
76 return *this;
77 }
79
81
84 inline RevenueSummaryDimension GetGroupBy() const { return m_groupBy; }
85 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
87 m_groupByHasBeenSet = true;
88 m_groupBy = value;
89 }
91 SetGroupBy(value);
92 return *this;
93 }
95
97
102 inline bool FilterByHasBeenSet() const { return m_filterByHasBeenSet; }
103 template <typename FilterByT = Aws::Map<RevenueSummaryDimension, Aws::Vector<Aws::String>>>
104 void SetFilterBy(FilterByT&& value) {
105 m_filterByHasBeenSet = true;
106 m_filterBy = std::forward<FilterByT>(value);
107 }
108 template <typename FilterByT = Aws::Map<RevenueSummaryDimension, Aws::Vector<Aws::String>>>
110 SetFilterBy(std::forward<FilterByT>(value));
111 return *this;
112 }
114 m_filterByHasBeenSet = true;
115 m_filterBy.emplace(key, value);
116 return *this;
117 }
119
121
124 inline RequestScope GetScope() const { return m_scope; }
125 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
126 inline void SetScope(RequestScope value) {
127 m_scopeHasBeenSet = true;
128 m_scope = value;
129 }
131 SetScope(value);
132 return *this;
133 }
135 private:
136 Aws::String m_appId;
137
138 Aws::String m_period;
139
141
143
145 bool m_appIdHasBeenSet = false;
146 bool m_periodHasBeenSet = false;
147 bool m_groupByHasBeenSet = false;
148 bool m_filterByHasBeenSet = false;
149 bool m_scopeHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace AppMonetization
154} // namespace Aws
GetAppRevenueSummaryRequest & WithPeriod(PeriodT &&value)
const Aws::Map< RevenueSummaryDimension, Aws::Vector< Aws::String > > & GetFilterBy() const
AWS_APPMONETIZATION_API GetAppRevenueSummaryRequest()=default
GetAppRevenueSummaryRequest & WithAppId(AppIdT &&value)
GetAppRevenueSummaryRequest & WithGroupBy(RevenueSummaryDimension value)
GetAppRevenueSummaryRequest & WithScope(RequestScope value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
GetAppRevenueSummaryRequest & WithFilterBy(FilterByT &&value)
GetAppRevenueSummaryRequest & AddFilterBy(RevenueSummaryDimension key, Aws::Vector< Aws::String > 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