AWS SDK for C++  1.9.161
AWS SDK for C++
DescribeCapacityProvidersResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
11 #include <aws/ecs/model/Failure.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 template<typename RESULT_TYPE>
17 class AmazonWebServiceResult;
18 
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24 } // namespace Json
25 } // namespace Utils
26 namespace ECS
27 {
28 namespace Model
29 {
31  {
32  public:
36 
37 
41  inline const Aws::Vector<CapacityProvider>& GetCapacityProviders() const{ return m_capacityProviders; }
42 
46  inline void SetCapacityProviders(const Aws::Vector<CapacityProvider>& value) { m_capacityProviders = value; }
47 
51  inline void SetCapacityProviders(Aws::Vector<CapacityProvider>&& value) { m_capacityProviders = std::move(value); }
52 
56  inline DescribeCapacityProvidersResult& WithCapacityProviders(const Aws::Vector<CapacityProvider>& value) { SetCapacityProviders(value); return *this;}
57 
61  inline DescribeCapacityProvidersResult& WithCapacityProviders(Aws::Vector<CapacityProvider>&& value) { SetCapacityProviders(std::move(value)); return *this;}
62 
66  inline DescribeCapacityProvidersResult& AddCapacityProviders(const CapacityProvider& value) { m_capacityProviders.push_back(value); return *this; }
67 
71  inline DescribeCapacityProvidersResult& AddCapacityProviders(CapacityProvider&& value) { m_capacityProviders.push_back(std::move(value)); return *this; }
72 
73 
77  inline const Aws::Vector<Failure>& GetFailures() const{ return m_failures; }
78 
82  inline void SetFailures(const Aws::Vector<Failure>& value) { m_failures = value; }
83 
87  inline void SetFailures(Aws::Vector<Failure>&& value) { m_failures = std::move(value); }
88 
92  inline DescribeCapacityProvidersResult& WithFailures(const Aws::Vector<Failure>& value) { SetFailures(value); return *this;}
93 
97  inline DescribeCapacityProvidersResult& WithFailures(Aws::Vector<Failure>&& value) { SetFailures(std::move(value)); return *this;}
98 
102  inline DescribeCapacityProvidersResult& AddFailures(const Failure& value) { m_failures.push_back(value); return *this; }
103 
107  inline DescribeCapacityProvidersResult& AddFailures(Failure&& value) { m_failures.push_back(std::move(value)); return *this; }
108 
109 
117  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
118 
126  inline void SetNextToken(const Aws::String& value) { m_nextToken = value; }
127 
135  inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); }
136 
144  inline void SetNextToken(const char* value) { m_nextToken.assign(value); }
145 
153  inline DescribeCapacityProvidersResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
154 
162  inline DescribeCapacityProvidersResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
163 
171  inline DescribeCapacityProvidersResult& WithNextToken(const char* value) { SetNextToken(value); return *this;}
172 
173  private:
174 
175  Aws::Vector<CapacityProvider> m_capacityProviders;
176 
177  Aws::Vector<Failure> m_failures;
178 
179  Aws::String m_nextToken;
180  };
181 
182 } // namespace Model
183 } // namespace ECS
184 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECS::Model::DescribeCapacityProvidersResult::GetCapacityProviders
const Aws::Vector< CapacityProvider > & GetCapacityProviders() const
Definition: DescribeCapacityProvidersResult.h:41
Aws::ECS::Model::DescribeCapacityProvidersResult::AddFailures
DescribeCapacityProvidersResult & AddFailures(Failure &&value)
Definition: DescribeCapacityProvidersResult.h:107
Aws::ECS::Model::DescribeCapacityProvidersResult::WithFailures
DescribeCapacityProvidersResult & WithFailures(const Aws::Vector< Failure > &value)
Definition: DescribeCapacityProvidersResult.h:92
Aws::ECS::Model::DescribeCapacityProvidersResult::WithFailures
DescribeCapacityProvidersResult & WithFailures(Aws::Vector< Failure > &&value)
Definition: DescribeCapacityProvidersResult.h:97
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::DescribeCapacityProvidersResult::WithCapacityProviders
DescribeCapacityProvidersResult & WithCapacityProviders(Aws::Vector< CapacityProvider > &&value)
Definition: DescribeCapacityProvidersResult.h:61
Aws::ECS::Model::DescribeCapacityProvidersResult::DescribeCapacityProvidersResult
DescribeCapacityProvidersResult()
Aws::ECS::Model::DescribeCapacityProvidersResult::DescribeCapacityProvidersResult
DescribeCapacityProvidersResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::DescribeCapacityProvidersResult::GetFailures
const Aws::Vector< Failure > & GetFailures() const
Definition: DescribeCapacityProvidersResult.h:77
Aws::ECS::Model::DescribeCapacityProvidersResult::operator=
DescribeCapacityProvidersResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECS::Model::DescribeCapacityProvidersResult::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeCapacityProvidersResult.h:144
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DescribeCapacityProvidersResult::AddFailures
DescribeCapacityProvidersResult & AddFailures(const Failure &value)
Definition: DescribeCapacityProvidersResult.h:102
Aws::ECS::Model::DescribeCapacityProvidersResult::WithNextToken
DescribeCapacityProvidersResult & WithNextToken(const Aws::String &value)
Definition: DescribeCapacityProvidersResult.h:153
Aws::ECS::Model::DescribeCapacityProvidersResult::WithNextToken
DescribeCapacityProvidersResult & WithNextToken(Aws::String &&value)
Definition: DescribeCapacityProvidersResult.h:162
Aws::ECS::Model::DescribeCapacityProvidersResult::WithCapacityProviders
DescribeCapacityProvidersResult & WithCapacityProviders(const Aws::Vector< CapacityProvider > &value)
Definition: DescribeCapacityProvidersResult.h:56
Aws::ECS::Model::DescribeCapacityProvidersResult::SetFailures
void SetFailures(Aws::Vector< Failure > &&value)
Definition: DescribeCapacityProvidersResult.h:87
Aws::ECS::Model::DescribeCapacityProvidersResult::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeCapacityProvidersResult.h:126
AWSString.h
Aws::ECS::Model::DescribeCapacityProvidersResult::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeCapacityProvidersResult.h:135
Failure.h
Aws::ECS::Model::DescribeCapacityProvidersResult::SetFailures
void SetFailures(const Aws::Vector< Failure > &value)
Definition: DescribeCapacityProvidersResult.h:82
Aws::ECS::Model::CapacityProvider
Definition: CapacityProvider.h:37
Aws::ECS::Model::DescribeCapacityProvidersResult::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeCapacityProvidersResult.h:117
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws::ECS::Model::DescribeCapacityProvidersResult::WithNextToken
DescribeCapacityProvidersResult & WithNextToken(const char *value)
Definition: DescribeCapacityProvidersResult.h:171
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Failure
Definition: Failure.h:35
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::DescribeCapacityProvidersResult::SetCapacityProviders
void SetCapacityProviders(const Aws::Vector< CapacityProvider > &value)
Definition: DescribeCapacityProvidersResult.h:46
Aws::ECS::Model::DescribeCapacityProvidersResult::SetCapacityProviders
void SetCapacityProviders(Aws::Vector< CapacityProvider > &&value)
Definition: DescribeCapacityProvidersResult.h:51
CapacityProvider.h
Aws::ECS::Model::DescribeCapacityProvidersResult
Definition: DescribeCapacityProvidersResult.h:31
Aws::ECS::Model::DescribeCapacityProvidersResult::AddCapacityProviders
DescribeCapacityProvidersResult & AddCapacityProviders(CapacityProvider &&value)
Definition: DescribeCapacityProvidersResult.h:71
ECS_EXPORTS.h
Aws::ECS::Model::DescribeCapacityProvidersResult::AddCapacityProviders
DescribeCapacityProvidersResult & AddCapacityProviders(const CapacityProvider &value)
Definition: DescribeCapacityProvidersResult.h:66