AWS SDK for C++

AWS SDK for C++ Version 1.11.758

Loading...
Searching...
No Matches
DescribeComponentResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
13#include <aws/greengrassv2/model/CloudComponentStatus.h>
14#include <aws/greengrassv2/model/ComponentPlatform.h>
15
16#include <utility>
17
18namespace Aws {
19template <typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils {
23namespace Json {
24class JsonValue;
25} // namespace Json
26} // namespace Utils
27namespace GreengrassV2 {
28namespace Model {
30 public:
31 AWS_GREENGRASSV2_API DescribeComponentResult() = default;
34
36
41 inline const Aws::String& GetArn() const { return m_arn; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetComponentName() const { return m_componentName; }
59 template <typename ComponentNameT = Aws::String>
60 void SetComponentName(ComponentNameT&& value) {
61 m_componentNameHasBeenSet = true;
62 m_componentName = std::forward<ComponentNameT>(value);
63 }
64 template <typename ComponentNameT = Aws::String>
65 DescribeComponentResult& WithComponentName(ComponentNameT&& value) {
66 SetComponentName(std::forward<ComponentNameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetComponentVersion() const { return m_componentVersion; }
76 template <typename ComponentVersionT = Aws::String>
77 void SetComponentVersion(ComponentVersionT&& value) {
78 m_componentVersionHasBeenSet = true;
79 m_componentVersion = std::forward<ComponentVersionT>(value);
80 }
81 template <typename ComponentVersionT = Aws::String>
82 DescribeComponentResult& WithComponentVersion(ComponentVersionT&& value) {
83 SetComponentVersion(std::forward<ComponentVersionT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
94 template <typename CreationTimestampT = Aws::Utils::DateTime>
95 void SetCreationTimestamp(CreationTimestampT&& value) {
96 m_creationTimestampHasBeenSet = true;
97 m_creationTimestamp = std::forward<CreationTimestampT>(value);
98 }
99 template <typename CreationTimestampT = Aws::Utils::DateTime>
100 DescribeComponentResult& WithCreationTimestamp(CreationTimestampT&& value) {
101 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
102 return *this;
103 }
105
107
110 inline const Aws::String& GetPublisher() const { return m_publisher; }
111 template <typename PublisherT = Aws::String>
112 void SetPublisher(PublisherT&& value) {
113 m_publisherHasBeenSet = true;
114 m_publisher = std::forward<PublisherT>(value);
115 }
116 template <typename PublisherT = Aws::String>
118 SetPublisher(std::forward<PublisherT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetDescription() const { return m_description; }
128 template <typename DescriptionT = Aws::String>
129 void SetDescription(DescriptionT&& value) {
130 m_descriptionHasBeenSet = true;
131 m_description = std::forward<DescriptionT>(value);
132 }
133 template <typename DescriptionT = Aws::String>
135 SetDescription(std::forward<DescriptionT>(value));
136 return *this;
137 }
139
141
145 inline const CloudComponentStatus& GetStatus() const { return m_status; }
146 template <typename StatusT = CloudComponentStatus>
147 void SetStatus(StatusT&& value) {
148 m_statusHasBeenSet = true;
149 m_status = std::forward<StatusT>(value);
150 }
151 template <typename StatusT = CloudComponentStatus>
153 SetStatus(std::forward<StatusT>(value));
154 return *this;
155 }
157
159
162 inline const Aws::Vector<ComponentPlatform>& GetPlatforms() const { return m_platforms; }
163 template <typename PlatformsT = Aws::Vector<ComponentPlatform>>
164 void SetPlatforms(PlatformsT&& value) {
165 m_platformsHasBeenSet = true;
166 m_platforms = std::forward<PlatformsT>(value);
167 }
168 template <typename PlatformsT = Aws::Vector<ComponentPlatform>>
170 SetPlatforms(std::forward<PlatformsT>(value));
171 return *this;
172 }
173 template <typename PlatformsT = ComponentPlatform>
175 m_platformsHasBeenSet = true;
176 m_platforms.emplace_back(std::forward<PlatformsT>(value));
177 return *this;
178 }
180
182
188 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
189 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
190 void SetTags(TagsT&& value) {
191 m_tagsHasBeenSet = true;
192 m_tags = std::forward<TagsT>(value);
193 }
194 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
196 SetTags(std::forward<TagsT>(value));
197 return *this;
198 }
199 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
200 DescribeComponentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
201 m_tagsHasBeenSet = true;
202 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
203 return *this;
204 }
206
208
209 inline const Aws::String& GetRequestId() const { return m_requestId; }
210 template <typename RequestIdT = Aws::String>
211 void SetRequestId(RequestIdT&& value) {
212 m_requestIdHasBeenSet = true;
213 m_requestId = std::forward<RequestIdT>(value);
214 }
215 template <typename RequestIdT = Aws::String>
217 SetRequestId(std::forward<RequestIdT>(value));
218 return *this;
219 }
221 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
222
223 private:
224 Aws::String m_arn;
225
226 Aws::String m_componentName;
227
228 Aws::String m_componentVersion;
229
230 Aws::Utils::DateTime m_creationTimestamp{};
231
232 Aws::String m_publisher;
233
234 Aws::String m_description;
235
236 CloudComponentStatus m_status;
237
239
241
242 Aws::String m_requestId;
243 Aws::Http::HttpResponseCode m_HttpResponseCode;
244 bool m_arnHasBeenSet = false;
245 bool m_componentNameHasBeenSet = false;
246 bool m_componentVersionHasBeenSet = false;
247 bool m_creationTimestampHasBeenSet = false;
248 bool m_publisherHasBeenSet = false;
249 bool m_descriptionHasBeenSet = false;
250 bool m_statusHasBeenSet = false;
251 bool m_platformsHasBeenSet = false;
252 bool m_tagsHasBeenSet = false;
253 bool m_requestIdHasBeenSet = false;
254};
255
256} // namespace Model
257} // namespace GreengrassV2
258} // namespace Aws
DescribeComponentResult & WithCreationTimestamp(CreationTimestampT &&value)
AWS_GREENGRASSV2_API DescribeComponentResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeComponentResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_GREENGRASSV2_API DescribeComponentResult()=default
DescribeComponentResult & WithPublisher(PublisherT &&value)
const Aws::Utils::DateTime & GetCreationTimestamp() const
DescribeComponentResult & WithTags(TagsT &&value)
DescribeComponentResult & WithComponentVersion(ComponentVersionT &&value)
DescribeComponentResult & WithArn(ArnT &&value)
AWS_GREENGRASSV2_API DescribeComponentResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DescribeComponentResult & AddPlatforms(PlatformsT &&value)
DescribeComponentResult & WithPlatforms(PlatformsT &&value)
DescribeComponentResult & WithDescription(DescriptionT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
DescribeComponentResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< ComponentPlatform > & GetPlatforms() const
DescribeComponentResult & WithStatus(StatusT &&value)
DescribeComponentResult & WithComponentName(ComponentNameT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue