AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ListEngineVersionsRequest.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/AWSString.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 ListEngineVersionsRequest() = 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 "ListEngineVersions"; }
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
46 inline EngineType GetEngineType() const { return m_engineType; }
47 inline bool EngineTypeHasBeenSet() const { return m_engineTypeHasBeenSet; }
48 inline void SetEngineType(EngineType value) { m_engineTypeHasBeenSet = true; m_engineType = value; }
49 inline ListEngineVersionsRequest& WithEngineType(EngineType value) { SetEngineType(value); return *this;}
51
53
56 inline int GetMaxResults() const { return m_maxResults; }
57 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
58 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
59 inline ListEngineVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
61
63
68 inline const Aws::String& GetNextToken() const { return m_nextToken; }
69 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
70 template<typename NextTokenT = Aws::String>
71 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
72 template<typename NextTokenT = Aws::String>
73 ListEngineVersionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
75 private:
76
77 EngineType m_engineType{EngineType::NOT_SET};
78 bool m_engineTypeHasBeenSet = false;
79
80 int m_maxResults{0};
81 bool m_maxResultsHasBeenSet = false;
82
83 Aws::String m_nextToken;
84 bool m_nextTokenHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace MainframeModernization
89} // namespace Aws
ListEngineVersionsRequest & WithNextToken(NextTokenT &&value)
AWS_MAINFRAMEMODERNIZATION_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override
AWS_MAINFRAMEMODERNIZATION_API ListEngineVersionsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String