AWS SDK for C++

AWS SDK for C++ Version 1.11.791

Loading...
Searching...
No Matches
ListEnvironmentsRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/interconnect/InterconnectRequest.h>
9#include <aws/interconnect/Interconnect_EXPORTS.h>
10#include <aws/interconnect/model/Provider.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Interconnect {
16namespace Model {
17
21 public:
22 AWS_INTERCONNECT_API ListEnvironmentsRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "ListEnvironments"; }
29
30 AWS_INTERCONNECT_API Aws::String SerializePayload() const override;
31
32 AWS_INTERCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline int GetMaxResults() const { return m_maxResults; }
39 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
40 inline void SetMaxResults(int value) {
41 m_maxResultsHasBeenSet = true;
42 m_maxResults = value;
43 }
45 SetMaxResults(value);
46 return *this;
47 }
49
51
55 inline const Aws::String& GetNextToken() const { return m_nextToken; }
56 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
57 template <typename NextTokenT = Aws::String>
58 void SetNextToken(NextTokenT&& value) {
59 m_nextTokenHasBeenSet = true;
60 m_nextToken = std::forward<NextTokenT>(value);
61 }
62 template <typename NextTokenT = Aws::String>
64 SetNextToken(std::forward<NextTokenT>(value));
65 return *this;
66 }
68
70
74 inline const Provider& GetProvider() const { return m_provider; }
75 inline bool ProviderHasBeenSet() const { return m_providerHasBeenSet; }
76 template <typename ProviderT = Provider>
77 void SetProvider(ProviderT&& value) {
78 m_providerHasBeenSet = true;
79 m_provider = std::forward<ProviderT>(value);
80 }
81 template <typename ProviderT = Provider>
83 SetProvider(std::forward<ProviderT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetLocation() const { return m_location; }
94 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
95 template <typename LocationT = Aws::String>
96 void SetLocation(LocationT&& value) {
97 m_locationHasBeenSet = true;
98 m_location = std::forward<LocationT>(value);
99 }
100 template <typename LocationT = Aws::String>
102 SetLocation(std::forward<LocationT>(value));
103 return *this;
104 }
106 private:
107 int m_maxResults{0};
108
109 Aws::String m_nextToken;
110
111 Provider m_provider;
112
113 Aws::String m_location;
114 bool m_maxResultsHasBeenSet = false;
115 bool m_nextTokenHasBeenSet = false;
116 bool m_providerHasBeenSet = false;
117 bool m_locationHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace Interconnect
122} // namespace Aws
AWS_INTERCONNECT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_INTERCONNECT_API ListEnvironmentsRequest()=default
ListEnvironmentsRequest & WithLocation(LocationT &&value)
virtual const char * GetServiceRequestName() const override
ListEnvironmentsRequest & WithProvider(ProviderT &&value)
AWS_INTERCONNECT_API Aws::String SerializePayload() const override
ListEnvironmentsRequest & WithNextToken(NextTokenT &&value)
ListEnvironmentsRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String