AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BotMetadata.h
1
6#pragma once
7#include <aws/lex-models/LexModelBuildingService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex-models/model/Status.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 LexModelBuildingService
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_LEXMODELBUILDINGSERVICE_API BotMetadata() = default;
37 AWS_LEXMODELBUILDINGSERVICE_API BotMetadata(Aws::Utils::Json::JsonView jsonValue);
38 AWS_LEXMODELBUILDINGSERVICE_API BotMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 BotMetadata& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
62 template<typename DescriptionT = Aws::String>
63 BotMetadata& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
65
67
70 inline Status GetStatus() const { return m_status; }
71 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
72 inline void SetStatus(Status value) { m_statusHasBeenSet = true; m_status = value; }
73 inline BotMetadata& WithStatus(Status value) { SetStatus(value); return *this;}
75
77
81 inline const Aws::Utils::DateTime& GetLastUpdatedDate() const { return m_lastUpdatedDate; }
82 inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; }
83 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
84 void SetLastUpdatedDate(LastUpdatedDateT&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::forward<LastUpdatedDateT>(value); }
85 template<typename LastUpdatedDateT = Aws::Utils::DateTime>
86 BotMetadata& WithLastUpdatedDate(LastUpdatedDateT&& value) { SetLastUpdatedDate(std::forward<LastUpdatedDateT>(value)); return *this;}
88
90
93 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
94 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
95 template<typename CreatedDateT = Aws::Utils::DateTime>
96 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
97 template<typename CreatedDateT = Aws::Utils::DateTime>
98 BotMetadata& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
100
102
106 inline const Aws::String& GetVersion() const { return m_version; }
107 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
108 template<typename VersionT = Aws::String>
109 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
110 template<typename VersionT = Aws::String>
111 BotMetadata& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
113 private:
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
118 Aws::String m_description;
119 bool m_descriptionHasBeenSet = false;
120
121 Status m_status{Status::NOT_SET};
122 bool m_statusHasBeenSet = false;
123
124 Aws::Utils::DateTime m_lastUpdatedDate{};
125 bool m_lastUpdatedDateHasBeenSet = false;
126
127 Aws::Utils::DateTime m_createdDate{};
128 bool m_createdDateHasBeenSet = false;
129
130 Aws::String m_version;
131 bool m_versionHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace LexModelBuildingService
136} // namespace Aws
AWS_LEXMODELBUILDINGSERVICE_API BotMetadata(Aws::Utils::Json::JsonView jsonValue)
BotMetadata & WithCreatedDate(CreatedDateT &&value)
Definition BotMetadata.h:98
void SetLastUpdatedDate(LastUpdatedDateT &&value)
Definition BotMetadata.h:84
const Aws::Utils::DateTime & GetCreatedDate() const
Definition BotMetadata.h:93
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:81
BotMetadata & WithDescription(DescriptionT &&value)
Definition BotMetadata.h:63
AWS_LEXMODELBUILDINGSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
BotMetadata & WithLastUpdatedDate(LastUpdatedDateT &&value)
Definition BotMetadata.h:86
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue