AWS SDK for C++

AWS SDK for C++ Version 1.11.923

Loading...
Searching...
No Matches
ListEnvironmentsRequest.h
1
6#pragma once
7#include <aws/continuum/ContinuumRequest.h>
8#include <aws/continuum/Continuum_EXPORTS.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace Continuum {
18namespace Model {
19
37 public:
38 AWS_CONTINUUM_API ListEnvironmentsRequest() = default;
39
40 // Service request name is the Operation name which will send this request out,
41 // each operation should has unique request name, so that we can get operation's name from this request.
42 // Note: this is not true for response, multiple operations may have the same response name,
43 // so we can not get operation's name from response.
44 inline virtual const char* GetServiceRequestName() const override { return "ListEnvironments"; }
45
46 AWS_CONTINUUM_API Aws::String SerializePayload() const override;
47
48 AWS_CONTINUUM_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
49
51
54 inline int GetMaxResults() const { return m_maxResults; }
55 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
56 inline void SetMaxResults(int value) {
57 m_maxResultsHasBeenSet = true;
58 m_maxResults = value;
59 }
61 SetMaxResults(value);
62 return *this;
63 }
65
67
71 inline const Aws::String& GetNextToken() const { return m_nextToken; }
72 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
73 template <typename NextTokenT = Aws::String>
74 void SetNextToken(NextTokenT&& value) {
75 m_nextTokenHasBeenSet = true;
76 m_nextToken = std::forward<NextTokenT>(value);
77 }
78 template <typename NextTokenT = Aws::String>
80 SetNextToken(std::forward<NextTokenT>(value));
81 return *this;
82 }
84 private:
85 int m_maxResults{0};
86
87 Aws::String m_nextToken;
88 bool m_maxResultsHasBeenSet = false;
89 bool m_nextTokenHasBeenSet = false;
90};
91
92} // namespace Model
93} // namespace Continuum
94} // namespace Aws
AWS_CONTINUUM_API Aws::String SerializePayload() const override
ListEnvironmentsRequest & WithNextToken(NextTokenT &&value)
virtual const char * GetServiceRequestName() const override
AWS_CONTINUUM_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_CONTINUUM_API ListEnvironmentsRequest()=default
ListEnvironmentsRequest & WithMaxResults(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String