AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribeServicesResult.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecs/model/Service.h>
11#include <aws/ecs/model/Failure.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ECS
27{
28namespace Model
29{
31 {
32 public:
36
37
39
42 inline const Aws::Vector<Service>& GetServices() const{ return m_services; }
43 inline void SetServices(const Aws::Vector<Service>& value) { m_services = value; }
44 inline void SetServices(Aws::Vector<Service>&& value) { m_services = std::move(value); }
45 inline DescribeServicesResult& WithServices(const Aws::Vector<Service>& value) { SetServices(value); return *this;}
46 inline DescribeServicesResult& WithServices(Aws::Vector<Service>&& value) { SetServices(std::move(value)); return *this;}
47 inline DescribeServicesResult& AddServices(const Service& value) { m_services.push_back(value); return *this; }
48 inline DescribeServicesResult& AddServices(Service&& value) { m_services.push_back(std::move(value)); return *this; }
50
52
55 inline const Aws::Vector<Failure>& GetFailures() const{ return m_failures; }
56 inline void SetFailures(const Aws::Vector<Failure>& value) { m_failures = value; }
57 inline void SetFailures(Aws::Vector<Failure>&& value) { m_failures = std::move(value); }
58 inline DescribeServicesResult& WithFailures(const Aws::Vector<Failure>& value) { SetFailures(value); return *this;}
59 inline DescribeServicesResult& WithFailures(Aws::Vector<Failure>&& value) { SetFailures(std::move(value)); return *this;}
60 inline DescribeServicesResult& AddFailures(const Failure& value) { m_failures.push_back(value); return *this; }
61 inline DescribeServicesResult& AddFailures(Failure&& value) { m_failures.push_back(std::move(value)); return *this; }
63
65
66 inline const Aws::String& GetRequestId() const{ return m_requestId; }
67 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
68 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
69 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
70 inline DescribeServicesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
71 inline DescribeServicesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
72 inline DescribeServicesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
74 private:
75
76 Aws::Vector<Service> m_services;
77
78 Aws::Vector<Failure> m_failures;
79
80 Aws::String m_requestId;
81 };
82
83} // namespace Model
84} // namespace ECS
85} // namespace Aws
DescribeServicesResult & WithRequestId(const char *value)
DescribeServicesResult & AddFailures(const Failure &value)
DescribeServicesResult & WithFailures(const Aws::Vector< Failure > &value)
AWS_ECS_API DescribeServicesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetRequestId(const Aws::String &value)
const Aws::Vector< Failure > & GetFailures() const
void SetServices(Aws::Vector< Service > &&value)
void SetServices(const Aws::Vector< Service > &value)
void SetFailures(const Aws::Vector< Failure > &value)
DescribeServicesResult & WithFailures(Aws::Vector< Failure > &&value)
void SetFailures(Aws::Vector< Failure > &&value)
AWS_ECS_API DescribeServicesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeServicesResult & AddServices(Service &&value)
DescribeServicesResult & AddFailures(Failure &&value)
DescribeServicesResult & AddServices(const Service &value)
const Aws::Vector< Service > & GetServices() const
DescribeServicesResult & WithRequestId(Aws::String &&value)
DescribeServicesResult & WithServices(const Aws::Vector< Service > &value)
DescribeServicesResult & WithServices(Aws::Vector< Service > &&value)
DescribeServicesResult & WithRequestId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue