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/evs/EVS_EXPORTS.h>
8#include <aws/evs/EVSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/evs/model/EnvironmentState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace EVS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_EVS_API ListEnvironmentsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "ListEnvironments"; }
33
34 AWS_EVS_API Aws::String SerializePayload() const override;
35
37
38
40
47 inline const Aws::String& GetNextToken() const { return m_nextToken; }
48 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
49 template<typename NextTokenT = Aws::String>
50 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
51 template<typename NextTokenT = Aws::String>
52 ListEnvironmentsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
54
56
61 inline int GetMaxResults() const { return m_maxResults; }
62 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
63 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
64 inline ListEnvironmentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
66
68
72 inline const Aws::Vector<EnvironmentState>& GetState() const { return m_state; }
73 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
74 template<typename StateT = Aws::Vector<EnvironmentState>>
75 void SetState(StateT&& value) { m_stateHasBeenSet = true; m_state = std::forward<StateT>(value); }
76 template<typename StateT = Aws::Vector<EnvironmentState>>
77 ListEnvironmentsRequest& WithState(StateT&& value) { SetState(std::forward<StateT>(value)); return *this;}
78 inline ListEnvironmentsRequest& AddState(EnvironmentState value) { m_stateHasBeenSet = true; m_state.push_back(value); return *this; }
80 private:
81
82 Aws::String m_nextToken;
83 bool m_nextTokenHasBeenSet = false;
84
85 int m_maxResults{0};
86 bool m_maxResultsHasBeenSet = false;
87
89 bool m_stateHasBeenSet = false;
90 };
91
92} // namespace Model
93} // namespace EVS
94} // 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