AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
TaskTemplateMetadata.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/connect/model/TaskTemplateStatus.h>
10#include <aws/core/utils/DateTime.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 Connect
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CONNECT_API TaskTemplateMetadata() = default;
40 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 TaskTemplateMetadata& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
63 template<typename ArnT = Aws::String>
64 TaskTemplateMetadata& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 template<typename NameT = Aws::String>
74 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
75 template<typename NameT = Aws::String>
76 TaskTemplateMetadata& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
78
80
83 inline const Aws::String& GetDescription() const { return m_description; }
84 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
85 template<typename DescriptionT = Aws::String>
86 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
87 template<typename DescriptionT = Aws::String>
88 TaskTemplateMetadata& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
90
92
98 inline TaskTemplateStatus GetStatus() const { return m_status; }
99 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
100 inline void SetStatus(TaskTemplateStatus value) { m_statusHasBeenSet = true; m_status = value; }
101 inline TaskTemplateMetadata& WithStatus(TaskTemplateStatus value) { SetStatus(value); return *this;}
103
105
108 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
109 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
110 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
111 void SetLastModifiedTime(LastModifiedTimeT&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::forward<LastModifiedTimeT>(value); }
112 template<typename LastModifiedTimeT = Aws::Utils::DateTime>
113 TaskTemplateMetadata& WithLastModifiedTime(LastModifiedTimeT&& value) { SetLastModifiedTime(std::forward<LastModifiedTimeT>(value)); return *this;}
115
117
120 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
121 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
122 template<typename CreatedTimeT = Aws::Utils::DateTime>
123 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
124 template<typename CreatedTimeT = Aws::Utils::DateTime>
125 TaskTemplateMetadata& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
127 private:
128
129 Aws::String m_id;
130 bool m_idHasBeenSet = false;
131
132 Aws::String m_arn;
133 bool m_arnHasBeenSet = false;
134
135 Aws::String m_name;
136 bool m_nameHasBeenSet = false;
137
138 Aws::String m_description;
139 bool m_descriptionHasBeenSet = false;
140
142 bool m_statusHasBeenSet = false;
143
144 Aws::Utils::DateTime m_lastModifiedTime{};
145 bool m_lastModifiedTimeHasBeenSet = false;
146
147 Aws::Utils::DateTime m_createdTime{};
148 bool m_createdTimeHasBeenSet = false;
149 };
150
151} // namespace Model
152} // namespace Connect
153} // 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