AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const EngineType& GetEngineType() const{ return m_engineType; }
48 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
49 inline void SetEngineType(const EngineType& value) { m_engineTypeHasBeenSet = true; m_engineType = value; }
50 inline void SetEngineType(EngineType&& value) { m_engineTypeHasBeenSet = true; m_engineType = std::move(value); }
51 inline ListEnvironmentsRequest& WithEngineType(const EngineType& value) { SetEngineType(value); return *this;}
52 inline ListEnvironmentsRequest& WithEngineType(EngineType&& value) { SetEngineType(std::move(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 ListEnvironmentsRequest& 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 inline void SetNames(const Aws::Vector<Aws::String>& value) { m_namesHasBeenSet = true; m_names = value; }
72 inline void SetNames(Aws::Vector<Aws::String>&& value) { m_namesHasBeenSet = true; m_names = std::move(value); }
73 inline ListEnvironmentsRequest& WithNames(const Aws::Vector<Aws::String>& value) { SetNames(value); return *this;}
74 inline ListEnvironmentsRequest& WithNames(Aws::Vector<Aws::String>&& value) { SetNames(std::move(value)); return *this;}
75 inline ListEnvironmentsRequest& AddNames(const Aws::String& value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
76 inline ListEnvironmentsRequest& AddNames(Aws::String&& value) { m_namesHasBeenSet = true; m_names.push_back(std::move(value)); return *this; }
77 inline ListEnvironmentsRequest& AddNames(const char* value) { m_namesHasBeenSet = true; m_names.push_back(value); return *this; }
79
81
85 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
86 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
87 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
88 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
89 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
90 inline ListEnvironmentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
91 inline ListEnvironmentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
92 inline ListEnvironmentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
94 private:
95
96 EngineType m_engineType;
97 bool m_engineTypeHasBeenSet = false;
98
99 int m_maxResults;
100 bool m_maxResultsHasBeenSet = false;
101
103 bool m_namesHasBeenSet = false;
104
105 Aws::String m_nextToken;
106 bool m_nextTokenHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace MainframeModernization
111} // namespace Aws
AWS_MAINFRAMEMODERNIZATION_API ListEnvironmentsRequest()
AWS_MAINFRAMEMODERNIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListEnvironmentsRequest & WithNextToken(const char *value)
ListEnvironmentsRequest & WithEngineType(const EngineType &value)
ListEnvironmentsRequest & WithNextToken(Aws::String &&value)
ListEnvironmentsRequest & WithNames(Aws::Vector< Aws::String > &&value)
ListEnvironmentsRequest & WithEngineType(EngineType &&value)
ListEnvironmentsRequest & AddNames(const Aws::String &value)
ListEnvironmentsRequest & WithNames(const Aws::Vector< Aws::String > &value)
AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override
ListEnvironmentsRequest & AddNames(Aws::String &&value)
ListEnvironmentsRequest & WithNextToken(const Aws::String &value)
void SetNames(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector