AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
DescribeCapacityProvidersRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
25 public:
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 "DescribeCapacityProviders"; }
33
35
37
38
44 inline const Aws::Vector<Aws::String>& GetCapacityProviders() const{ return m_capacityProviders; }
45
51 inline bool CapacityProvidersHasBeenSet() const { return m_capacityProvidersHasBeenSet; }
52
58 inline void SetCapacityProviders(const Aws::Vector<Aws::String>& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = value; }
59
65 inline void SetCapacityProviders(Aws::Vector<Aws::String>&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = std::move(value); }
66
73
80
86 inline DescribeCapacityProvidersRequest& AddCapacityProviders(const Aws::String& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
87
93 inline DescribeCapacityProvidersRequest& AddCapacityProviders(Aws::String&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(std::move(value)); return *this; }
94
100 inline DescribeCapacityProvidersRequest& AddCapacityProviders(const char* value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
101
102
108 inline const Aws::Vector<CapacityProviderField>& GetInclude() const{ return m_include; }
109
115 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
116
122 inline void SetInclude(const Aws::Vector<CapacityProviderField>& value) { m_includeHasBeenSet = true; m_include = value; }
123
129 inline void SetInclude(Aws::Vector<CapacityProviderField>&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
130
137
144
150 inline DescribeCapacityProvidersRequest& AddInclude(const CapacityProviderField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
151
157 inline DescribeCapacityProvidersRequest& AddInclude(CapacityProviderField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; }
158
159
172 inline int GetMaxResults() const{ return m_maxResults; }
173
186 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
187
200 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
201
214 inline DescribeCapacityProvidersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
215
216
226 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
227
237 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
238
248 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
249
259 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
260
270 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
271
281 inline DescribeCapacityProvidersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
282
292 inline DescribeCapacityProvidersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
293
303 inline DescribeCapacityProvidersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
304
305 private:
306
307 Aws::Vector<Aws::String> m_capacityProviders;
308 bool m_capacityProvidersHasBeenSet = false;
309
311 bool m_includeHasBeenSet = false;
312
313 int m_maxResults;
314 bool m_maxResultsHasBeenSet = false;
315
316 Aws::String m_nextToken;
317 bool m_nextTokenHasBeenSet = false;
318 };
319
320} // namespace Model
321} // namespace ECS
322} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
DescribeCapacityProvidersRequest & WithInclude(Aws::Vector< CapacityProviderField > &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetCapacityProviders(Aws::Vector< Aws::String > &&value)
DescribeCapacityProvidersRequest & WithNextToken(Aws::String &&value)
DescribeCapacityProvidersRequest & AddCapacityProviders(const char *value)
const Aws::Vector< CapacityProviderField > & GetInclude() const
void SetInclude(const Aws::Vector< CapacityProviderField > &value)
void SetCapacityProviders(const Aws::Vector< Aws::String > &value)
DescribeCapacityProvidersRequest & WithNextToken(const char *value)
void SetInclude(Aws::Vector< CapacityProviderField > &&value)
AWS_ECS_API Aws::String SerializePayload() const override
DescribeCapacityProvidersRequest & WithMaxResults(int value)
const Aws::Vector< Aws::String > & GetCapacityProviders() const
DescribeCapacityProvidersRequest & WithNextToken(const Aws::String &value)
DescribeCapacityProvidersRequest & WithCapacityProviders(const Aws::Vector< Aws::String > &value)
DescribeCapacityProvidersRequest & AddCapacityProviders(Aws::String &&value)
DescribeCapacityProvidersRequest & AddInclude(const CapacityProviderField &value)
DescribeCapacityProvidersRequest & AddCapacityProviders(const Aws::String &value)
DescribeCapacityProvidersRequest & WithCapacityProviders(Aws::Vector< Aws::String > &&value)
DescribeCapacityProvidersRequest & AddInclude(CapacityProviderField &&value)
DescribeCapacityProvidersRequest & WithInclude(const Aws::Vector< CapacityProviderField > &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