AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
ListApplicationsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/emr-serverless/EMRServerlessRequest.h>
10#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
11#include <aws/emr-serverless/model/ApplicationState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace EMRServerless {
20namespace Model {
21
25 public:
26 AWS_EMRSERVERLESS_API ListApplicationsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListApplications"; }
33
34 AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override;
35
36 AWS_EMRSERVERLESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
42 inline const Aws::String& GetNextToken() const { return m_nextToken; }
43 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
44 template <typename NextTokenT = Aws::String>
45 void SetNextToken(NextTokenT&& value) {
46 m_nextTokenHasBeenSet = true;
47 m_nextToken = std::forward<NextTokenT>(value);
48 }
49 template <typename NextTokenT = Aws::String>
51 SetNextToken(std::forward<NextTokenT>(value));
52 return *this;
53 }
55
57
60 inline int GetMaxResults() const { return m_maxResults; }
61 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
62 inline void SetMaxResults(int value) {
63 m_maxResultsHasBeenSet = true;
64 m_maxResults = value;
65 }
67 SetMaxResults(value);
68 return *this;
69 }
71
73
77 inline const Aws::Vector<ApplicationState>& GetStates() const { return m_states; }
78 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
79 template <typename StatesT = Aws::Vector<ApplicationState>>
80 void SetStates(StatesT&& value) {
81 m_statesHasBeenSet = true;
82 m_states = std::forward<StatesT>(value);
83 }
84 template <typename StatesT = Aws::Vector<ApplicationState>>
86 SetStates(std::forward<StatesT>(value));
87 return *this;
88 }
90 m_statesHasBeenSet = true;
91 m_states.push_back(value);
92 return *this;
93 }
95 private:
96 Aws::String m_nextToken;
97
98 int m_maxResults{0};
99
101 bool m_nextTokenHasBeenSet = false;
102 bool m_maxResultsHasBeenSet = false;
103 bool m_statesHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace EMRServerless
108} // namespace Aws
AWS_EMRSERVERLESS_API ListApplicationsRequest()=default
AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListApplicationsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< ApplicationState > & GetStates() const
AWS_EMRSERVERLESS_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListApplicationsRequest & WithStates(StatesT &&value)
ListApplicationsRequest & AddStates(ApplicationState value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector