AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
TaskTemplateMetadata.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/model/TaskTemplateStatus.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect {
22namespace Model {
23
31 public:
32 AWS_CONNECT_API TaskTemplateMetadata() = default;
35 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetName() const { return m_name; }
78 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
79 template <typename NameT = Aws::String>
80 void SetName(NameT&& value) {
81 m_nameHasBeenSet = true;
82 m_name = std::forward<NameT>(value);
83 }
84 template <typename NameT = Aws::String>
86 SetName(std::forward<NameT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetDescription() const { return m_description; }
96 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
97 template <typename DescriptionT = Aws::String>
98 void SetDescription(DescriptionT&& value) {
99 m_descriptionHasBeenSet = true;
100 m_description = std::forward<DescriptionT>(value);
101 }
102 template <typename DescriptionT = Aws::String>
103 TaskTemplateMetadata& WithDescription(DescriptionT&& value) {
104 SetDescription(std::forward<DescriptionT>(value));
105 return *this;
106 }
108
110
116 inline TaskTemplateStatus GetStatus() const { return m_status; }
117 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
118 inline void SetStatus(TaskTemplateStatus value) {
119 m_statusHasBeenSet = true;
120 m_status = value;
121 }
123 SetStatus(value);
124 return *this;
125 }
127
129
132 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
133 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
134 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
135 void SetLastModifiedTime(LastModifiedTimeT&& value) {
136 m_lastModifiedTimeHasBeenSet = true;
137 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
138 }
139 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
140 TaskTemplateMetadata& WithLastModifiedTime(LastModifiedTimeT&& value) {
141 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
151 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
152 template <typename CreatedTimeT = Aws::Utils::DateTime>
153 void SetCreatedTime(CreatedTimeT&& value) {
154 m_createdTimeHasBeenSet = true;
155 m_createdTime = std::forward<CreatedTimeT>(value);
156 }
157 template <typename CreatedTimeT = Aws::Utils::DateTime>
158 TaskTemplateMetadata& WithCreatedTime(CreatedTimeT&& value) {
159 SetCreatedTime(std::forward<CreatedTimeT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_id;
165
166 Aws::String m_arn;
167
168 Aws::String m_name;
169
170 Aws::String m_description;
171
173
174 Aws::Utils::DateTime m_lastModifiedTime{};
175
176 Aws::Utils::DateTime m_createdTime{};
177 bool m_idHasBeenSet = false;
178 bool m_arnHasBeenSet = false;
179 bool m_nameHasBeenSet = false;
180 bool m_descriptionHasBeenSet = false;
181 bool m_statusHasBeenSet = false;
182 bool m_lastModifiedTimeHasBeenSet = false;
183 bool m_createdTimeHasBeenSet = false;
184};
185
186} // namespace Model
187} // namespace Connect
188} // namespace Aws
TaskTemplateMetadata & WithDescription(DescriptionT &&value)
TaskTemplateMetadata & WithArn(ArnT &&value)
TaskTemplateMetadata & WithId(IdT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CONNECT_API TaskTemplateMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
TaskTemplateMetadata & WithLastModifiedTime(LastModifiedTimeT &&value)
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetLastModifiedTime(LastModifiedTimeT &&value)
TaskTemplateMetadata & WithStatus(TaskTemplateStatus value)
AWS_CONNECT_API TaskTemplateMetadata()=default
TaskTemplateMetadata & WithCreatedTime(CreatedTimeT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_CONNECT_API TaskTemplateMetadata(Aws::Utils::Json::JsonView jsonValue)
TaskTemplateMetadata & WithName(NameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue