AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListApplicationsRequest.h
1
6#pragma once
7#include <aws/emr-serverless/EMRServerless_EXPORTS.h>
8#include <aws/emr-serverless/EMRServerlessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/emr-serverless/model/ApplicationState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace EMRServerless
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_EMRSERVERLESS_API ListApplicationsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListApplications"; }
37
38 AWS_EMRSERVERLESS_API Aws::String SerializePayload() const override;
39
40 AWS_EMRSERVERLESS_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline const Aws::String& GetNextToken() const { return m_nextToken; }
48 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
49 template<typename NextTokenT = Aws::String>
50 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
51 template<typename NextTokenT = Aws::String>
52 ListApplicationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
54
56
59 inline int GetMaxResults() const { return m_maxResults; }
60 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
61 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
62 inline ListApplicationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
64
66
70 inline const Aws::Vector<ApplicationState>& GetStates() const { return m_states; }
71 inline bool StatesHasBeenSet() const { return m_statesHasBeenSet; }
72 template<typename StatesT = Aws::Vector<ApplicationState>>
73 void SetStates(StatesT&& value) { m_statesHasBeenSet = true; m_states = std::forward<StatesT>(value); }
74 template<typename StatesT = Aws::Vector<ApplicationState>>
75 ListApplicationsRequest& WithStates(StatesT&& value) { SetStates(std::forward<StatesT>(value)); return *this;}
76 inline ListApplicationsRequest& AddStates(ApplicationState value) { m_statesHasBeenSet = true; m_states.push_back(value); return *this; }
78 private:
79
80 Aws::String m_nextToken;
81 bool m_nextTokenHasBeenSet = false;
82
83 int m_maxResults{0};
84 bool m_maxResultsHasBeenSet = false;
85
87 bool m_statesHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace EMRServerless
92} // 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