AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProvisioningTemplateSummary.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/iot/model/TemplateType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace IoT
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_IOT_API ProvisioningTemplateSummary() = default;
41
42
44
47 inline const Aws::String& GetTemplateArn() const { return m_templateArn; }
48 inline bool TemplateArnHasBeenSet() const { return m_templateArnHasBeenSet; }
49 template<typename TemplateArnT = Aws::String>
50 void SetTemplateArn(TemplateArnT&& value) { m_templateArnHasBeenSet = true; m_templateArn = std::forward<TemplateArnT>(value); }
51 template<typename TemplateArnT = Aws::String>
52 ProvisioningTemplateSummary& WithTemplateArn(TemplateArnT&& value) { SetTemplateArn(std::forward<TemplateArnT>(value)); return *this;}
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) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
63 template<typename TemplateNameT = Aws::String>
64 ProvisioningTemplateSummary& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDescription() const { return m_description; }
72 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
73 template<typename DescriptionT = Aws::String>
74 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
75 template<typename DescriptionT = Aws::String>
76 ProvisioningTemplateSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
84 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
85 template<typename CreationDateT = Aws::Utils::DateTime>
86 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
87 template<typename CreationDateT = Aws::Utils::DateTime>
88 ProvisioningTemplateSummary& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
90
92
95 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
96 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
97 template<typename LastModifiedDateT = Aws::Utils::DateTime>
98 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
99 template<typename LastModifiedDateT = Aws::Utils::DateTime>
100 ProvisioningTemplateSummary& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
102
104
107 inline bool GetEnabled() const { return m_enabled; }
108 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
109 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
110 inline ProvisioningTemplateSummary& WithEnabled(bool value) { SetEnabled(value); return *this;}
112
114
122 inline TemplateType GetType() const { return m_type; }
123 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
124 inline void SetType(TemplateType value) { m_typeHasBeenSet = true; m_type = value; }
125 inline ProvisioningTemplateSummary& WithType(TemplateType value) { SetType(value); return *this;}
127 private:
128
129 Aws::String m_templateArn;
130 bool m_templateArnHasBeenSet = false;
131
132 Aws::String m_templateName;
133 bool m_templateNameHasBeenSet = false;
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
138 Aws::Utils::DateTime m_creationDate{};
139 bool m_creationDateHasBeenSet = false;
140
141 Aws::Utils::DateTime m_lastModifiedDate{};
142 bool m_lastModifiedDateHasBeenSet = false;
143
144 bool m_enabled{false};
145 bool m_enabledHasBeenSet = false;
146
148 bool m_typeHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace IoT
153} // 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