AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
GetSubscriptionHistoryRequest.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/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace AppMonetization {
20namespace Model {
21
28 public:
29 AWS_APPMONETIZATION_API GetSubscriptionHistoryRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "GetSubscriptionHistory"; }
36
37 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
38
39 AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
42
45 inline const Aws::String& GetAppId() const { return m_appId; }
46 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
47 template <typename AppIdT = Aws::String>
48 void SetAppId(AppIdT&& value) {
49 m_appIdHasBeenSet = true;
50 m_appId = std::forward<AppIdT>(value);
51 }
52 template <typename AppIdT = Aws::String>
54 SetAppId(std::forward<AppIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetUserId() const { return m_userId; }
65 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
66 template <typename UserIdT = Aws::String>
67 void SetUserId(UserIdT&& value) {
68 m_userIdHasBeenSet = true;
69 m_userId = std::forward<UserIdT>(value);
70 }
71 template <typename UserIdT = Aws::String>
73 SetUserId(std::forward<UserIdT>(value));
74 return *this;
75 }
77
79
83 inline const Aws::Utils::DateTime& GetEffectiveAfter() const { return m_effectiveAfter; }
84 inline bool EffectiveAfterHasBeenSet() const { return m_effectiveAfterHasBeenSet; }
85 template <typename EffectiveAfterT = Aws::Utils::DateTime>
86 void SetEffectiveAfter(EffectiveAfterT&& value) {
87 m_effectiveAfterHasBeenSet = true;
88 m_effectiveAfter = std::forward<EffectiveAfterT>(value);
89 }
90 template <typename EffectiveAfterT = Aws::Utils::DateTime>
92 SetEffectiveAfter(std::forward<EffectiveAfterT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Utils::DateTime& GetEffectiveBefore() const { return m_effectiveBefore; }
102 inline bool EffectiveBeforeHasBeenSet() const { return m_effectiveBeforeHasBeenSet; }
103 template <typename EffectiveBeforeT = Aws::Utils::DateTime>
104 void SetEffectiveBefore(EffectiveBeforeT&& value) {
105 m_effectiveBeforeHasBeenSet = true;
106 m_effectiveBefore = std::forward<EffectiveBeforeT>(value);
107 }
108 template <typename EffectiveBeforeT = Aws::Utils::DateTime>
110 SetEffectiveBefore(std::forward<EffectiveBeforeT>(value));
111 return *this;
112 }
114
116
119 inline int GetMaxResults() const { return m_maxResults; }
120 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
121 inline void SetMaxResults(int value) {
122 m_maxResultsHasBeenSet = true;
123 m_maxResults = value;
124 }
126 SetMaxResults(value);
127 return *this;
128 }
130
132
137 inline const Aws::String& GetNextToken() const { return m_nextToken; }
138 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
139 template <typename NextTokenT = Aws::String>
140 void SetNextToken(NextTokenT&& value) {
141 m_nextTokenHasBeenSet = true;
142 m_nextToken = std::forward<NextTokenT>(value);
143 }
144 template <typename NextTokenT = Aws::String>
146 SetNextToken(std::forward<NextTokenT>(value));
147 return *this;
148 }
150
152
155 inline RequestScope GetScope() const { return m_scope; }
156 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
157 inline void SetScope(RequestScope value) {
158 m_scopeHasBeenSet = true;
159 m_scope = value;
160 }
162 SetScope(value);
163 return *this;
164 }
166 private:
167 Aws::String m_appId;
168
169 Aws::String m_userId;
170
171 Aws::Utils::DateTime m_effectiveAfter{};
172
173 Aws::Utils::DateTime m_effectiveBefore{};
174
175 int m_maxResults{0};
176
177 Aws::String m_nextToken;
178
180 bool m_appIdHasBeenSet = false;
181 bool m_userIdHasBeenSet = false;
182 bool m_effectiveAfterHasBeenSet = false;
183 bool m_effectiveBeforeHasBeenSet = false;
184 bool m_maxResultsHasBeenSet = false;
185 bool m_nextTokenHasBeenSet = false;
186 bool m_scopeHasBeenSet = false;
187};
188
189} // namespace Model
190} // namespace AppMonetization
191} // namespace Aws
GetSubscriptionHistoryRequest & WithEffectiveBefore(EffectiveBeforeT &&value)
GetSubscriptionHistoryRequest & WithNextToken(NextTokenT &&value)
GetSubscriptionHistoryRequest & WithScope(RequestScope value)
GetSubscriptionHistoryRequest & WithUserId(UserIdT &&value)
AWS_APPMONETIZATION_API GetSubscriptionHistoryRequest()=default
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
GetSubscriptionHistoryRequest & WithEffectiveAfter(EffectiveAfterT &&value)
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String