AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
DescribeComponentResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
12#include <aws/greengrassv2/model/CloudComponentStatus.h>
13#include <aws/greengrassv2/model/ComponentPlatform.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 GreengrassV2 {
27namespace Model {
29 public:
30 AWS_GREENGRASSV2_API DescribeComponentResult() = default;
33
35
40 inline const Aws::String& GetArn() const { return m_arn; }
41 template <typename ArnT = Aws::String>
42 void SetArn(ArnT&& value) {
43 m_arnHasBeenSet = true;
44 m_arn = std::forward<ArnT>(value);
45 }
46 template <typename ArnT = Aws::String>
48 SetArn(std::forward<ArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetComponentName() const { return m_componentName; }
58 template <typename ComponentNameT = Aws::String>
59 void SetComponentName(ComponentNameT&& value) {
60 m_componentNameHasBeenSet = true;
61 m_componentName = std::forward<ComponentNameT>(value);
62 }
63 template <typename ComponentNameT = Aws::String>
64 DescribeComponentResult& WithComponentName(ComponentNameT&& value) {
65 SetComponentName(std::forward<ComponentNameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetComponentVersion() const { return m_componentVersion; }
75 template <typename ComponentVersionT = Aws::String>
76 void SetComponentVersion(ComponentVersionT&& value) {
77 m_componentVersionHasBeenSet = true;
78 m_componentVersion = std::forward<ComponentVersionT>(value);
79 }
80 template <typename ComponentVersionT = Aws::String>
81 DescribeComponentResult& WithComponentVersion(ComponentVersionT&& value) {
82 SetComponentVersion(std::forward<ComponentVersionT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
93 template <typename CreationTimestampT = Aws::Utils::DateTime>
94 void SetCreationTimestamp(CreationTimestampT&& value) {
95 m_creationTimestampHasBeenSet = true;
96 m_creationTimestamp = std::forward<CreationTimestampT>(value);
97 }
98 template <typename CreationTimestampT = Aws::Utils::DateTime>
99 DescribeComponentResult& WithCreationTimestamp(CreationTimestampT&& value) {
100 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetPublisher() const { return m_publisher; }
110 template <typename PublisherT = Aws::String>
111 void SetPublisher(PublisherT&& value) {
112 m_publisherHasBeenSet = true;
113 m_publisher = std::forward<PublisherT>(value);
114 }
115 template <typename PublisherT = Aws::String>
117 SetPublisher(std::forward<PublisherT>(value));
118 return *this;
119 }
121
123
126 inline const Aws::String& GetDescription() const { return m_description; }
127 template <typename DescriptionT = Aws::String>
128 void SetDescription(DescriptionT&& value) {
129 m_descriptionHasBeenSet = true;
130 m_description = std::forward<DescriptionT>(value);
131 }
132 template <typename DescriptionT = Aws::String>
134 SetDescription(std::forward<DescriptionT>(value));
135 return *this;
136 }
138
140
144 inline const CloudComponentStatus& GetStatus() const { return m_status; }
145 template <typename StatusT = CloudComponentStatus>
146 void SetStatus(StatusT&& value) {
147 m_statusHasBeenSet = true;
148 m_status = std::forward<StatusT>(value);
149 }
150 template <typename StatusT = CloudComponentStatus>
152 SetStatus(std::forward<StatusT>(value));
153 return *this;
154 }
156
158
161 inline const Aws::Vector<ComponentPlatform>& GetPlatforms() const { return m_platforms; }
162 template <typename PlatformsT = Aws::Vector<ComponentPlatform>>
163 void SetPlatforms(PlatformsT&& value) {
164 m_platformsHasBeenSet = true;
165 m_platforms = std::forward<PlatformsT>(value);
166 }
167 template <typename PlatformsT = Aws::Vector<ComponentPlatform>>
169 SetPlatforms(std::forward<PlatformsT>(value));
170 return *this;
171 }
172 template <typename PlatformsT = ComponentPlatform>
174 m_platformsHasBeenSet = true;
175 m_platforms.emplace_back(std::forward<PlatformsT>(value));
176 return *this;
177 }
179
181
187 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
188 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
189 void SetTags(TagsT&& value) {
190 m_tagsHasBeenSet = true;
191 m_tags = std::forward<TagsT>(value);
192 }
193 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
195 SetTags(std::forward<TagsT>(value));
196 return *this;
197 }
198 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
199 DescribeComponentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
200 m_tagsHasBeenSet = true;
201 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
202 return *this;
203 }
205
207
208 inline const Aws::String& GetRequestId() const { return m_requestId; }
209 template <typename RequestIdT = Aws::String>
210 void SetRequestId(RequestIdT&& value) {
211 m_requestIdHasBeenSet = true;
212 m_requestId = std::forward<RequestIdT>(value);
213 }
214 template <typename RequestIdT = Aws::String>
216 SetRequestId(std::forward<RequestIdT>(value));
217 return *this;
218 }
220 private:
221 Aws::String m_arn;
222 bool m_arnHasBeenSet = false;
223
224 Aws::String m_componentName;
225 bool m_componentNameHasBeenSet = false;
226
227 Aws::String m_componentVersion;
228 bool m_componentVersionHasBeenSet = false;
229
230 Aws::Utils::DateTime m_creationTimestamp{};
231 bool m_creationTimestampHasBeenSet = false;
232
233 Aws::String m_publisher;
234 bool m_publisherHasBeenSet = false;
235
236 Aws::String m_description;
237 bool m_descriptionHasBeenSet = false;
238
239 CloudComponentStatus m_status;
240 bool m_statusHasBeenSet = false;
241
243 bool m_platformsHasBeenSet = false;
244
246 bool m_tagsHasBeenSet = false;
247
248 Aws::String m_requestId;
249 bool m_requestIdHasBeenSet = false;
250};
251
252} // namespace Model
253} // namespace GreengrassV2
254} // 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)
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