AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
DescribeResourceCollectionHealthResult.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/devops-guru/DevOpsGuru_EXPORTS.h>
11#include <aws/devops-guru/model/CloudFormationHealth.h>
12#include <aws/devops-guru/model/ServiceHealth.h>
13#include <aws/devops-guru/model/TagHealth.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace DevOpsGuru {
27namespace Model {
29 public:
30 AWS_DEVOPSGURU_API DescribeResourceCollectionHealthResult() = default;
34
36
41 inline const Aws::Vector<CloudFormationHealth>& GetCloudFormation() const { return m_cloudFormation; }
42 template <typename CloudFormationT = Aws::Vector<CloudFormationHealth>>
43 void SetCloudFormation(CloudFormationT&& value) {
44 m_cloudFormationHasBeenSet = true;
45 m_cloudFormation = std::forward<CloudFormationT>(value);
46 }
47 template <typename CloudFormationT = Aws::Vector<CloudFormationHealth>>
49 SetCloudFormation(std::forward<CloudFormationT>(value));
50 return *this;
51 }
52 template <typename CloudFormationT = CloudFormationHealth>
54 m_cloudFormationHasBeenSet = true;
55 m_cloudFormation.emplace_back(std::forward<CloudFormationT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::Vector<ServiceHealth>& GetService() const { return m_service; }
67 template <typename ServiceT = Aws::Vector<ServiceHealth>>
68 void SetService(ServiceT&& value) {
69 m_serviceHasBeenSet = true;
70 m_service = std::forward<ServiceT>(value);
71 }
72 template <typename ServiceT = Aws::Vector<ServiceHealth>>
74 SetService(std::forward<ServiceT>(value));
75 return *this;
76 }
77 template <typename ServiceT = ServiceHealth>
79 m_serviceHasBeenSet = true;
80 m_service.emplace_back(std::forward<ServiceT>(value));
81 return *this;
82 }
84
86
90 inline const Aws::String& GetNextToken() const { return m_nextToken; }
91 template <typename NextTokenT = Aws::String>
92 void SetNextToken(NextTokenT&& value) {
93 m_nextTokenHasBeenSet = true;
94 m_nextToken = std::forward<NextTokenT>(value);
95 }
96 template <typename NextTokenT = Aws::String>
98 SetNextToken(std::forward<NextTokenT>(value));
99 return *this;
100 }
102
104
134 inline const Aws::Vector<TagHealth>& GetTags() const { return m_tags; }
135 template <typename TagsT = Aws::Vector<TagHealth>>
136 void SetTags(TagsT&& value) {
137 m_tagsHasBeenSet = true;
138 m_tags = std::forward<TagsT>(value);
139 }
140 template <typename TagsT = Aws::Vector<TagHealth>>
142 SetTags(std::forward<TagsT>(value));
143 return *this;
144 }
145 template <typename TagsT = TagHealth>
147 m_tagsHasBeenSet = true;
148 m_tags.emplace_back(std::forward<TagsT>(value));
149 return *this;
150 }
152
154
155 inline const Aws::String& GetRequestId() const { return m_requestId; }
156 template <typename RequestIdT = Aws::String>
157 void SetRequestId(RequestIdT&& value) {
158 m_requestIdHasBeenSet = true;
159 m_requestId = std::forward<RequestIdT>(value);
160 }
161 template <typename RequestIdT = Aws::String>
163 SetRequestId(std::forward<RequestIdT>(value));
164 return *this;
165 }
167 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
168
169 private:
170 Aws::Vector<CloudFormationHealth> m_cloudFormation;
171
173
174 Aws::String m_nextToken;
175
177
178 Aws::String m_requestId;
179 Aws::Http::HttpResponseCode m_HttpResponseCode;
180 bool m_cloudFormationHasBeenSet = false;
181 bool m_serviceHasBeenSet = false;
182 bool m_nextTokenHasBeenSet = false;
183 bool m_tagsHasBeenSet = false;
184 bool m_requestIdHasBeenSet = false;
185};
186
187} // namespace Model
188} // namespace DevOpsGuru
189} // namespace Aws
DescribeResourceCollectionHealthResult & WithRequestId(RequestIdT &&value)
DescribeResourceCollectionHealthResult & AddCloudFormation(CloudFormationT &&value)
DescribeResourceCollectionHealthResult & AddService(ServiceT &&value)
AWS_DEVOPSGURU_API DescribeResourceCollectionHealthResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeResourceCollectionHealthResult & WithNextToken(NextTokenT &&value)
DescribeResourceCollectionHealthResult & WithService(ServiceT &&value)
AWS_DEVOPSGURU_API DescribeResourceCollectionHealthResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeResourceCollectionHealthResult & WithCloudFormation(CloudFormationT &&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