AWS SDK for C++

AWS SDK for C++ Version 1.11.916

Loading...
Searching...
No Matches
ListGatewaysRequest.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/ecs/ECSRequest.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/GatewayStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ECS {
17namespace Model {
18
22 public:
23 AWS_ECS_API ListGatewaysRequest() = 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 "ListGateways"; }
30
31 AWS_ECS_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::Vector<Aws::String>& GetNames() const { return m_names; }
41 inline bool NamesHasBeenSet() const { return m_namesHasBeenSet; }
42 template <typename NamesT = Aws::Vector<Aws::String>>
43 void SetNames(NamesT&& value) {
44 m_namesHasBeenSet = true;
45 m_names = std::forward<NamesT>(value);
46 }
47 template <typename NamesT = Aws::Vector<Aws::String>>
48 ListGatewaysRequest& WithNames(NamesT&& value) {
49 SetNames(std::forward<NamesT>(value));
50 return *this;
51 }
52 template <typename NamesT = Aws::String>
53 ListGatewaysRequest& AddNames(NamesT&& value) {
54 m_namesHasBeenSet = true;
55 m_names.emplace_back(std::forward<NamesT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<GatewayStatus>& GetStatus() const { return m_status; }
65 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
66 template <typename StatusT = Aws::Vector<GatewayStatus>>
67 void SetStatus(StatusT&& value) {
68 m_statusHasBeenSet = true;
69 m_status = std::forward<StatusT>(value);
70 }
71 template <typename StatusT = Aws::Vector<GatewayStatus>>
72 ListGatewaysRequest& WithStatus(StatusT&& value) {
73 SetStatus(std::forward<StatusT>(value));
74 return *this;
75 }
77 m_statusHasBeenSet = true;
78 m_status.push_back(value);
79 return *this;
80 }
82
84
88 inline int GetMaxResults() const { return m_maxResults; }
89 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
90 inline void SetMaxResults(int value) {
91 m_maxResultsHasBeenSet = true;
92 m_maxResults = value;
93 }
95 SetMaxResults(value);
96 return *this;
97 }
99
101
107 inline const Aws::String& GetNextToken() const { return m_nextToken; }
108 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
109 template <typename NextTokenT = Aws::String>
110 void SetNextToken(NextTokenT&& value) {
111 m_nextTokenHasBeenSet = true;
112 m_nextToken = std::forward<NextTokenT>(value);
113 }
114 template <typename NextTokenT = Aws::String>
115 ListGatewaysRequest& WithNextToken(NextTokenT&& value) {
116 SetNextToken(std::forward<NextTokenT>(value));
117 return *this;
118 }
120 private:
122
124
125 int m_maxResults{0};
126
127 Aws::String m_nextToken;
128 bool m_namesHasBeenSet = false;
129 bool m_statusHasBeenSet = false;
130 bool m_maxResultsHasBeenSet = false;
131 bool m_nextTokenHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace ECS
136} // namespace Aws
ListGatewaysRequest & AddStatus(GatewayStatus value)
ListGatewaysRequest & WithMaxResults(int value)
ListGatewaysRequest & WithStatus(StatusT &&value)
const Aws::String & GetNextToken() const
ListGatewaysRequest & WithNames(NamesT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
const Aws::Vector< GatewayStatus > & GetStatus() const
const Aws::Vector< Aws::String > & GetNames() const
ListGatewaysRequest & AddNames(NamesT &&value)
virtual const char * GetServiceRequestName() const override
AWS_ECS_API ListGatewaysRequest()=default
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListGatewaysRequest & WithNextToken(NextTokenT &&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