AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListApplicationsRequest.h
1
6#pragma once
7#include <aws/m2/MainframeModernization_EXPORTS.h>
8#include <aws/m2/MainframeModernizationRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace MainframeModernization
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_MAINFRAMEMODERNIZATION_API ListApplicationsRequest() = 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 "ListApplications"; }
36
37 AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override;
38
39 AWS_MAINFRAMEMODERNIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
47 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
48 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
49 template<typename EnvironmentIdT = Aws::String>
50 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
51 template<typename EnvironmentIdT = Aws::String>
52 ListApplicationsRequest& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(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
69 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
70 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
71 template<typename NamesT = Aws::Vector<Aws::String>>
72 void SetNames(NamesT&& value) { m_namesHasBeenSet = true; m_names = std::forward<NamesT>(value); }
73 template<typename NamesT = Aws::Vector<Aws::String>>
74 ListApplicationsRequest& WithNames(NamesT&& value) { SetNames(std::forward<NamesT>(value)); return *this;}
75 template<typename NamesT = Aws::String>
76 ListApplicationsRequest& AddNames(NamesT&& value) { m_namesHasBeenSet = true; m_names.emplace_back(std::forward<NamesT>(value)); return *this; }
78
80
84 inline const Aws::String& GetNextToken() const { return m_nextToken; }
85 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
86 template<typename NextTokenT = Aws::String>
87 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
88 template<typename NextTokenT = Aws::String>
89 ListApplicationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
91 private:
92
93 Aws::String m_environmentId;
94 bool m_environmentIdHasBeenSet = false;
95
96 int m_maxResults{0};
97 bool m_maxResultsHasBeenSet = false;
98
100 bool m_namesHasBeenSet = false;
101
102 Aws::String m_nextToken;
103 bool m_nextTokenHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace MainframeModernization
108} // namespace Aws
AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override
ListApplicationsRequest & WithEnvironmentId(EnvironmentIdT &&value)
ListApplicationsRequest & WithNextToken(NextTokenT &&value)
AWS_MAINFRAMEMODERNIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_MAINFRAMEMODERNIZATION_API ListApplicationsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector