AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeCapacityProvidersRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ecs/model/CapacityProviderField.h>
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
34 AWS_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
45 inline const Aws::Vector<Aws::String>& GetCapacityProviders() const{ return m_capacityProviders; }
46 inline bool CapacityProvidersHasBeenSet() const { return m_capacityProvidersHasBeenSet; }
47 inline void SetCapacityProviders(const Aws::Vector<Aws::String>& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = value; }
48 inline void SetCapacityProviders(Aws::Vector<Aws::String>&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders = std::move(value); }
51 inline DescribeCapacityProvidersRequest& AddCapacityProviders(const Aws::String& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
52 inline DescribeCapacityProvidersRequest& AddCapacityProviders(Aws::String&& value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(std::move(value)); return *this; }
53 inline DescribeCapacityProvidersRequest& AddCapacityProviders(const char* value) { m_capacityProvidersHasBeenSet = true; m_capacityProviders.push_back(value); return *this; }
55
57
62 inline const Aws::Vector<CapacityProviderField>& GetInclude() const{ return m_include; }
63 inline bool IncludeHasBeenSet() const { return m_includeHasBeenSet; }
64 inline void SetInclude(const Aws::Vector<CapacityProviderField>& value) { m_includeHasBeenSet = true; m_include = value; }
65 inline void SetInclude(Aws::Vector<CapacityProviderField>&& value) { m_includeHasBeenSet = true; m_include = std::move(value); }
68 inline DescribeCapacityProvidersRequest& AddInclude(const CapacityProviderField& value) { m_includeHasBeenSet = true; m_include.push_back(value); return *this; }
69 inline DescribeCapacityProvidersRequest& AddInclude(CapacityProviderField&& value) { m_includeHasBeenSet = true; m_include.push_back(std::move(value)); return *this; }
71
73
85 inline int GetMaxResults() const{ return m_maxResults; }
86 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
87 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
88 inline DescribeCapacityProvidersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
90
92
101 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
102 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
103 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
104 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
105 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
106 inline DescribeCapacityProvidersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
107 inline DescribeCapacityProvidersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
108 inline DescribeCapacityProvidersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
110 private:
111
112 Aws::Vector<Aws::String> m_capacityProviders;
113 bool m_capacityProvidersHasBeenSet = false;
114
116 bool m_includeHasBeenSet = false;
117
118 int m_maxResults;
119 bool m_maxResultsHasBeenSet = false;
120
121 Aws::String m_nextToken;
122 bool m_nextTokenHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace ECS
127} // namespace Aws
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