AWS SDK for C++

AWS SDK for C++ Version 1.11.687

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/m2/MainframeModernizationRequest.h>
10#include <aws/m2/MainframeModernization_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace MainframeModernization {
19namespace Model {
20
24 public:
25 AWS_MAINFRAMEMODERNIZATION_API ListApplicationsRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ListApplications"; }
32
33 AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override;
34
35 AWS_MAINFRAMEMODERNIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
42 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
43 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
44 template <typename EnvironmentIdT = Aws::String>
45 void SetEnvironmentId(EnvironmentIdT&& value) {
46 m_environmentIdHasBeenSet = true;
47 m_environmentId = std::forward<EnvironmentIdT>(value);
48 }
49 template <typename EnvironmentIdT = Aws::String>
50 ListApplicationsRequest& WithEnvironmentId(EnvironmentIdT&& value) {
51 SetEnvironmentId(std::forward<EnvironmentIdT>(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
76 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
77 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
78 template <typename NamesT = Aws::Vector<Aws::String>>
79 void SetNames(NamesT&& value) {
80 m_namesHasBeenSet = true;
81 m_names = std::forward<NamesT>(value);
82 }
83 template <typename NamesT = Aws::Vector<Aws::String>>
85 SetNames(std::forward<NamesT>(value));
86 return *this;
87 }
88 template <typename NamesT = Aws::String>
90 m_namesHasBeenSet = true;
91 m_names.emplace_back(std::forward<NamesT>(value));
92 return *this;
93 }
95
97
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>
110 SetNextToken(std::forward<NextTokenT>(value));
111 return *this;
112 }
114 private:
115 Aws::String m_environmentId;
116 bool m_environmentIdHasBeenSet = false;
117
118 int m_maxResults{0};
119 bool m_maxResultsHasBeenSet = false;
120
122 bool m_namesHasBeenSet = false;
123
124 Aws::String m_nextToken;
125 bool m_nextTokenHasBeenSet = false;
126};
127
128} // namespace Model
129} // namespace MainframeModernization
130} // 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