AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ListPlansRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/appmonetization/model/PlanStage.h>
10#include <aws/appmonetization/model/RequestScope.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 ListPlansRequest() = 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 "ListPlans"; }
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>
53 ListPlansRequest& WithAppId(AppIdT&& value) {
54 SetAppId(std::forward<AppIdT>(value));
55 return *this;
56 }
58
60
66 inline PlanStage GetStage() const { return m_stage; }
67 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
68 inline void SetStage(PlanStage value) {
69 m_stageHasBeenSet = true;
70 m_stage = value;
71 }
73 SetStage(value);
74 return *this;
75 }
77
79
83 inline int GetMaxResults() const { return m_maxResults; }
84 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 inline void SetMaxResults(int value) {
86 m_maxResultsHasBeenSet = true;
87 m_maxResults = value;
88 }
89 inline ListPlansRequest& WithMaxResults(int value) {
90 SetMaxResults(value);
91 return *this;
92 }
94
96
101 inline const Aws::String& GetNextToken() const { return m_nextToken; }
102 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 template <typename NextTokenT = Aws::String>
104 void SetNextToken(NextTokenT&& value) {
105 m_nextTokenHasBeenSet = true;
106 m_nextToken = std::forward<NextTokenT>(value);
107 }
108 template <typename NextTokenT = Aws::String>
109 ListPlansRequest& WithNextToken(NextTokenT&& value) {
110 SetNextToken(std::forward<NextTokenT>(value));
111 return *this;
112 }
114
116
120 inline RequestScope GetScope() const { return m_scope; }
121 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
122 inline void SetScope(RequestScope value) {
123 m_scopeHasBeenSet = true;
124 m_scope = value;
125 }
127 SetScope(value);
128 return *this;
129 }
131 private:
132 Aws::String m_appId;
133
135
136 int m_maxResults{0};
137
138 Aws::String m_nextToken;
139
141 bool m_appIdHasBeenSet = false;
142 bool m_stageHasBeenSet = false;
143 bool m_maxResultsHasBeenSet = false;
144 bool m_nextTokenHasBeenSet = false;
145 bool m_scopeHasBeenSet = false;
146};
147
148} // namespace Model
149} // namespace AppMonetization
150} // namespace Aws
ListPlansRequest & WithMaxResults(int value)
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListPlansRequest & WithAppId(AppIdT &&value)
ListPlansRequest & WithStage(PlanStage value)
virtual const char * GetServiceRequestName() const override
AWS_APPMONETIZATION_API ListPlansRequest()=default
ListPlansRequest & WithScope(RequestScope value)
ListPlansRequest & WithNextToken(NextTokenT &&value)
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String