AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ComponentLatestVersion.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
11#include <aws/greengrassv2/model/ComponentPlatform.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GreengrassV2 {
23namespace Model {
24
32 public:
33 AWS_GREENGRASSV2_API ComponentLatestVersion() = default;
34 AWS_GREENGRASSV2_API ComponentLatestVersion(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetComponentVersion() const { return m_componentVersion; }
63 inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
64 template <typename ComponentVersionT = Aws::String>
65 void SetComponentVersion(ComponentVersionT&& value) {
66 m_componentVersionHasBeenSet = true;
67 m_componentVersion = std::forward<ComponentVersionT>(value);
68 }
69 template <typename ComponentVersionT = Aws::String>
70 ComponentLatestVersion& WithComponentVersion(ComponentVersionT&& value) {
71 SetComponentVersion(std::forward<ComponentVersionT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
82 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
83 template <typename CreationTimestampT = Aws::Utils::DateTime>
84 void SetCreationTimestamp(CreationTimestampT&& value) {
85 m_creationTimestampHasBeenSet = true;
86 m_creationTimestamp = std::forward<CreationTimestampT>(value);
87 }
88 template <typename CreationTimestampT = Aws::Utils::DateTime>
89 ComponentLatestVersion& WithCreationTimestamp(CreationTimestampT&& value) {
90 SetCreationTimestamp(std::forward<CreationTimestampT>(value));
91 return *this;
92 }
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template <typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) {
103 m_descriptionHasBeenSet = true;
104 m_description = std::forward<DescriptionT>(value);
105 }
106 template <typename DescriptionT = Aws::String>
108 SetDescription(std::forward<DescriptionT>(value));
109 return *this;
110 }
112
114
117 inline const Aws::String& GetPublisher() const { return m_publisher; }
118 inline bool PublisherHasBeenSet() const { return m_publisherHasBeenSet; }
119 template <typename PublisherT = Aws::String>
120 void SetPublisher(PublisherT&& value) {
121 m_publisherHasBeenSet = true;
122 m_publisher = std::forward<PublisherT>(value);
123 }
124 template <typename PublisherT = Aws::String>
126 SetPublisher(std::forward<PublisherT>(value));
127 return *this;
128 }
130
132
135 inline const Aws::Vector<ComponentPlatform>& GetPlatforms() const { return m_platforms; }
136 inline bool PlatformsHasBeenSet() const { return m_platformsHasBeenSet; }
137 template <typename PlatformsT = Aws::Vector<ComponentPlatform>>
138 void SetPlatforms(PlatformsT&& value) {
139 m_platformsHasBeenSet = true;
140 m_platforms = std::forward<PlatformsT>(value);
141 }
142 template <typename PlatformsT = Aws::Vector<ComponentPlatform>>
144 SetPlatforms(std::forward<PlatformsT>(value));
145 return *this;
146 }
147 template <typename PlatformsT = ComponentPlatform>
149 m_platformsHasBeenSet = true;
150 m_platforms.emplace_back(std::forward<PlatformsT>(value));
151 return *this;
152 }
154 private:
155 Aws::String m_arn;
156
157 Aws::String m_componentVersion;
158
159 Aws::Utils::DateTime m_creationTimestamp{};
160
161 Aws::String m_description;
162
163 Aws::String m_publisher;
164
166 bool m_arnHasBeenSet = false;
167 bool m_componentVersionHasBeenSet = false;
168 bool m_creationTimestampHasBeenSet = false;
169 bool m_descriptionHasBeenSet = false;
170 bool m_publisherHasBeenSet = false;
171 bool m_platformsHasBeenSet = false;
172};
173
174} // namespace Model
175} // namespace GreengrassV2
176} // namespace Aws
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentLatestVersion & WithCreationTimestamp(CreationTimestampT &&value)
ComponentLatestVersion & WithDescription(DescriptionT &&value)
AWS_GREENGRASSV2_API ComponentLatestVersion(Aws::Utils::Json::JsonView jsonValue)
AWS_GREENGRASSV2_API ComponentLatestVersion()=default
ComponentLatestVersion & WithPublisher(PublisherT &&value)
ComponentLatestVersion & WithComponentVersion(ComponentVersionT &&value)
ComponentLatestVersion & WithArn(ArnT &&value)
ComponentLatestVersion & AddPlatforms(PlatformsT &&value)
const Aws::Utils::DateTime & GetCreationTimestamp() const
AWS_GREENGRASSV2_API ComponentLatestVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ComponentPlatform > & GetPlatforms() const
ComponentLatestVersion & WithPlatforms(PlatformsT &&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