AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListEnvironmentsRequest.h
1
6#pragma once
7#include <aws/m2/MainframeModernization_EXPORTS.h>
8#include <aws/m2/MainframeModernizationRequest.h>
9#include <aws/m2/model/EngineType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace MainframeModernization
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_MAINFRAMEMODERNIZATION_API ListEnvironmentsRequest() = 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 "ListEnvironments"; }
37
38 AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override;
39
40 AWS_MAINFRAMEMODERNIZATION_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41
42
44
47 inline EngineType GetEngineType() const { return m_engineType; }
48 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
49 inline void SetEngineType(EngineType value) { m_engineTypeHasBeenSet = true; m_engineType = value; }
50 inline ListEnvironmentsRequest& WithEngineType(EngineType value) { SetEngineType(value); return *this;}
52
54
57 inline int GetMaxResults() const { return m_maxResults; }
58 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
59 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
60 inline ListEnvironmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
62
64
67 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
68 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
69 template<typename NamesT = Aws::Vector<Aws::String>>
70 void SetNames(NamesT&& value) { m_namesHasBeenSet = true; m_names = std::forward<NamesT>(value); }
71 template<typename NamesT = Aws::Vector<Aws::String>>
72 ListEnvironmentsRequest& WithNames(NamesT&& value) { SetNames(std::forward<NamesT>(value)); return *this;}
73 template<typename NamesT = Aws::String>
74 ListEnvironmentsRequest& AddNames(NamesT&& value) { m_namesHasBeenSet = true; m_names.emplace_back(std::forward<NamesT>(value)); return *this; }
76
78
82 inline const Aws::String& GetNextToken() const { return m_nextToken; }
83 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
84 template<typename NextTokenT = Aws::String>
85 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
86 template<typename NextTokenT = Aws::String>
87 ListEnvironmentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
89 private:
90
91 EngineType m_engineType{EngineType::NOT_SET};
92 bool m_engineTypeHasBeenSet = false;
93
94 int m_maxResults{0};
95 bool m_maxResultsHasBeenSet = false;
96
98 bool m_namesHasBeenSet = false;
99
100 Aws::String m_nextToken;
101 bool m_nextTokenHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace MainframeModernization
106} // 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