AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Entitlement.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/AppVisibility.h>
9#include <aws/appstream/model/EntitlementAttribute.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace AppStream {
24namespace Model {
25
38 public:
39 AWS_APPSTREAM_API Entitlement() = default;
40 AWS_APPSTREAM_API Entitlement(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPSTREAM_API Entitlement& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template <typename NameT = Aws::String>
51 void SetName(NameT&& value) {
52 m_nameHasBeenSet = true;
53 m_name = std::forward<NameT>(value);
54 }
55 template <typename NameT = Aws::String>
56 Entitlement& WithName(NameT&& value) {
57 SetName(std::forward<NameT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetStackName() const { return m_stackName; }
67 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
68 template <typename StackNameT = Aws::String>
69 void SetStackName(StackNameT&& value) {
70 m_stackNameHasBeenSet = true;
71 m_stackName = std::forward<StackNameT>(value);
72 }
73 template <typename StackNameT = Aws::String>
74 Entitlement& WithStackName(StackNameT&& value) {
75 SetStackName(std::forward<StackNameT>(value));
76 return *this;
77 }
79
81
84 inline const Aws::String& GetDescription() const { return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 template <typename DescriptionT = Aws::String>
87 void SetDescription(DescriptionT&& value) {
88 m_descriptionHasBeenSet = true;
89 m_description = std::forward<DescriptionT>(value);
90 }
91 template <typename DescriptionT = Aws::String>
92 Entitlement& WithDescription(DescriptionT&& value) {
93 SetDescription(std::forward<DescriptionT>(value));
94 return *this;
95 }
97
99
102 inline AppVisibility GetAppVisibility() const { return m_appVisibility; }
103 inline bool AppVisibilityHasBeenSet() const { return m_appVisibilityHasBeenSet; }
104 inline void SetAppVisibility(AppVisibility value) {
105 m_appVisibilityHasBeenSet = true;
106 m_appVisibility = value;
107 }
109 SetAppVisibility(value);
110 return *this;
111 }
113
115
118 inline const Aws::Vector<EntitlementAttribute>& GetAttributes() const { return m_attributes; }
119 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
120 template <typename AttributesT = Aws::Vector<EntitlementAttribute>>
121 void SetAttributes(AttributesT&& value) {
122 m_attributesHasBeenSet = true;
123 m_attributes = std::forward<AttributesT>(value);
124 }
125 template <typename AttributesT = Aws::Vector<EntitlementAttribute>>
126 Entitlement& WithAttributes(AttributesT&& value) {
127 SetAttributes(std::forward<AttributesT>(value));
128 return *this;
129 }
130 template <typename AttributesT = EntitlementAttribute>
131 Entitlement& AddAttributes(AttributesT&& value) {
132 m_attributesHasBeenSet = true;
133 m_attributes.emplace_back(std::forward<AttributesT>(value));
134 return *this;
135 }
137
139
142 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
143 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
144 template <typename CreatedTimeT = Aws::Utils::DateTime>
145 void SetCreatedTime(CreatedTimeT&& value) {
146 m_createdTimeHasBeenSet = true;
147 m_createdTime = std::forward<CreatedTimeT>(value);
148 }
149 template <typename CreatedTimeT = Aws::Utils::DateTime>
150 Entitlement& WithCreatedTime(CreatedTimeT&& value) {
151 SetCreatedTime(std::forward<CreatedTimeT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetLastModifiedTime() const { return m_lastModifiedTime; }
161 inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; }
162 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
163 void SetLastModifiedTime(LastModifiedTimeT&& value) {
164 m_lastModifiedTimeHasBeenSet = true;
165 m_lastModifiedTime = std::forward<LastModifiedTimeT>(value);
166 }
167 template <typename LastModifiedTimeT = Aws::Utils::DateTime>
168 Entitlement& WithLastModifiedTime(LastModifiedTimeT&& value) {
169 SetLastModifiedTime(std::forward<LastModifiedTimeT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_name;
175
176 Aws::String m_stackName;
177
178 Aws::String m_description;
179
180 AppVisibility m_appVisibility{AppVisibility::NOT_SET};
181
183
184 Aws::Utils::DateTime m_createdTime{};
185
186 Aws::Utils::DateTime m_lastModifiedTime{};
187 bool m_nameHasBeenSet = false;
188 bool m_stackNameHasBeenSet = false;
189 bool m_descriptionHasBeenSet = false;
190 bool m_appVisibilityHasBeenSet = false;
191 bool m_attributesHasBeenSet = false;
192 bool m_createdTimeHasBeenSet = false;
193 bool m_lastModifiedTimeHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace AppStream
198} // namespace Aws
Entitlement & WithStackName(StackNameT &&value)
Definition Entitlement.h:74
Entitlement & WithName(NameT &&value)
Definition Entitlement.h:56
const Aws::Vector< EntitlementAttribute > & GetAttributes() const
const Aws::String & GetName() const
Definition Entitlement.h:48
void SetDescription(DescriptionT &&value)
Definition Entitlement.h:87
Entitlement & WithAppVisibility(AppVisibility value)
void SetLastModifiedTime(LastModifiedTimeT &&value)
Entitlement & WithAttributes(AttributesT &&value)
const Aws::String & GetStackName() const
Definition Entitlement.h:66
void SetAttributes(AttributesT &&value)
Entitlement & WithDescription(DescriptionT &&value)
Definition Entitlement.h:92
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetLastModifiedTime() const
void SetCreatedTime(CreatedTimeT &&value)
AWS_APPSTREAM_API Entitlement & operator=(Aws::Utils::Json::JsonView jsonValue)
Entitlement & WithLastModifiedTime(LastModifiedTimeT &&value)
AppVisibility GetAppVisibility() const
void SetStackName(StackNameT &&value)
Definition Entitlement.h:69
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_APPSTREAM_API Entitlement()=default
AWS_APPSTREAM_API Entitlement(Aws::Utils::Json::JsonView jsonValue)
Entitlement & WithCreatedTime(CreatedTimeT &&value)
Entitlement & AddAttributes(AttributesT &&value)
void SetAppVisibility(AppVisibility value)
const Aws::String & GetDescription() const
Definition Entitlement.h:84
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue