AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/evs/EVSRequest.h>
10#include <aws/evs/EVS_EXPORTS.h>
11#include <aws/evs/model/EnvironmentState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace EVS {
17namespace Model {
18
22 public:
23 AWS_EVS_API ListEnvironmentsRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "ListEnvironments"; }
30
31 AWS_EVS_API Aws::String SerializePayload() const override;
32
34
36
43 inline const Aws::String& GetNextToken() const { return m_nextToken; }
44 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
45 template <typename NextTokenT = Aws::String>
46 void SetNextToken(NextTokenT&& value) {
47 m_nextTokenHasBeenSet = true;
48 m_nextToken = std::forward<NextTokenT>(value);
49 }
50 template <typename NextTokenT = Aws::String>
52 SetNextToken(std::forward<NextTokenT>(value));
53 return *this;
54 }
56
58
63 inline int GetMaxResults() const { return m_maxResults; }
64 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
65 inline void SetMaxResults(int value) {
66 m_maxResultsHasBeenSet = true;
67 m_maxResults = value;
68 }
70 SetMaxResults(value);
71 return *this;
72 }
74
76
80 inline const Aws::Vector<EnvironmentState>& GetState() const { return m_state; }
81 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
82 template <typename StateT = Aws::Vector<EnvironmentState>>
83 void SetState(StateT&& value) {
84 m_stateHasBeenSet = true;
85 m_state = std::forward<StateT>(value);
86 }
87 template <typename StateT = Aws::Vector<EnvironmentState>>
89 SetState(std::forward<StateT>(value));
90 return *this;
91 }
93 m_stateHasBeenSet = true;
94 m_state.push_back(value);
95 return *this;
96 }
98 private:
99 Aws::String m_nextToken;
100
101 int m_maxResults{0};
102
104 bool m_nextTokenHasBeenSet = false;
105 bool m_maxResultsHasBeenSet = false;
106 bool m_stateHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace EVS
111} // namespace Aws
virtual const char * GetServiceRequestName() const override
AWS_EVS_API Aws::String SerializePayload() const override
ListEnvironmentsRequest & WithMaxResults(int value)
ListEnvironmentsRequest & WithState(StateT &&value)
const Aws::Vector< EnvironmentState > & GetState() const
ListEnvironmentsRequest & WithNextToken(NextTokenT &&value)
AWS_EVS_API ListEnvironmentsRequest()=default
AWS_EVS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListEnvironmentsRequest & AddState(EnvironmentState value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector