AWS SDK for C++  1.9.1
AWS SDK for C++
DescribeCapacityProvidersRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECS
17 {
18 namespace 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 
34  Aws::String SerializePayload() const override;
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 
72  inline DescribeCapacityProvidersRequest& WithCapacityProviders(const Aws::Vector<Aws::String>& value) { SetCapacityProviders(value); return *this;}
73 
79  inline DescribeCapacityProvidersRequest& WithCapacityProviders(Aws::Vector<Aws::String>&& value) { SetCapacityProviders(std::move(value)); return *this;}
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 
136  inline DescribeCapacityProvidersRequest& WithInclude(const Aws::Vector<CapacityProviderField>& value) { SetInclude(value); return *this;}
137 
143  inline DescribeCapacityProvidersRequest& WithInclude(Aws::Vector<CapacityProviderField>&& value) { SetInclude(std::move(value)); return *this;}
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;
309 
311  bool m_includeHasBeenSet;
312 
313  int m_maxResults;
314  bool m_maxResultsHasBeenSet;
315 
316  Aws::String m_nextToken;
317  bool m_nextTokenHasBeenSet;
318  };
319 
320 } // namespace Model
321 } // namespace ECS
322 } // namespace Aws
Aws::ECS::Model::DescribeCapacityProvidersRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeCapacityProvidersRequest.h:186
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::DescribeCapacityProvidersRequest::GetCapacityProviders
const Aws::Vector< Aws::String > & GetCapacityProviders() const
Definition: DescribeCapacityProvidersRequest.h:44
Aws::ECS::Model::DescribeCapacityProvidersRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeCapacityProvidersRequest.h:32
Aws::ECS::Model::DescribeCapacityProvidersRequest::SetCapacityProviders
void SetCapacityProviders(Aws::Vector< Aws::String > &&value)
Definition: DescribeCapacityProvidersRequest.h:65
Aws::ECS::Model::DescribeCapacityProvidersRequest::AddCapacityProviders
DescribeCapacityProvidersRequest & AddCapacityProviders(const Aws::String &value)
Definition: DescribeCapacityProvidersRequest.h:86
Aws::ECS::Model::DescribeCapacityProvidersRequest::WithCapacityProviders
DescribeCapacityProvidersRequest & WithCapacityProviders(const Aws::Vector< Aws::String > &value)
Definition: DescribeCapacityProvidersRequest.h:72
Aws::ECS::Model::DescribeCapacityProvidersRequest::SetCapacityProviders
void SetCapacityProviders(const Aws::Vector< Aws::String > &value)
Definition: DescribeCapacityProvidersRequest.h:58
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::DescribeCapacityProvidersRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeCapacityProvidersRequest.h:172
Aws::ECS::Model::CapacityProviderField
CapacityProviderField
Definition: CapacityProviderField.h:17
Aws::ECS::Model::DescribeCapacityProvidersRequest
Definition: DescribeCapacityProvidersRequest.h:24
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DescribeCapacityProvidersRequest::WithCapacityProviders
DescribeCapacityProvidersRequest & WithCapacityProviders(Aws::Vector< Aws::String > &&value)
Definition: DescribeCapacityProvidersRequest.h:79
Aws::ECS::Model::DescribeCapacityProvidersRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeCapacityProvidersRequest.h:259
Aws::ECS::Model::DescribeCapacityProvidersRequest::SetInclude
void SetInclude(Aws::Vector< CapacityProviderField > &&value)
Definition: DescribeCapacityProvidersRequest.h:129
Aws::ECS::Model::DescribeCapacityProvidersRequest::WithNextToken
DescribeCapacityProvidersRequest & WithNextToken(Aws::String &&value)
Definition: DescribeCapacityProvidersRequest.h:292
Aws::ECS::Model::DescribeCapacityProvidersRequest::IncludeHasBeenSet
bool IncludeHasBeenSet() const
Definition: DescribeCapacityProvidersRequest.h:115
Aws::ECS::Model::DescribeCapacityProvidersRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeCapacityProvidersRequest.h:270
Aws::ECS::Model::DescribeCapacityProvidersRequest::CapacityProvidersHasBeenSet
bool CapacityProvidersHasBeenSet() const
Definition: DescribeCapacityProvidersRequest.h:51
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::DescribeCapacityProvidersRequest::AddCapacityProviders
DescribeCapacityProvidersRequest & AddCapacityProviders(const char *value)
Definition: DescribeCapacityProvidersRequest.h:100
Aws::ECS::Model::DescribeCapacityProvidersRequest::GetInclude
const Aws::Vector< CapacityProviderField > & GetInclude() const
Definition: DescribeCapacityProvidersRequest.h:108
Aws::ECS::Model::DescribeCapacityProvidersRequest::AddInclude
DescribeCapacityProvidersRequest & AddInclude(const CapacityProviderField &value)
Definition: DescribeCapacityProvidersRequest.h:150
CapacityProviderField.h
AWSString.h
Aws::ECS::Model::DescribeCapacityProvidersRequest::WithNextToken
DescribeCapacityProvidersRequest & WithNextToken(const Aws::String &value)
Definition: DescribeCapacityProvidersRequest.h:281
Aws::ECS::Model::DescribeCapacityProvidersRequest::WithNextToken
DescribeCapacityProvidersRequest & WithNextToken(const char *value)
Definition: DescribeCapacityProvidersRequest.h:303
Aws::ECS::Model::DescribeCapacityProvidersRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::DescribeCapacityProvidersRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::DescribeCapacityProvidersRequest::WithMaxResults
DescribeCapacityProvidersRequest & WithMaxResults(int value)
Definition: DescribeCapacityProvidersRequest.h:214
Aws::ECS::Model::DescribeCapacityProvidersRequest::DescribeCapacityProvidersRequest
DescribeCapacityProvidersRequest()
Aws::ECS::Model::DescribeCapacityProvidersRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeCapacityProvidersRequest.h:248
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::DescribeCapacityProvidersRequest::SetInclude
void SetInclude(const Aws::Vector< CapacityProviderField > &value)
Definition: DescribeCapacityProvidersRequest.h:122
Aws::ECS::Model::DescribeCapacityProvidersRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeCapacityProvidersRequest.h:226
Aws::ECS::Model::DescribeCapacityProvidersRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeCapacityProvidersRequest.h:237
Aws::ECS::Model::DescribeCapacityProvidersRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeCapacityProvidersRequest.h:200
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::DescribeCapacityProvidersRequest::WithInclude
DescribeCapacityProvidersRequest & WithInclude(Aws::Vector< CapacityProviderField > &&value)
Definition: DescribeCapacityProvidersRequest.h:143
Aws::ECS::Model::DescribeCapacityProvidersRequest::AddCapacityProviders
DescribeCapacityProvidersRequest & AddCapacityProviders(Aws::String &&value)
Definition: DescribeCapacityProvidersRequest.h:93
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::DescribeCapacityProvidersRequest::WithInclude
DescribeCapacityProvidersRequest & WithInclude(const Aws::Vector< CapacityProviderField > &value)
Definition: DescribeCapacityProvidersRequest.h:136
Aws::ECS::Model::DescribeCapacityProvidersRequest::AddInclude
DescribeCapacityProvidersRequest & AddInclude(CapacityProviderField &&value)
Definition: DescribeCapacityProvidersRequest.h:157