AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
DescribeCapacityProvidersRequest.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/CapacityProviderField.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ECS {
17namespace Model {
18
22 public:
23 AWS_ECS_API DescribeCapacityProvidersRequest() = 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 "DescribeCapacityProviders"; }
30
31 AWS_ECS_API Aws::String SerializePayload() const override;
32
34
36
41 inline const Aws::Vector<Aws::String>& GetCapacityProviders() const { return m_capacityProviders; }
42 inline bool CapacityProvidersHasBeenSet() const { return m_capacityProvidersHasBeenSet; }
43 template <typename CapacityProvidersT = Aws::Vector<Aws::String>>
44 void SetCapacityProviders(CapacityProvidersT&& value) {
45 m_capacityProvidersHasBeenSet = true;
46 m_capacityProviders = std::forward<CapacityProvidersT>(value);
47 }
48 template <typename CapacityProvidersT = Aws::Vector<Aws::String>>
50 SetCapacityProviders(std::forward<CapacityProvidersT>(value));
51 return *this;
52 }
53 template <typename CapacityProvidersT = Aws::String>
55 m_capacityProvidersHasBeenSet = true;
56 m_capacityProviders.emplace_back(std::forward<CapacityProvidersT>(value));
57 return *this;
58 }
60
62
67 inline const Aws::String& GetCluster() const { return m_cluster; }
68 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
69 template <typename ClusterT = Aws::String>
70 void SetCluster(ClusterT&& value) {
71 m_clusterHasBeenSet = true;
72 m_cluster = std::forward<ClusterT>(value);
73 }
74 template <typename ClusterT = Aws::String>
76 SetCluster(std::forward<ClusterT>(value));
77 return *this;
78 }
80
82
87 inline const Aws::Vector<CapacityProviderField>& GetInclude() const { return m_include; }
88 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
89 template <typename IncludeT = Aws::Vector<CapacityProviderField>>
90 void SetInclude(IncludeT&& value) {
91 m_includeHasBeenSet = true;
92 m_include = std::forward<IncludeT>(value);
93 }
94 template <typename IncludeT = Aws::Vector<CapacityProviderField>>
96 SetInclude(std::forward<IncludeT>(value));
97 return *this;
98 }
100 m_includeHasBeenSet = true;
101 m_include.push_back(value);
102 return *this;
103 }
105
107
119 inline int GetMaxResults() const { return m_maxResults; }
120 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
121 inline void SetMaxResults(int value) {
122 m_maxResultsHasBeenSet = true;
123 m_maxResults = value;
124 }
126 SetMaxResults(value);
127 return *this;
128 }
130
132
141 inline const Aws::String& GetNextToken() const { return m_nextToken; }
142 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
143 template <typename NextTokenT = Aws::String>
144 void SetNextToken(NextTokenT&& value) {
145 m_nextTokenHasBeenSet = true;
146 m_nextToken = std::forward<NextTokenT>(value);
147 }
148 template <typename NextTokenT = Aws::String>
150 SetNextToken(std::forward<NextTokenT>(value));
151 return *this;
152 }
154 private:
155 Aws::Vector<Aws::String> m_capacityProviders;
156
157 Aws::String m_cluster;
158
160
161 int m_maxResults{0};
162
163 Aws::String m_nextToken;
164 bool m_capacityProvidersHasBeenSet = false;
165 bool m_clusterHasBeenSet = false;
166 bool m_includeHasBeenSet = false;
167 bool m_maxResultsHasBeenSet = false;
168 bool m_nextTokenHasBeenSet = false;
169};
170
171} // namespace Model
172} // namespace ECS
173} // namespace Aws
DescribeCapacityProvidersRequest & WithNextToken(NextTokenT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
DescribeCapacityProvidersRequest & WithInclude(IncludeT &&value)
const Aws::Vector< CapacityProviderField > & GetInclude() const
AWS_ECS_API Aws::String SerializePayload() const override
DescribeCapacityProvidersRequest & AddCapacityProviders(CapacityProvidersT &&value)
DescribeCapacityProvidersRequest & WithMaxResults(int value)
const Aws::Vector< Aws::String > & GetCapacityProviders() const
DescribeCapacityProvidersRequest & WithCluster(ClusterT &&value)
DescribeCapacityProvidersRequest & WithCapacityProviders(CapacityProvidersT &&value)
DescribeCapacityProvidersRequest & AddInclude(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