AWS SDK for C++

AWS SDK for C++ Version 1.11.941

Loading...
Searching...
No Matches
ListAppsRequest.h
1
6#pragma once
7#include <aws/appmonetization/AppMonetizationRequest.h>
8#include <aws/appmonetization/AppMonetization_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace AppMonetization {
18namespace Model {
19
26 public:
27 AWS_APPMONETIZATION_API ListAppsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListApps"; }
34
35 AWS_APPMONETIZATION_API Aws::String SerializePayload() const override;
36
37 AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
38
40
44 inline int GetMaxResults() const { return m_maxResults; }
45 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
46 inline void SetMaxResults(int value) {
47 m_maxResultsHasBeenSet = true;
48 m_maxResults = value;
49 }
50 inline ListAppsRequest& WithMaxResults(int value) {
51 SetMaxResults(value);
52 return *this;
53 }
55
57
62 inline const Aws::String& GetNextToken() const { return m_nextToken; }
63 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
64 template <typename NextTokenT = Aws::String>
65 void SetNextToken(NextTokenT&& value) {
66 m_nextTokenHasBeenSet = true;
67 m_nextToken = std::forward<NextTokenT>(value);
68 }
69 template <typename NextTokenT = Aws::String>
70 ListAppsRequest& WithNextToken(NextTokenT&& value) {
71 SetNextToken(std::forward<NextTokenT>(value));
72 return *this;
73 }
75 private:
76 int m_maxResults{0};
77
78 Aws::String m_nextToken;
79 bool m_maxResultsHasBeenSet = false;
80 bool m_nextTokenHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace AppMonetization
85} // namespace Aws
AWS_APPMONETIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListAppsRequest & WithNextToken(NextTokenT &&value)
ListAppsRequest & WithMaxResults(int value)
AWS_APPMONETIZATION_API ListAppsRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_APPMONETIZATION_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String