AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
Watchlist.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/voice-id/VoiceID_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace VoiceID {
21namespace Model {
22
28class Watchlist {
29 public:
30 AWS_VOICEID_API Watchlist() = default;
31 AWS_VOICEID_API Watchlist(Aws::Utils::Json::JsonView jsonValue);
32 AWS_VOICEID_API Watchlist& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
40 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
41 template <typename CreatedAtT = Aws::Utils::DateTime>
42 void SetCreatedAt(CreatedAtT&& value) {
43 m_createdAtHasBeenSet = true;
44 m_createdAt = std::forward<CreatedAtT>(value);
45 }
46 template <typename CreatedAtT = Aws::Utils::DateTime>
47 Watchlist& WithCreatedAt(CreatedAtT&& value) {
48 SetCreatedAt(std::forward<CreatedAtT>(value));
49 return *this;
50 }
52
54
57 inline bool GetDefaultWatchlist() const { return m_defaultWatchlist; }
58 inline bool DefaultWatchlistHasBeenSet() const { return m_defaultWatchlistHasBeenSet; }
59 inline void SetDefaultWatchlist(bool value) {
60 m_defaultWatchlistHasBeenSet = true;
61 m_defaultWatchlist = value;
62 }
63 inline Watchlist& WithDefaultWatchlist(bool value) {
65 return *this;
66 }
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 Watchlist& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDomainId() const { return m_domainId; }
92 inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; }
93 template <typename DomainIdT = Aws::String>
94 void SetDomainId(DomainIdT&& value) {
95 m_domainIdHasBeenSet = true;
96 m_domainId = std::forward<DomainIdT>(value);
97 }
98 template <typename DomainIdT = Aws::String>
99 Watchlist& WithDomainId(DomainIdT&& value) {
100 SetDomainId(std::forward<DomainIdT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetName() const { return m_name; }
110 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
111 template <typename NameT = Aws::String>
112 void SetName(NameT&& value) {
113 m_nameHasBeenSet = true;
114 m_name = std::forward<NameT>(value);
115 }
116 template <typename NameT = Aws::String>
117 Watchlist& WithName(NameT&& value) {
118 SetName(std::forward<NameT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
128 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
129 template <typename UpdatedAtT = Aws::Utils::DateTime>
130 void SetUpdatedAt(UpdatedAtT&& value) {
131 m_updatedAtHasBeenSet = true;
132 m_updatedAt = std::forward<UpdatedAtT>(value);
133 }
134 template <typename UpdatedAtT = Aws::Utils::DateTime>
135 Watchlist& WithUpdatedAt(UpdatedAtT&& value) {
136 SetUpdatedAt(std::forward<UpdatedAtT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::String& GetWatchlistId() const { return m_watchlistId; }
146 inline bool WatchlistIdHasBeenSet() const { return m_watchlistIdHasBeenSet; }
147 template <typename WatchlistIdT = Aws::String>
148 void SetWatchlistId(WatchlistIdT&& value) {
149 m_watchlistIdHasBeenSet = true;
150 m_watchlistId = std::forward<WatchlistIdT>(value);
151 }
152 template <typename WatchlistIdT = Aws::String>
153 Watchlist& WithWatchlistId(WatchlistIdT&& value) {
154 SetWatchlistId(std::forward<WatchlistIdT>(value));
155 return *this;
156 }
158 private:
159 Aws::Utils::DateTime m_createdAt{};
160
161 bool m_defaultWatchlist{false};
162
163 Aws::String m_description;
164
165 Aws::String m_domainId;
166
167 Aws::String m_name;
168
169 Aws::Utils::DateTime m_updatedAt{};
170
171 Aws::String m_watchlistId;
172 bool m_createdAtHasBeenSet = false;
173 bool m_defaultWatchlistHasBeenSet = false;
174 bool m_descriptionHasBeenSet = false;
175 bool m_domainIdHasBeenSet = false;
176 bool m_nameHasBeenSet = false;
177 bool m_updatedAtHasBeenSet = false;
178 bool m_watchlistIdHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace VoiceID
183} // namespace Aws
const Aws::String & GetDescription() const
Definition Watchlist.h:73
Watchlist & WithDescription(DescriptionT &&value)
Definition Watchlist.h:81
void SetCreatedAt(CreatedAtT &&value)
Definition Watchlist.h:42
void SetWatchlistId(WatchlistIdT &&value)
Definition Watchlist.h:148
Watchlist & WithDefaultWatchlist(bool value)
Definition Watchlist.h:63
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Watchlist.h:39
bool DefaultWatchlistHasBeenSet() const
Definition Watchlist.h:58
bool DescriptionHasBeenSet() const
Definition Watchlist.h:74
const Aws::String & GetWatchlistId() const
Definition Watchlist.h:145
Watchlist & WithDomainId(DomainIdT &&value)
Definition Watchlist.h:99
void SetDefaultWatchlist(bool value)
Definition Watchlist.h:59
AWS_VOICEID_API Watchlist(Aws::Utils::Json::JsonView jsonValue)
Watchlist & WithWatchlistId(WatchlistIdT &&value)
Definition Watchlist.h:153
void SetDescription(DescriptionT &&value)
Definition Watchlist.h:76
void SetDomainId(DomainIdT &&value)
Definition Watchlist.h:94
const Aws::String & GetName() const
Definition Watchlist.h:109
Watchlist & WithName(NameT &&value)
Definition Watchlist.h:117
Watchlist & WithCreatedAt(CreatedAtT &&value)
Definition Watchlist.h:47
AWS_VOICEID_API Watchlist()=default
AWS_VOICEID_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VOICEID_API Watchlist & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
Definition Watchlist.h:127
Watchlist & WithUpdatedAt(UpdatedAtT &&value)
Definition Watchlist.h:135
void SetUpdatedAt(UpdatedAtT &&value)
Definition Watchlist.h:130
const Aws::String & GetDomainId() const
Definition Watchlist.h:91
void SetName(NameT &&value)
Definition Watchlist.h:112
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue