AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
DescribeServiceDeploymentsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/Failure.h>
12#include <aws/ecs/model/ServiceDeployment.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ECS {
26namespace Model {
28 public:
29 AWS_ECS_API DescribeServiceDeploymentsResult() = default;
32
34
37 inline const Aws::Vector<ServiceDeployment>& GetServiceDeployments() const { return m_serviceDeployments; }
38 template <typename ServiceDeploymentsT = Aws::Vector<ServiceDeployment>>
39 void SetServiceDeployments(ServiceDeploymentsT&& value) {
40 m_serviceDeploymentsHasBeenSet = true;
41 m_serviceDeployments = std::forward<ServiceDeploymentsT>(value);
42 }
43 template <typename ServiceDeploymentsT = Aws::Vector<ServiceDeployment>>
45 SetServiceDeployments(std::forward<ServiceDeploymentsT>(value));
46 return *this;
47 }
48 template <typename ServiceDeploymentsT = ServiceDeployment>
50 m_serviceDeploymentsHasBeenSet = true;
51 m_serviceDeployments.emplace_back(std::forward<ServiceDeploymentsT>(value));
52 return *this;
53 }
55
57
63 inline const Aws::Vector<Failure>& GetFailures() const { return m_failures; }
64 template <typename FailuresT = Aws::Vector<Failure>>
65 void SetFailures(FailuresT&& value) {
66 m_failuresHasBeenSet = true;
67 m_failures = std::forward<FailuresT>(value);
68 }
69 template <typename FailuresT = Aws::Vector<Failure>>
71 SetFailures(std::forward<FailuresT>(value));
72 return *this;
73 }
74 template <typename FailuresT = Failure>
76 m_failuresHasBeenSet = true;
77 m_failures.emplace_back(std::forward<FailuresT>(value));
78 return *this;
79 }
81
83
84 inline const Aws::String& GetRequestId() const { return m_requestId; }
85 template <typename RequestIdT = Aws::String>
86 void SetRequestId(RequestIdT&& value) {
87 m_requestIdHasBeenSet = true;
88 m_requestId = std::forward<RequestIdT>(value);
89 }
90 template <typename RequestIdT = Aws::String>
92 SetRequestId(std::forward<RequestIdT>(value));
93 return *this;
94 }
96 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
97
98 private:
99 Aws::Vector<ServiceDeployment> m_serviceDeployments;
100
101 Aws::Vector<Failure> m_failures;
102
103 Aws::String m_requestId;
104 Aws::Http::HttpResponseCode m_HttpResponseCode;
105 bool m_serviceDeploymentsHasBeenSet = false;
106 bool m_failuresHasBeenSet = false;
107 bool m_requestIdHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace ECS
112} // namespace Aws
DescribeServiceDeploymentsResult & WithRequestId(RequestIdT &&value)
AWS_ECS_API DescribeServiceDeploymentsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ECS_API DescribeServiceDeploymentsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< ServiceDeployment > & GetServiceDeployments() const
DescribeServiceDeploymentsResult & AddServiceDeployments(ServiceDeploymentsT &&value)
DescribeServiceDeploymentsResult & WithFailures(FailuresT &&value)
DescribeServiceDeploymentsResult & WithServiceDeployments(ServiceDeploymentsT &&value)
DescribeServiceDeploymentsResult & AddFailures(FailuresT &&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