AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
PackageSummary.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
30 public:
31 AWS_IOT_API PackageSummary() = default;
35
37
40 inline const Aws::String& GetPackageName() const { return m_packageName; }
41 inline bool PackageNameHasBeenSet() const { return m_packageNameHasBeenSet; }
42 template <typename PackageNameT = Aws::String>
43 void SetPackageName(PackageNameT&& value) {
44 m_packageNameHasBeenSet = true;
45 m_packageName = std::forward<PackageNameT>(value);
46 }
47 template <typename PackageNameT = Aws::String>
48 PackageSummary& WithPackageName(PackageNameT&& value) {
49 SetPackageName(std::forward<PackageNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDefaultVersionName() const { return m_defaultVersionName; }
59 inline bool DefaultVersionNameHasBeenSet() const { return m_defaultVersionNameHasBeenSet; }
60 template <typename DefaultVersionNameT = Aws::String>
61 void SetDefaultVersionName(DefaultVersionNameT&& value) {
62 m_defaultVersionNameHasBeenSet = true;
63 m_defaultVersionName = std::forward<DefaultVersionNameT>(value);
64 }
65 template <typename DefaultVersionNameT = Aws::String>
66 PackageSummary& WithDefaultVersionName(DefaultVersionNameT&& value) {
67 SetDefaultVersionName(std::forward<DefaultVersionNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
77 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
78 template <typename CreationDateT = Aws::Utils::DateTime>
79 void SetCreationDate(CreationDateT&& value) {
80 m_creationDateHasBeenSet = true;
81 m_creationDate = std::forward<CreationDateT>(value);
82 }
83 template <typename CreationDateT = Aws::Utils::DateTime>
84 PackageSummary& WithCreationDate(CreationDateT&& value) {
85 SetCreationDate(std::forward<CreationDateT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
95 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
96 template <typename LastModifiedDateT = Aws::Utils::DateTime>
97 void SetLastModifiedDate(LastModifiedDateT&& value) {
98 m_lastModifiedDateHasBeenSet = true;
99 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
100 }
101 template <typename LastModifiedDateT = Aws::Utils::DateTime>
102 PackageSummary& WithLastModifiedDate(LastModifiedDateT&& value) {
103 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
104 return *this;
105 }
107 private:
108 Aws::String m_packageName;
109
110 Aws::String m_defaultVersionName;
111
112 Aws::Utils::DateTime m_creationDate{};
113
114 Aws::Utils::DateTime m_lastModifiedDate{};
115 bool m_packageNameHasBeenSet = false;
116 bool m_defaultVersionNameHasBeenSet = false;
117 bool m_creationDateHasBeenSet = false;
118 bool m_lastModifiedDateHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace IoT
123} // namespace Aws
const Aws::Utils::DateTime & GetCreationDate() const
const Aws::String & GetDefaultVersionName() const
void SetDefaultVersionName(DefaultVersionNameT &&value)
AWS_IOT_API PackageSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
PackageSummary & WithDefaultVersionName(DefaultVersionNameT &&value)
void SetCreationDate(CreationDateT &&value)
PackageSummary & WithPackageName(PackageNameT &&value)
PackageSummary & WithLastModifiedDate(LastModifiedDateT &&value)
AWS_IOT_API PackageSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPackageName() const
AWS_IOT_API PackageSummary()=default
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastModifiedDate(LastModifiedDateT &&value)
void SetPackageName(PackageNameT &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
PackageSummary & WithCreationDate(CreationDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue