AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
AppBlock.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/model/AppBlockState.h>
9#include <aws/appstream/model/ErrorDetails.h>
10#include <aws/appstream/model/PackagingType.h>
11#include <aws/appstream/model/S3Location.h>
12#include <aws/appstream/model/ScriptDetails.h>
13#include <aws/core/utils/DateTime.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AppStream {
27namespace Model {
28
40class AppBlock {
41 public:
42 AWS_APPSTREAM_API AppBlock() = default;
43 AWS_APPSTREAM_API AppBlock(Aws::Utils::Json::JsonView jsonValue);
44 AWS_APPSTREAM_API AppBlock& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
46
48
51 inline const Aws::String& GetName() const { return m_name; }
52 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 template <typename NameT = Aws::String>
54 void SetName(NameT&& value) {
55 m_nameHasBeenSet = true;
56 m_name = std::forward<NameT>(value);
57 }
58 template <typename NameT = Aws::String>
59 AppBlock& WithName(NameT&& value) {
60 SetName(std::forward<NameT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetArn() const { return m_arn; }
70 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
71 template <typename ArnT = Aws::String>
72 void SetArn(ArnT&& value) {
73 m_arnHasBeenSet = true;
74 m_arn = std::forward<ArnT>(value);
75 }
76 template <typename ArnT = Aws::String>
77 AppBlock& WithArn(ArnT&& value) {
78 SetArn(std::forward<ArnT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::String& GetDescription() const { return m_description; }
88 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
89 template <typename DescriptionT = Aws::String>
90 void SetDescription(DescriptionT&& value) {
91 m_descriptionHasBeenSet = true;
92 m_description = std::forward<DescriptionT>(value);
93 }
94 template <typename DescriptionT = Aws::String>
95 AppBlock& WithDescription(DescriptionT&& value) {
96 SetDescription(std::forward<DescriptionT>(value));
97 return *this;
98 }
100
102
105 inline const Aws::String& GetDisplayName() const { return m_displayName; }
106 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
107 template <typename DisplayNameT = Aws::String>
108 void SetDisplayName(DisplayNameT&& value) {
109 m_displayNameHasBeenSet = true;
110 m_displayName = std::forward<DisplayNameT>(value);
111 }
112 template <typename DisplayNameT = Aws::String>
113 AppBlock& WithDisplayName(DisplayNameT&& value) {
114 SetDisplayName(std::forward<DisplayNameT>(value));
115 return *this;
116 }
118
120
123 inline const S3Location& GetSourceS3Location() const { return m_sourceS3Location; }
124 inline bool SourceS3LocationHasBeenSet() const { return m_sourceS3LocationHasBeenSet; }
125 template <typename SourceS3LocationT = S3Location>
126 void SetSourceS3Location(SourceS3LocationT&& value) {
127 m_sourceS3LocationHasBeenSet = true;
128 m_sourceS3Location = std::forward<SourceS3LocationT>(value);
129 }
130 template <typename SourceS3LocationT = S3Location>
131 AppBlock& WithSourceS3Location(SourceS3LocationT&& value) {
132 SetSourceS3Location(std::forward<SourceS3LocationT>(value));
133 return *this;
134 }
136
138
142 inline const ScriptDetails& GetSetupScriptDetails() const { return m_setupScriptDetails; }
143 inline bool SetupScriptDetailsHasBeenSet() const { return m_setupScriptDetailsHasBeenSet; }
144 template <typename SetupScriptDetailsT = ScriptDetails>
145 void SetSetupScriptDetails(SetupScriptDetailsT&& value) {
146 m_setupScriptDetailsHasBeenSet = true;
147 m_setupScriptDetails = std::forward<SetupScriptDetailsT>(value);
148 }
149 template <typename SetupScriptDetailsT = ScriptDetails>
150 AppBlock& WithSetupScriptDetails(SetupScriptDetailsT&& value) {
151 SetSetupScriptDetails(std::forward<SetupScriptDetailsT>(value));
152 return *this;
153 }
155
157
160 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
161 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
162 template <typename CreatedTimeT = Aws::Utils::DateTime>
163 void SetCreatedTime(CreatedTimeT&& value) {
164 m_createdTimeHasBeenSet = true;
165 m_createdTime = std::forward<CreatedTimeT>(value);
166 }
167 template <typename CreatedTimeT = Aws::Utils::DateTime>
168 AppBlock& WithCreatedTime(CreatedTimeT&& value) {
169 SetCreatedTime(std::forward<CreatedTimeT>(value));
170 return *this;
171 }
173
175
179 inline const ScriptDetails& GetPostSetupScriptDetails() const { return m_postSetupScriptDetails; }
180 inline bool PostSetupScriptDetailsHasBeenSet() const { return m_postSetupScriptDetailsHasBeenSet; }
181 template <typename PostSetupScriptDetailsT = ScriptDetails>
182 void SetPostSetupScriptDetails(PostSetupScriptDetailsT&& value) {
183 m_postSetupScriptDetailsHasBeenSet = true;
184 m_postSetupScriptDetails = std::forward<PostSetupScriptDetailsT>(value);
185 }
186 template <typename PostSetupScriptDetailsT = ScriptDetails>
187 AppBlock& WithPostSetupScriptDetails(PostSetupScriptDetailsT&& value) {
188 SetPostSetupScriptDetails(std::forward<PostSetupScriptDetailsT>(value));
189 return *this;
190 }
192
194
197 inline PackagingType GetPackagingType() const { return m_packagingType; }
198 inline bool PackagingTypeHasBeenSet() const { return m_packagingTypeHasBeenSet; }
199 inline void SetPackagingType(PackagingType value) {
200 m_packagingTypeHasBeenSet = true;
201 m_packagingType = value;
202 }
204 SetPackagingType(value);
205 return *this;
206 }
208
210
218 inline AppBlockState GetState() const { return m_state; }
219 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
220 inline void SetState(AppBlockState value) {
221 m_stateHasBeenSet = true;
222 m_state = value;
223 }
225 SetState(value);
226 return *this;
227 }
229
231
234 inline const Aws::Vector<ErrorDetails>& GetAppBlockErrors() const { return m_appBlockErrors; }
235 inline bool AppBlockErrorsHasBeenSet() const { return m_appBlockErrorsHasBeenSet; }
236 template <typename AppBlockErrorsT = Aws::Vector<ErrorDetails>>
237 void SetAppBlockErrors(AppBlockErrorsT&& value) {
238 m_appBlockErrorsHasBeenSet = true;
239 m_appBlockErrors = std::forward<AppBlockErrorsT>(value);
240 }
241 template <typename AppBlockErrorsT = Aws::Vector<ErrorDetails>>
242 AppBlock& WithAppBlockErrors(AppBlockErrorsT&& value) {
243 SetAppBlockErrors(std::forward<AppBlockErrorsT>(value));
244 return *this;
245 }
246 template <typename AppBlockErrorsT = ErrorDetails>
247 AppBlock& AddAppBlockErrors(AppBlockErrorsT&& value) {
248 m_appBlockErrorsHasBeenSet = true;
249 m_appBlockErrors.emplace_back(std::forward<AppBlockErrorsT>(value));
250 return *this;
251 }
253 private:
254 Aws::String m_name;
255
256 Aws::String m_arn;
257
258 Aws::String m_description;
259
260 Aws::String m_displayName;
261
262 S3Location m_sourceS3Location;
263
264 ScriptDetails m_setupScriptDetails;
265
266 Aws::Utils::DateTime m_createdTime{};
267
268 ScriptDetails m_postSetupScriptDetails;
269
270 PackagingType m_packagingType{PackagingType::NOT_SET};
271
273
274 Aws::Vector<ErrorDetails> m_appBlockErrors;
275 bool m_nameHasBeenSet = false;
276 bool m_arnHasBeenSet = false;
277 bool m_descriptionHasBeenSet = false;
278 bool m_displayNameHasBeenSet = false;
279 bool m_sourceS3LocationHasBeenSet = false;
280 bool m_setupScriptDetailsHasBeenSet = false;
281 bool m_createdTimeHasBeenSet = false;
282 bool m_postSetupScriptDetailsHasBeenSet = false;
283 bool m_packagingTypeHasBeenSet = false;
284 bool m_stateHasBeenSet = false;
285 bool m_appBlockErrorsHasBeenSet = false;
286};
287
288} // namespace Model
289} // namespace AppStream
290} // namespace Aws
void SetPostSetupScriptDetails(PostSetupScriptDetailsT &&value)
Definition AppBlock.h:182
AppBlock & WithPackagingType(PackagingType value)
Definition AppBlock.h:203
PackagingType GetPackagingType() const
Definition AppBlock.h:197
AWS_APPSTREAM_API AppBlock()=default
const Aws::Vector< ErrorDetails > & GetAppBlockErrors() const
Definition AppBlock.h:234
AppBlock & WithDisplayName(DisplayNameT &&value)
Definition AppBlock.h:113
void SetDisplayName(DisplayNameT &&value)
Definition AppBlock.h:108
const Aws::String & GetDescription() const
Definition AppBlock.h:87
void SetAppBlockErrors(AppBlockErrorsT &&value)
Definition AppBlock.h:237
bool DescriptionHasBeenSet() const
Definition AppBlock.h:88
AppBlock & WithCreatedTime(CreatedTimeT &&value)
Definition AppBlock.h:168
const ScriptDetails & GetSetupScriptDetails() const
Definition AppBlock.h:142
AppBlock & WithSourceS3Location(SourceS3LocationT &&value)
Definition AppBlock.h:131
AWS_APPSTREAM_API AppBlock & operator=(Aws::Utils::Json::JsonView jsonValue)
bool AppBlockErrorsHasBeenSet() const
Definition AppBlock.h:235
bool SourceS3LocationHasBeenSet() const
Definition AppBlock.h:124
void SetCreatedTime(CreatedTimeT &&value)
Definition AppBlock.h:163
AppBlock & WithState(AppBlockState value)
Definition AppBlock.h:224
const S3Location & GetSourceS3Location() const
Definition AppBlock.h:123
AppBlock & WithDescription(DescriptionT &&value)
Definition AppBlock.h:95
bool SetupScriptDetailsHasBeenSet() const
Definition AppBlock.h:143
const Aws::String & GetName() const
Definition AppBlock.h:51
AppBlock & WithAppBlockErrors(AppBlockErrorsT &&value)
Definition AppBlock.h:242
AppBlockState GetState() const
Definition AppBlock.h:218
void SetDescription(DescriptionT &&value)
Definition AppBlock.h:90
AWS_APPSTREAM_API AppBlock(Aws::Utils::Json::JsonView jsonValue)
const ScriptDetails & GetPostSetupScriptDetails() const
Definition AppBlock.h:179
AppBlock & WithPostSetupScriptDetails(PostSetupScriptDetailsT &&value)
Definition AppBlock.h:187
void SetState(AppBlockState value)
Definition AppBlock.h:220
void SetSourceS3Location(SourceS3LocationT &&value)
Definition AppBlock.h:126
bool PackagingTypeHasBeenSet() const
Definition AppBlock.h:198
void SetSetupScriptDetails(SetupScriptDetailsT &&value)
Definition AppBlock.h:145
bool PostSetupScriptDetailsHasBeenSet() const
Definition AppBlock.h:180
AppBlock & AddAppBlockErrors(AppBlockErrorsT &&value)
Definition AppBlock.h:247
const Aws::String & GetArn() const
Definition AppBlock.h:69
const Aws::Utils::DateTime & GetCreatedTime() const
Definition AppBlock.h:160
void SetPackagingType(PackagingType value)
Definition AppBlock.h:199
void SetName(NameT &&value)
Definition AppBlock.h:54
AppBlock & WithArn(ArnT &&value)
Definition AppBlock.h:77
void SetArn(ArnT &&value)
Definition AppBlock.h:72
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
AppBlock & WithSetupScriptDetails(SetupScriptDetailsT &&value)
Definition AppBlock.h:150
AppBlock & WithName(NameT &&value)
Definition AppBlock.h:59
const Aws::String & GetDisplayName() const
Definition AppBlock.h:105
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue