AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
53 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
54 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
55 inline ComponentLatestVersion& WithArn(const Aws::String& value) { SetArn(value); return *this;}
56 inline ComponentLatestVersion& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
57 inline ComponentLatestVersion& WithArn(const char* value) { SetArn(value); return *this;}
59
61
64 inline const Aws::String& GetComponentVersion() const{ return m_componentVersion; }
65 inline bool ComponentVersionHasBeenSet() const { return m_componentVersionHasBeenSet; }
66 inline void SetComponentVersion(const Aws::String& value) { m_componentVersionHasBeenSet = true; m_componentVersion = value; }
67 inline void SetComponentVersion(Aws::String&& value) { m_componentVersionHasBeenSet = true; m_componentVersion = std::move(value); }
68 inline void SetComponentVersion(const char* value) { m_componentVersionHasBeenSet = true; m_componentVersion.assign(value); }
69 inline ComponentLatestVersion& WithComponentVersion(const Aws::String& value) { SetComponentVersion(value); return *this;}
70 inline ComponentLatestVersion& WithComponentVersion(Aws::String&& value) { SetComponentVersion(std::move(value)); return *this;}
71 inline ComponentLatestVersion& WithComponentVersion(const char* value) { SetComponentVersion(value); return *this;}
73
75
79 inline const Aws::Utils::DateTime& GetCreationTimestamp() const{ return m_creationTimestamp; }
80 inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
81 inline void SetCreationTimestamp(const Aws::Utils::DateTime& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; }
82 inline void SetCreationTimestamp(Aws::Utils::DateTime&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::move(value); }
86
88
91 inline const Aws::String& GetDescription() const{ return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
94 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
95 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
96 inline ComponentLatestVersion& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
97 inline ComponentLatestVersion& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
98 inline ComponentLatestVersion& WithDescription(const char* value) { SetDescription(value); return *this;}
100
102
105 inline const Aws::String& GetPublisher() const{ return m_publisher; }
106 inline bool PublisherHasBeenSet() const { return m_publisherHasBeenSet; }
107 inline void SetPublisher(const Aws::String& value) { m_publisherHasBeenSet = true; m_publisher = value; }
108 inline void SetPublisher(Aws::String&& value) { m_publisherHasBeenSet = true; m_publisher = std::move(value); }
109 inline void SetPublisher(const char* value) { m_publisherHasBeenSet = true; m_publisher.assign(value); }
110 inline ComponentLatestVersion& WithPublisher(const Aws::String& value) { SetPublisher(value); return *this;}
111 inline ComponentLatestVersion& WithPublisher(Aws::String&& value) { SetPublisher(std::move(value)); return *this;}
112 inline ComponentLatestVersion& WithPublisher(const char* value) { SetPublisher(value); return *this;}
114
116
119 inline const Aws::Vector<ComponentPlatform>& GetPlatforms() const{ return m_platforms; }
120 inline bool PlatformsHasBeenSet() const { return m_platformsHasBeenSet; }
121 inline void SetPlatforms(const Aws::Vector<ComponentPlatform>& value) { m_platformsHasBeenSet = true; m_platforms = value; }
122 inline void SetPlatforms(Aws::Vector<ComponentPlatform>&& value) { m_platformsHasBeenSet = true; m_platforms = std::move(value); }
124 inline ComponentLatestVersion& WithPlatforms(Aws::Vector<ComponentPlatform>&& value) { SetPlatforms(std::move(value)); return *this;}
125 inline ComponentLatestVersion& AddPlatforms(const ComponentPlatform& value) { m_platformsHasBeenSet = true; m_platforms.push_back(value); return *this; }
126 inline ComponentLatestVersion& AddPlatforms(ComponentPlatform&& value) { m_platformsHasBeenSet = true; m_platforms.push_back(std::move(value)); return *this; }
128 private:
129
130 Aws::String m_arn;
131 bool m_arnHasBeenSet = false;
132
133 Aws::String m_componentVersion;
134 bool m_componentVersionHasBeenSet = false;
135
136 Aws::Utils::DateTime m_creationTimestamp;
137 bool m_creationTimestampHasBeenSet = false;
138
139 Aws::String m_description;
140 bool m_descriptionHasBeenSet = false;
141
142 Aws::String m_publisher;
143 bool m_publisherHasBeenSet = false;
144
146 bool m_platformsHasBeenSet = false;
147 };
148
149} // namespace Model
150} // namespace GreengrassV2
151} // namespace Aws
ComponentLatestVersion & WithPlatforms(Aws::Vector< ComponentPlatform > &&value)
ComponentLatestVersion & AddPlatforms(ComponentPlatform &&value)
AWS_GREENGRASSV2_API Aws::Utils::Json::JsonValue Jsonize() const
ComponentLatestVersion & WithDescription(Aws::String &&value)
void SetCreationTimestamp(const Aws::Utils::DateTime &value)
ComponentLatestVersion & WithPublisher(Aws::String &&value)
ComponentLatestVersion & WithPublisher(const char *value)
ComponentLatestVersion & WithArn(const char *value)
ComponentLatestVersion & WithDescription(const Aws::String &value)
ComponentLatestVersion & WithCreationTimestamp(Aws::Utils::DateTime &&value)
ComponentLatestVersion & WithComponentVersion(Aws::String &&value)
AWS_GREENGRASSV2_API ComponentLatestVersion(Aws::Utils::Json::JsonView jsonValue)
void SetCreationTimestamp(Aws::Utils::DateTime &&value)
ComponentLatestVersion & WithPublisher(const Aws::String &value)
void SetPlatforms(const Aws::Vector< ComponentPlatform > &value)
ComponentLatestVersion & WithComponentVersion(const char *value)
const Aws::Utils::DateTime & GetCreationTimestamp() const
AWS_GREENGRASSV2_API ComponentLatestVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< ComponentPlatform > & GetPlatforms() const
ComponentLatestVersion & WithCreationTimestamp(const Aws::Utils::DateTime &value)
void SetPlatforms(Aws::Vector< ComponentPlatform > &&value)
ComponentLatestVersion & WithComponentVersion(const Aws::String &value)
ComponentLatestVersion & WithArn(Aws::String &&value)
ComponentLatestVersion & WithPlatforms(const Aws::Vector< ComponentPlatform > &value)
ComponentLatestVersion & AddPlatforms(const ComponentPlatform &value)
ComponentLatestVersion & WithDescription(const char *value)
ComponentLatestVersion & WithArn(const Aws::String &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