AWS SDK for C++  1.9.156
AWS SDK for C++
DescribeServicesResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
10 #include <aws/ecs/model/Failure.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace ECS
26 {
27 namespace Model
28 {
30  {
31  public:
35 
36 
40  inline const Aws::Vector<Service>& GetServices() const{ return m_services; }
41 
45  inline void SetServices(const Aws::Vector<Service>& value) { m_services = value; }
46 
50  inline void SetServices(Aws::Vector<Service>&& value) { m_services = std::move(value); }
51 
55  inline DescribeServicesResult& WithServices(const Aws::Vector<Service>& value) { SetServices(value); return *this;}
56 
60  inline DescribeServicesResult& WithServices(Aws::Vector<Service>&& value) { SetServices(std::move(value)); return *this;}
61 
65  inline DescribeServicesResult& AddServices(const Service& value) { m_services.push_back(value); return *this; }
66 
70  inline DescribeServicesResult& AddServices(Service&& value) { m_services.push_back(std::move(value)); return *this; }
71 
72 
76  inline const Aws::Vector<Failure>& GetFailures() const{ return m_failures; }
77 
81  inline void SetFailures(const Aws::Vector<Failure>& value) { m_failures = value; }
82 
86  inline void SetFailures(Aws::Vector<Failure>&& value) { m_failures = std::move(value); }
87 
91  inline DescribeServicesResult& WithFailures(const Aws::Vector<Failure>& value) { SetFailures(value); return *this;}
92 
96  inline DescribeServicesResult& WithFailures(Aws::Vector<Failure>&& value) { SetFailures(std::move(value)); return *this;}
97 
101  inline DescribeServicesResult& AddFailures(const Failure& value) { m_failures.push_back(value); return *this; }
102 
106  inline DescribeServicesResult& AddFailures(Failure&& value) { m_failures.push_back(std::move(value)); return *this; }
107 
108  private:
109 
110  Aws::Vector<Service> m_services;
111 
112  Aws::Vector<Failure> m_failures;
113  };
114 
115 } // namespace Model
116 } // namespace ECS
117 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::ECS::Model::DescribeServicesResult::WithServices
DescribeServicesResult & WithServices(const Aws::Vector< Service > &value)
Definition: DescribeServicesResult.h:55
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::ECS::Model::DescribeServicesResult::WithFailures
DescribeServicesResult & WithFailures(Aws::Vector< Failure > &&value)
Definition: DescribeServicesResult.h:96
Aws::ECS::Model::DescribeServicesResult::SetFailures
void SetFailures(Aws::Vector< Failure > &&value)
Definition: DescribeServicesResult.h:86
Aws::ECS::Model::DescribeServicesResult::operator=
DescribeServicesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::DescribeServicesResult::DescribeServicesResult
DescribeServicesResult()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::DescribeServicesResult::GetServices
const Aws::Vector< Service > & GetServices() const
Definition: DescribeServicesResult.h:40
Aws::ECS::Model::DescribeServicesResult::SetFailures
void SetFailures(const Aws::Vector< Failure > &value)
Definition: DescribeServicesResult.h:81
Aws::ECS::Model::DescribeServicesResult::AddServices
DescribeServicesResult & AddServices(Service &&value)
Definition: DescribeServicesResult.h:70
Aws::ECS::Model::DescribeServicesResult::SetServices
void SetServices(const Aws::Vector< Service > &value)
Definition: DescribeServicesResult.h:45
Aws::ECS::Model::DescribeServicesResult::AddFailures
DescribeServicesResult & AddFailures(const Failure &value)
Definition: DescribeServicesResult.h:101
Aws::ECS::Model::DescribeServicesResult::AddServices
DescribeServicesResult & AddServices(const Service &value)
Definition: DescribeServicesResult.h:65
Aws::ECS::Model::DescribeServicesResult::DescribeServicesResult
DescribeServicesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ECS::Model::Service
Definition: Service.h:49
Service.h
Failure.h
Aws::ECS::Model::DescribeServicesResult::WithServices
DescribeServicesResult & WithServices(Aws::Vector< Service > &&value)
Definition: DescribeServicesResult.h:60
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::Failure
Definition: Failure.h:35
Aws::ECS::Model::DescribeServicesResult::SetServices
void SetServices(Aws::Vector< Service > &&value)
Definition: DescribeServicesResult.h:50
Aws::ECS::Model::DescribeServicesResult::GetFailures
const Aws::Vector< Failure > & GetFailures() const
Definition: DescribeServicesResult.h:76
Aws::ECS::Model::DescribeServicesResult::AddFailures
DescribeServicesResult & AddFailures(Failure &&value)
Definition: DescribeServicesResult.h:106
Aws::ECS::Model::DescribeServicesResult
Definition: DescribeServicesResult.h:30
ECS_EXPORTS.h
Aws::ECS::Model::DescribeServicesResult::WithFailures
DescribeServicesResult & WithFailures(const Aws::Vector< Failure > &value)
Definition: DescribeServicesResult.h:91