AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetAppSubscriptionSummaryRequest.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/SubscriptionSummaryDimension.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 GetAppSubscriptionSummaryRequest() = 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 "GetAppSubscriptionSummary"; }
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
65 inline SubscriptionSummaryDimension GetGroupBy() const { return m_groupBy; }
66 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
68 m_groupByHasBeenSet = true;
69 m_groupBy = value;
70 }
76
78
83 inline bool FilterByHasBeenSet() const { return m_filterByHasBeenSet; }
84 template <typename FilterByT = Aws::Map<SubscriptionSummaryDimension, Aws::Vector<Aws::String>>>
85 void SetFilterBy(FilterByT&& value) {
86 m_filterByHasBeenSet = true;
87 m_filterBy = std::forward<FilterByT>(value);
88 }
89 template <typename FilterByT = Aws::Map<SubscriptionSummaryDimension, Aws::Vector<Aws::String>>>
91 SetFilterBy(std::forward<FilterByT>(value));
92 return *this;
93 }
95 m_filterByHasBeenSet = true;
96 m_filterBy.emplace(key, value);
97 return *this;
98 }
100
102
105 inline RequestScope GetScope() const { return m_scope; }
106 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
107 inline void SetScope(RequestScope value) {
108 m_scopeHasBeenSet = true;
109 m_scope = value;
110 }
112 SetScope(value);
113 return *this;
114 }
116 private:
117 Aws::String m_appId;
118
120
122
124 bool m_appIdHasBeenSet = false;
125 bool m_groupByHasBeenSet = false;
126 bool m_filterByHasBeenSet = false;
127 bool m_scopeHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace AppMonetization
132} // namespace Aws
GetAppSubscriptionSummaryRequest & WithScope(RequestScope value)
GetAppSubscriptionSummaryRequest & WithGroupBy(SubscriptionSummaryDimension value)
GetAppSubscriptionSummaryRequest & AddFilterBy(SubscriptionSummaryDimension key, Aws::Vector< Aws::String > value)
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
AWS_APPMONETIZATION_API GetAppSubscriptionSummaryRequest()=default
const Aws::Map< SubscriptionSummaryDimension, Aws::Vector< Aws::String > > & GetFilterBy() const
GetAppSubscriptionSummaryRequest & 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