AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeComponentResult.h
1
6#pragma once
7#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/greengrassv2/model/CloudComponentStatus.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/greengrassv2/model/ComponentPlatform.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace GreengrassV2
29{
30namespace Model
31{
33 {
34 public:
35 AWS_GREENGRASSV2_API DescribeComponentResult() = default;
38
39
41
46 inline const Aws::String& GetArn() const { return m_arn; }
47 template<typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
49 template<typename ArnT = Aws::String>
50 DescribeComponentResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
52
54
57 inline const Aws::String& GetComponentName() const { return m_componentName; }
58 template<typename ComponentNameT = Aws::String>
59 void SetComponentName(ComponentNameT&& value) { m_componentNameHasBeenSet = true; m_componentName = std::forward<ComponentNameT>(value); }
60 template<typename ComponentNameT = Aws::String>
61 DescribeComponentResult& WithComponentName(ComponentNameT&& value) { SetComponentName(std::forward<ComponentNameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetComponentVersion() const { return m_componentVersion; }
69 template<typename ComponentVersionT = Aws::String>
70 void SetComponentVersion(ComponentVersionT&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::forward<ComponentVersionT>(value); }
71 template<typename ComponentVersionT = Aws::String>
72 DescribeComponentResult& WithComponentVersion(ComponentVersionT&& value) { SetComponentVersion(std::forward<ComponentVersionT>(value)); return *this;}
74
76
80 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
81 template<typename CreationTimestampT = Aws::Utils::DateTime>
82 void SetCreationTimestamp(CreationTimestampT&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::forward<CreationTimestampT>(value); }
83 template<typename CreationTimestampT = Aws::Utils::DateTime>
84 DescribeComponentResult& WithCreationTimestamp(CreationTimestampT&& value) { SetCreationTimestamp(std::forward<CreationTimestampT>(value)); return *this;}
86
88
91 inline const Aws::String& GetPublisher() const { return m_publisher; }
92 template<typename PublisherT = Aws::String>
93 void SetPublisher(PublisherT&& value) { m_publisherHasBeenSet = true; m_publisher = std::forward<PublisherT>(value); }
94 template<typename PublisherT = Aws::String>
95 DescribeComponentResult& WithPublisher(PublisherT&& value) { SetPublisher(std::forward<PublisherT>(value)); return *this;}
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 template<typename DescriptionT = Aws::String>
104 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
105 template<typename DescriptionT = Aws::String>
106 DescribeComponentResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
108
110
114 inline const CloudComponentStatus& GetStatus() const { return m_status; }
115 template<typename StatusT = CloudComponentStatus>
116 void SetStatus(StatusT&& value) { m_statusHasBeenSet = true; m_status = std::forward<StatusT>(value); }
117 template<typename StatusT = CloudComponentStatus>
118 DescribeComponentResult& WithStatus(StatusT&& value) { SetStatus(std::forward<StatusT>(value)); return *this;}
120
122
125 inline const Aws::Vector<ComponentPlatform>& GetPlatforms() const { return m_platforms; }
126 template<typename PlatformsT = Aws::Vector<ComponentPlatform>>
127 void SetPlatforms(PlatformsT&& value) { m_platformsHasBeenSet = true; m_platforms = std::forward<PlatformsT>(value); }
128 template<typename PlatformsT = Aws::Vector<ComponentPlatform>>
129 DescribeComponentResult& WithPlatforms(PlatformsT&& value) { SetPlatforms(std::forward<PlatformsT>(value)); return *this;}
130 template<typename PlatformsT = ComponentPlatform>
131 DescribeComponentResult& AddPlatforms(PlatformsT&& value) { m_platformsHasBeenSet = true; m_platforms.emplace_back(std::forward<PlatformsT>(value)); return *this; }
133
135
141 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
142 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
143 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
144 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
145 DescribeComponentResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
146 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
147 DescribeComponentResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
148 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
149 }
151
153
154 inline const Aws::String& GetRequestId() const { return m_requestId; }
155 template<typename RequestIdT = Aws::String>
156 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
157 template<typename RequestIdT = Aws::String>
158 DescribeComponentResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
160 private:
161
162 Aws::String m_arn;
163 bool m_arnHasBeenSet = false;
164
165 Aws::String m_componentName;
166 bool m_componentNameHasBeenSet = false;
167
168 Aws::String m_componentVersion;
169 bool m_componentVersionHasBeenSet = false;
170
171 Aws::Utils::DateTime m_creationTimestamp{};
172 bool m_creationTimestampHasBeenSet = false;
173
174 Aws::String m_publisher;
175 bool m_publisherHasBeenSet = false;
176
177 Aws::String m_description;
178 bool m_descriptionHasBeenSet = false;
179
180 CloudComponentStatus m_status;
181 bool m_statusHasBeenSet = false;
182
184 bool m_platformsHasBeenSet = false;
185
187 bool m_tagsHasBeenSet = false;
188
189 Aws::String m_requestId;
190 bool m_requestIdHasBeenSet = false;
191 };
192
193} // namespace Model
194} // namespace GreengrassV2
195} // 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