AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
PackageVersionSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10#include <aws/iot/model/PackageVersionStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace IoT {
22namespace Model {
23
31 public:
32 AWS_IOT_API PackageVersionSummary() = default;
36
38
41 inline const Aws::String& GetPackageName() const { return m_packageName; }
42 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
43 template <typename PackageNameT = Aws::String>
44 void SetPackageName(PackageNameT&& value) {
45 m_packageNameHasBeenSet = true;
46 m_packageName = std::forward<PackageNameT>(value);
47 }
48 template <typename PackageNameT = Aws::String>
49 PackageVersionSummary& WithPackageName(PackageNameT&& value) {
50 SetPackageName(std::forward<PackageNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetVersionName() const { return m_versionName; }
60 inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; }
61 template <typename VersionNameT = Aws::String>
62 void SetVersionName(VersionNameT&& value) {
63 m_versionNameHasBeenSet = true;
64 m_versionName = std::forward<VersionNameT>(value);
65 }
66 template <typename VersionNameT = Aws::String>
67 PackageVersionSummary& WithVersionName(VersionNameT&& value) {
68 SetVersionName(std::forward<VersionNameT>(value));
69 return *this;
70 }
72
74
79 inline PackageVersionStatus GetStatus() const { return m_status; }
80 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
81 inline void SetStatus(PackageVersionStatus value) {
82 m_statusHasBeenSet = true;
83 m_status = value;
84 }
86 SetStatus(value);
87 return *this;
88 }
90
92
95 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
96 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
97 template <typename CreationDateT = Aws::Utils::DateTime>
98 void SetCreationDate(CreationDateT&& value) {
99 m_creationDateHasBeenSet = true;
100 m_creationDate = std::forward<CreationDateT>(value);
101 }
102 template <typename CreationDateT = Aws::Utils::DateTime>
103 PackageVersionSummary& WithCreationDate(CreationDateT&& value) {
104 SetCreationDate(std::forward<CreationDateT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
114 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
115 template <typename LastModifiedDateT = Aws::Utils::DateTime>
116 void SetLastModifiedDate(LastModifiedDateT&& value) {
117 m_lastModifiedDateHasBeenSet = true;
118 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
119 }
120 template <typename LastModifiedDateT = Aws::Utils::DateTime>
121 PackageVersionSummary& WithLastModifiedDate(LastModifiedDateT&& value) {
122 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
123 return *this;
124 }
126 private:
127 Aws::String m_packageName;
128
129 Aws::String m_versionName;
130
132
133 Aws::Utils::DateTime m_creationDate{};
134
135 Aws::Utils::DateTime m_lastModifiedDate{};
136 bool m_packageNameHasBeenSet = false;
137 bool m_versionNameHasBeenSet = false;
138 bool m_statusHasBeenSet = false;
139 bool m_creationDateHasBeenSet = false;
140 bool m_lastModifiedDateHasBeenSet = false;
141};
142
143} // namespace Model
144} // namespace IoT
145} // namespace Aws
PackageVersionSummary & WithStatus(PackageVersionStatus value)
PackageVersionSummary & WithVersionName(VersionNameT &&value)
AWS_IOT_API PackageVersionSummary(Aws::Utils::Json::JsonView jsonValue)
PackageVersionSummary & WithLastModifiedDate(LastModifiedDateT &&value)
PackageVersionSummary & WithPackageName(PackageNameT &&value)
void SetStatus(PackageVersionStatus value)
AWS_IOT_API PackageVersionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetCreationDate() const
const Aws::Utils::DateTime & GetLastModifiedDate() const
void SetLastModifiedDate(LastModifiedDateT &&value)
PackageVersionSummary & WithCreationDate(CreationDateT &&value)
AWS_IOT_API PackageVersionSummary()=default
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreationDate(CreationDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue