AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetAppSubscriptionSummaryResult.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetization_EXPORTS.h>
8#include <aws/appmonetization/model/SubscriptionGroup.h>
9#include <aws/appmonetization/model/SubscriptionSummaryDimension.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 GetAppSubscriptionSummaryResult() = default;
39
41
44 inline const Aws::String& GetAppId() const { return m_appId; }
45 template <typename AppIdT = Aws::String>
46 void SetAppId(AppIdT&& value) {
47 m_appIdHasBeenSet = true;
48 m_appId = std::forward<AppIdT>(value);
49 }
50 template <typename AppIdT = Aws::String>
52 SetAppId(std::forward<AppIdT>(value));
53 return *this;
54 }
56
58
61 inline SubscriptionSummaryDimension GetGroupBy() const { return m_groupBy; }
63 m_groupByHasBeenSet = true;
64 m_groupBy = value;
65 }
71
73
76 inline int GetTotalSubscribers() const { return m_totalSubscribers; }
77 inline void SetTotalSubscribers(int value) {
78 m_totalSubscribersHasBeenSet = true;
79 m_totalSubscribers = value;
80 }
83 return *this;
84 }
86
88
92 inline const Aws::Vector<SubscriptionGroup>& GetGroups() const { return m_groups; }
93 template <typename GroupsT = Aws::Vector<SubscriptionGroup>>
94 void SetGroups(GroupsT&& value) {
95 m_groupsHasBeenSet = true;
96 m_groups = std::forward<GroupsT>(value);
97 }
98 template <typename GroupsT = Aws::Vector<SubscriptionGroup>>
100 SetGroups(std::forward<GroupsT>(value));
101 return *this;
102 }
103 template <typename GroupsT = SubscriptionGroup>
105 m_groupsHasBeenSet = true;
106 m_groups.emplace_back(std::forward<GroupsT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
116 template <typename UpdatedAtT = Aws::Utils::DateTime>
117 void SetUpdatedAt(UpdatedAtT&& value) {
118 m_updatedAtHasBeenSet = true;
119 m_updatedAt = std::forward<UpdatedAtT>(value);
120 }
121 template <typename UpdatedAtT = Aws::Utils::DateTime>
123 SetUpdatedAt(std::forward<UpdatedAtT>(value));
124 return *this;
125 }
127
129
130 inline const Aws::String& GetRequestId() const { return m_requestId; }
131 template <typename RequestIdT = Aws::String>
132 void SetRequestId(RequestIdT&& value) {
133 m_requestIdHasBeenSet = true;
134 m_requestId = std::forward<RequestIdT>(value);
135 }
136 template <typename RequestIdT = Aws::String>
138 SetRequestId(std::forward<RequestIdT>(value));
139 return *this;
140 }
142 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
143
144 private:
145 Aws::String m_appId;
146
148
149 int m_totalSubscribers{0};
150
152
153 Aws::Utils::DateTime m_updatedAt{};
154
155 Aws::String m_requestId;
156 Aws::Http::HttpResponseCode m_HttpResponseCode;
157 bool m_appIdHasBeenSet = false;
158 bool m_groupByHasBeenSet = false;
159 bool m_totalSubscribersHasBeenSet = false;
160 bool m_groupsHasBeenSet = false;
161 bool m_updatedAtHasBeenSet = false;
162 bool m_requestIdHasBeenSet = false;
163};
164
165} // namespace Model
166} // namespace AppMonetization
167} // namespace Aws
AWS_APPMONETIZATION_API GetAppSubscriptionSummaryResult()=default
AWS_APPMONETIZATION_API GetAppSubscriptionSummaryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAppSubscriptionSummaryResult & WithUpdatedAt(UpdatedAtT &&value)
AWS_APPMONETIZATION_API GetAppSubscriptionSummaryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetAppSubscriptionSummaryResult & WithRequestId(RequestIdT &&value)
GetAppSubscriptionSummaryResult & WithGroups(GroupsT &&value)
GetAppSubscriptionSummaryResult & WithGroupBy(SubscriptionSummaryDimension 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