AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ComponentLatestVersion.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/greengrassv2/model/ComponentPlatform.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace GreengrassV2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_GREENGRASSV2_API ComponentLatestVersion() = default;
39 AWS_GREENGRASSV2_API ComponentLatestVersion(Aws::Utils::Json::JsonView jsonValue);
41 AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::String& GetArn() const { return m_arn; }
51 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
52 template<typename ArnT = Aws::String>
53 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
54 template<typename ArnT = Aws::String>
55 ComponentLatestVersion& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
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) { m_componentVersionHasBeenSet = true; m_componentVersion = std::forward<ComponentVersionT>(value); }
66 template<typename ComponentVersionT = Aws::String>
67 ComponentLatestVersion& WithComponentVersion(ComponentVersionT&& value) { SetComponentVersion(std::forward<ComponentVersionT>(value)); return *this;}
69
71
75 inline const Aws::Utils::DateTime& GetCreationTimestamp() const { return m_creationTimestamp; }
76 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
77 template<typename CreationTimestampT = Aws::Utils::DateTime>
78 void SetCreationTimestamp(CreationTimestampT&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::forward<CreationTimestampT>(value); }
79 template<typename CreationTimestampT = Aws::Utils::DateTime>
80 ComponentLatestVersion& WithCreationTimestamp(CreationTimestampT&& value) { SetCreationTimestamp(std::forward<CreationTimestampT>(value)); return *this;}
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template<typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
91 template<typename DescriptionT = Aws::String>
92 ComponentLatestVersion& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
94
96
99 inline const Aws::String& GetPublisher() const { return m_publisher; }
100 inline bool PublisherHasBeenSet() const { return m_publisherHasBeenSet; }
101 template<typename PublisherT = Aws::String>
102 void SetPublisher(PublisherT&& value) { m_publisherHasBeenSet = true; m_publisher = std::forward<PublisherT>(value); }
103 template<typename PublisherT = Aws::String>
104 ComponentLatestVersion& WithPublisher(PublisherT&& value) { SetPublisher(std::forward<PublisherT>(value)); return *this;}
106
108
111 inline const Aws::Vector<ComponentPlatform>& GetPlatforms() const { return m_platforms; }
112 inline bool PlatformsHasBeenSet() const { return m_platformsHasBeenSet; }
113 template<typename PlatformsT = Aws::Vector<ComponentPlatform>>
114 void SetPlatforms(PlatformsT&& value) { m_platformsHasBeenSet = true; m_platforms = std::forward<PlatformsT>(value); }
115 template<typename PlatformsT = Aws::Vector<ComponentPlatform>>
116 ComponentLatestVersion& WithPlatforms(PlatformsT&& value) { SetPlatforms(std::forward<PlatformsT>(value)); return *this;}
117 template<typename PlatformsT = ComponentPlatform>
118 ComponentLatestVersion& AddPlatforms(PlatformsT&& value) { m_platformsHasBeenSet = true; m_platforms.emplace_back(std::forward<PlatformsT>(value)); return *this; }
120 private:
121
122 Aws::String m_arn;
123 bool m_arnHasBeenSet = false;
124
125 Aws::String m_componentVersion;
126 bool m_componentVersionHasBeenSet = false;
127
128 Aws::Utils::DateTime m_creationTimestamp{};
129 bool m_creationTimestampHasBeenSet = false;
130
131 Aws::String m_description;
132 bool m_descriptionHasBeenSet = false;
133
134 Aws::String m_publisher;
135 bool m_publisherHasBeenSet = false;
136
138 bool m_platformsHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace GreengrassV2
143} // 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