AWS SDK for C++

AWS SDK for C++ Version 1.11.693

Loading...
Searching...
No Matches
ListEnvironmentsRequest.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#include <aws/m2/model/EngineType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace MainframeModernization {
20namespace Model {
21
25 public:
26 AWS_MAINFRAMEMODERNIZATION_API ListEnvironmentsRequest() = 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 "ListEnvironments"; }
33
34 AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override;
35
36 AWS_MAINFRAMEMODERNIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
42 inline EngineType GetEngineType() const { return m_engineType; }
43 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
44 inline void SetEngineType(EngineType value) {
45 m_engineTypeHasBeenSet = true;
46 m_engineType = value;
47 }
49 SetEngineType(value);
50 return *this;
51 }
53
55
58 inline int GetMaxResults() const { return m_maxResults; }
59 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
60 inline void SetMaxResults(int value) {
61 m_maxResultsHasBeenSet = true;
62 m_maxResults = value;
63 }
65 SetMaxResults(value);
66 return *this;
67 }
69
71
74 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
75 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
76 template <typename NamesT = Aws::Vector<Aws::String>>
77 void SetNames(NamesT&& value) {
78 m_namesHasBeenSet = true;
79 m_names = std::forward<NamesT>(value);
80 }
81 template <typename NamesT = Aws::Vector<Aws::String>>
83 SetNames(std::forward<NamesT>(value));
84 return *this;
85 }
86 template <typename NamesT = Aws::String>
88 m_namesHasBeenSet = true;
89 m_names.emplace_back(std::forward<NamesT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetNextToken() const { return m_nextToken; }
100 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
101 template <typename NextTokenT = Aws::String>
102 void SetNextToken(NextTokenT&& value) {
103 m_nextTokenHasBeenSet = true;
104 m_nextToken = std::forward<NextTokenT>(value);
105 }
106 template <typename NextTokenT = Aws::String>
108 SetNextToken(std::forward<NextTokenT>(value));
109 return *this;
110 }
112 private:
113 EngineType m_engineType{EngineType::NOT_SET};
114 bool m_engineTypeHasBeenSet = false;
115
116 int m_maxResults{0};
117 bool m_maxResultsHasBeenSet = false;
118
120 bool m_namesHasBeenSet = false;
121
122 Aws::String m_nextToken;
123 bool m_nextTokenHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace MainframeModernization
128} // namespace Aws
ListEnvironmentsRequest & WithEngineType(EngineType value)
AWS_MAINFRAMEMODERNIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_MAINFRAMEMODERNIZATION_API ListEnvironmentsRequest()=default
AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override
ListEnvironmentsRequest & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector