AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
BotMetadata.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
10#include <aws/lex-models/model/Status.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelBuildingService {
22namespace Model {
23
30 public:
31 AWS_LEXMODELBUILDINGSERVICE_API BotMetadata() = default;
32 AWS_LEXMODELBUILDINGSERVICE_API BotMetadata(Aws::Utils::Json::JsonView jsonValue);
33 AWS_LEXMODELBUILDINGSERVICE_API BotMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetName() const { return m_name; }
41 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
42 template <typename NameT = Aws::String>
43 void SetName(NameT&& value) {
44 m_nameHasBeenSet = true;
45 m_name = std::forward<NameT>(value);
46 }
47 template <typename NameT = Aws::String>
48 BotMetadata& WithName(NameT&& value) {
49 SetName(std::forward<NameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDescription() const { return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 template <typename DescriptionT = Aws::String>
61 void SetDescription(DescriptionT&& value) {
62 m_descriptionHasBeenSet = true;
63 m_description = std::forward<DescriptionT>(value);
64 }
65 template <typename DescriptionT = Aws::String>
66 BotMetadata& WithDescription(DescriptionT&& value) {
67 SetDescription(std::forward<DescriptionT>(value));
68 return *this;
69 }
71
73
76 inline Status GetStatus() const { return m_status; }
77 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
78 inline void SetStatus(Status value) {
79 m_statusHasBeenSet = true;
80 m_status = value;
81 }
82 inline BotMetadata& WithStatus(Status value) {
83 SetStatus(value);
84 return *this;
85 }
87
89
93 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
94 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
95 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
96 void SetLastUpdatedDate(LastUpdatedDateT&& value) {
97 m_lastUpdatedDateHasBeenSet = true;
98 m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value);
99 }
100 template <typename LastUpdatedDateT = Aws::Utils::DateTime>
101 BotMetadata& WithLastUpdatedDate(LastUpdatedDateT&& value) {
102 SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
112 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
113 template <typename CreatedDateT = Aws::Utils::DateTime>
114 void SetCreatedDate(CreatedDateT&& value) {
115 m_createdDateHasBeenSet = true;
116 m_createdDate = std::forward<CreatedDateT>(value);
117 }
118 template <typename CreatedDateT = Aws::Utils::DateTime>
119 BotMetadata& WithCreatedDate(CreatedDateT&& value) {
120 SetCreatedDate(std::forward<CreatedDateT>(value));
121 return *this;
122 }
124
126
130 inline const Aws::String& GetVersion() const { return m_version; }
131 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
132 template <typename VersionT = Aws::String>
133 void SetVersion(VersionT&& value) {
134 m_versionHasBeenSet = true;
135 m_version = std::forward<VersionT>(value);
136 }
137 template <typename VersionT = Aws::String>
138 BotMetadata& WithVersion(VersionT&& value) {
139 SetVersion(std::forward<VersionT>(value));
140 return *this;
141 }
143 private:
144 Aws::String m_name;
145
146 Aws::String m_description;
147
148 Status m_status{Status::NOT_SET};
149
150 Aws::Utils::DateTime m_lastUpdatedDate{};
151
152 Aws::Utils::DateTime m_createdDate{};
153
154 Aws::String m_version;
155 bool m_nameHasBeenSet = false;
156 bool m_descriptionHasBeenSet = false;
157 bool m_statusHasBeenSet = false;
158 bool m_lastUpdatedDateHasBeenSet = false;
159 bool m_createdDateHasBeenSet = false;
160 bool m_versionHasBeenSet = false;
161};
162
163} // namespace Model
164} // namespace LexModelBuildingService
165} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API BotMetadata(Aws::Utils::Json::JsonView jsonValue)
BotMetadata & WithCreatedDate(CreatedDateT &&value)
void SetLastUpdatedDate(LastUpdatedDateT &&value)
Definition BotMetadata.h:96
const Aws::Utils::DateTime & GetCreatedDate() const
BotMetadata & WithVersion(VersionT &&value)
AWS_LEXMODELBUILDINGSERVICE_API BotMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELBUILDINGSERVICE_API BotMetadata()=default
const Aws::Utils::DateTime & GetLastUpdatedDate() const
Definition BotMetadata.h:93
BotMetadata & WithDescription(DescriptionT &&value)
Definition BotMetadata.h:66
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
BotMetadata & WithLastUpdatedDate(LastUpdatedDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue