AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
ProvisioningTemplateSummary.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/TemplateType.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 ProvisioningTemplateSummary() = default;
36
38
41 inline const Aws::String& GetTemplateArn() const { return m_templateArn; }
42 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
43 template <typename TemplateArnT = Aws::String>
44 void SetTemplateArn(TemplateArnT&& value) {
45 m_templateArnHasBeenSet = true;
46 m_templateArn = std::forward<TemplateArnT>(value);
47 }
48 template <typename TemplateArnT = Aws::String>
50 SetTemplateArn(std::forward<TemplateArnT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTemplateName() const { return m_templateName; }
60 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
61 template <typename TemplateNameT = Aws::String>
62 void SetTemplateName(TemplateNameT&& value) {
63 m_templateNameHasBeenSet = true;
64 m_templateName = std::forward<TemplateNameT>(value);
65 }
66 template <typename TemplateNameT = Aws::String>
68 SetTemplateName(std::forward<TemplateNameT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template <typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) {
81 m_descriptionHasBeenSet = true;
82 m_description = std::forward<DescriptionT>(value);
83 }
84 template <typename DescriptionT = Aws::String>
86 SetDescription(std::forward<DescriptionT>(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>
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>
122 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
123 return *this;
124 }
126
128
131 inline bool GetEnabled() const { return m_enabled; }
132 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
133 inline void SetEnabled(bool value) {
134 m_enabledHasBeenSet = true;
135 m_enabled = value;
136 }
138 SetEnabled(value);
139 return *this;
140 }
142
144
152 inline TemplateType GetType() const { return m_type; }
153 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
154 inline void SetType(TemplateType value) {
155 m_typeHasBeenSet = true;
156 m_type = value;
157 }
159 SetType(value);
160 return *this;
161 }
163 private:
164 Aws::String m_templateArn;
165
166 Aws::String m_templateName;
167
168 Aws::String m_description;
169
170 Aws::Utils::DateTime m_creationDate{};
171
172 Aws::Utils::DateTime m_lastModifiedDate{};
173
174 bool m_enabled{false};
175
177 bool m_templateArnHasBeenSet = false;
178 bool m_templateNameHasBeenSet = false;
179 bool m_descriptionHasBeenSet = false;
180 bool m_creationDateHasBeenSet = false;
181 bool m_lastModifiedDateHasBeenSet = false;
182 bool m_enabledHasBeenSet = false;
183 bool m_typeHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace IoT
188} // namespace Aws
ProvisioningTemplateSummary & WithTemplateName(TemplateNameT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
ProvisioningTemplateSummary & WithDescription(DescriptionT &&value)
AWS_IOT_API ProvisioningTemplateSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ProvisioningTemplateSummary & WithTemplateArn(TemplateArnT &&value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
ProvisioningTemplateSummary & WithType(TemplateType value)
ProvisioningTemplateSummary & WithCreationDate(CreationDateT &&value)
AWS_IOT_API ProvisioningTemplateSummary(Aws::Utils::Json::JsonView jsonValue)
ProvisioningTemplateSummary & WithLastModifiedDate(LastModifiedDateT &&value)
AWS_IOT_API ProvisioningTemplateSummary()=default
const Aws::Utils::DateTime & GetLastModifiedDate() const
ProvisioningTemplateSummary & WithEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue