AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
Entitlement.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace AppStream
26{
27namespace Model
28{
29
42 {
43 public:
48
49
53 inline const Aws::String& GetName() const{ return m_name; }
54
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59
63 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
64
68 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
69
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74
78 inline Entitlement& WithName(const Aws::String& value) { SetName(value); return *this;}
79
83 inline Entitlement& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
84
88 inline Entitlement& WithName(const char* value) { SetName(value); return *this;}
89
90
94 inline const Aws::String& GetStackName() const{ return m_stackName; }
95
99 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
100
104 inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
105
109 inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
110
114 inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
115
119 inline Entitlement& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
120
124 inline Entitlement& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
125
129 inline Entitlement& WithStackName(const char* value) { SetStackName(value); return *this;}
130
131
135 inline const Aws::String& GetDescription() const{ return m_description; }
136
140 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
141
145 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
146
150 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
151
155 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
156
160 inline Entitlement& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
161
165 inline Entitlement& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
166
170 inline Entitlement& WithDescription(const char* value) { SetDescription(value); return *this;}
171
172
176 inline const AppVisibility& GetAppVisibility() const{ return m_appVisibility; }
177
181 inline bool AppVisibilityHasBeenSet() const { return m_appVisibilityHasBeenSet; }
182
186 inline void SetAppVisibility(const AppVisibility& value) { m_appVisibilityHasBeenSet = true; m_appVisibility = value; }
187
191 inline void SetAppVisibility(AppVisibility&& value) { m_appVisibilityHasBeenSet = true; m_appVisibility = std::move(value); }
192
196 inline Entitlement& WithAppVisibility(const AppVisibility& value) { SetAppVisibility(value); return *this;}
197
201 inline Entitlement& WithAppVisibility(AppVisibility&& value) { SetAppVisibility(std::move(value)); return *this;}
202
203
207 inline const Aws::Vector<EntitlementAttribute>& GetAttributes() const{ return m_attributes; }
208
212 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
213
217 inline void SetAttributes(const Aws::Vector<EntitlementAttribute>& value) { m_attributesHasBeenSet = true; m_attributes = value; }
218
222 inline void SetAttributes(Aws::Vector<EntitlementAttribute>&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); }
223
227 inline Entitlement& WithAttributes(const Aws::Vector<EntitlementAttribute>& value) { SetAttributes(value); return *this;}
228
232 inline Entitlement& WithAttributes(Aws::Vector<EntitlementAttribute>&& value) { SetAttributes(std::move(value)); return *this;}
233
237 inline Entitlement& AddAttributes(const EntitlementAttribute& value) { m_attributesHasBeenSet = true; m_attributes.push_back(value); return *this; }
238
242 inline Entitlement& AddAttributes(EntitlementAttribute&& value) { m_attributesHasBeenSet = true; m_attributes.push_back(std::move(value)); return *this; }
243
244
248 inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; }
249
253 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
254
258 inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; }
259
263 inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); }
264
268 inline Entitlement& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;}
269
273 inline Entitlement& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;}
274
275
279 inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; }
280
284 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
285
289 inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; }
290
294 inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); }
295
299 inline Entitlement& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;}
300
304 inline Entitlement& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;}
305
306 private:
307
308 Aws::String m_name;
309 bool m_nameHasBeenSet = false;
310
311 Aws::String m_stackName;
312 bool m_stackNameHasBeenSet = false;
313
314 Aws::String m_description;
315 bool m_descriptionHasBeenSet = false;
316
317 AppVisibility m_appVisibility;
318 bool m_appVisibilityHasBeenSet = false;
319
321 bool m_attributesHasBeenSet = false;
322
323 Aws::Utils::DateTime m_createdTime;
324 bool m_createdTimeHasBeenSet = false;
325
326 Aws::Utils::DateTime m_lastModifiedTime;
327 bool m_lastModifiedTimeHasBeenSet = false;
328 };
329
330} // namespace Model
331} // namespace AppStream
332} // namespace Aws
#define AWS_APPSTREAM_API
Entitlement & WithLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: Entitlement.h:304
const AppVisibility & GetAppVisibility() const
Definition: Entitlement.h:176
const Aws::Vector< EntitlementAttribute > & GetAttributes() const
Definition: Entitlement.h:207
void SetAttributes(Aws::Vector< EntitlementAttribute > &&value)
Definition: Entitlement.h:222
void SetCreatedTime(const Aws::Utils::DateTime &value)
Definition: Entitlement.h:258
void SetStackName(const Aws::String &value)
Definition: Entitlement.h:104
Entitlement & WithCreatedTime(Aws::Utils::DateTime &&value)
Definition: Entitlement.h:273
Entitlement & WithDescription(const Aws::String &value)
Definition: Entitlement.h:160
void SetStackName(Aws::String &&value)
Definition: Entitlement.h:109
const Aws::String & GetName() const
Definition: Entitlement.h:53
Entitlement & WithStackName(Aws::String &&value)
Definition: Entitlement.h:124
Entitlement & AddAttributes(EntitlementAttribute &&value)
Definition: Entitlement.h:242
Entitlement & WithName(const Aws::String &value)
Definition: Entitlement.h:78
void SetName(const char *value)
Definition: Entitlement.h:73
Entitlement & AddAttributes(const EntitlementAttribute &value)
Definition: Entitlement.h:237
void SetDescription(const Aws::String &value)
Definition: Entitlement.h:145
Entitlement & WithLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: Entitlement.h:299
const Aws::String & GetStackName() const
Definition: Entitlement.h:94
Entitlement & WithStackName(const char *value)
Definition: Entitlement.h:129
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
Definition: Entitlement.h:279
Entitlement & WithDescription(const char *value)
Definition: Entitlement.h:170
void SetAppVisibility(const AppVisibility &value)
Definition: Entitlement.h:186
AWS_APPSTREAM_API Entitlement & operator=(Aws::Utils::Json::JsonView jsonValue)
Entitlement & WithName(const char *value)
Definition: Entitlement.h:88
void SetLastModifiedTime(Aws::Utils::DateTime &&value)
Definition: Entitlement.h:294
Entitlement & WithCreatedTime(const Aws::Utils::DateTime &value)
Definition: Entitlement.h:268
const Aws::Utils::DateTime & GetCreatedTime() const
Definition: Entitlement.h:248
void SetLastModifiedTime(const Aws::Utils::DateTime &value)
Definition: Entitlement.h:289
Entitlement & WithAttributes(Aws::Vector< EntitlementAttribute > &&value)
Definition: Entitlement.h:232
AWS_APPSTREAM_API Entitlement(Aws::Utils::Json::JsonView jsonValue)
void SetAttributes(const Aws::Vector< EntitlementAttribute > &value)
Definition: Entitlement.h:217
void SetName(Aws::String &&value)
Definition: Entitlement.h:68
void SetCreatedTime(Aws::Utils::DateTime &&value)
Definition: Entitlement.h:263
void SetName(const Aws::String &value)
Definition: Entitlement.h:63
Entitlement & WithStackName(const Aws::String &value)
Definition: Entitlement.h:119
Entitlement & WithName(Aws::String &&value)
Definition: Entitlement.h:83
void SetStackName(const char *value)
Definition: Entitlement.h:114
Entitlement & WithDescription(Aws::String &&value)
Definition: Entitlement.h:165
void SetDescription(Aws::String &&value)
Definition: Entitlement.h:150
void SetDescription(const char *value)
Definition: Entitlement.h:155
Entitlement & WithAppVisibility(AppVisibility &&value)
Definition: Entitlement.h:201
void SetAppVisibility(AppVisibility &&value)
Definition: Entitlement.h:191
const Aws::String & GetDescription() const
Definition: Entitlement.h:135
Entitlement & WithAttributes(const Aws::Vector< EntitlementAttribute > &value)
Definition: Entitlement.h:227
Entitlement & WithAppVisibility(const AppVisibility &value)
Definition: Entitlement.h:196
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector