AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
CreateAppBlockRequest.h
Go to the documentation of this file.
1
6#pragma once
13#include <utility>
14
15namespace Aws
16{
17namespace AppStream
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateAppBlock"; }
34
36
38
39
43 inline const Aws::String& GetName() const{ return m_name; }
44
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
49
53 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
54
58 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
59
63 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
64
68 inline CreateAppBlockRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
69
73 inline CreateAppBlockRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
74
78 inline CreateAppBlockRequest& WithName(const char* value) { SetName(value); return *this;}
79
80
84 inline const Aws::String& GetDescription() const{ return m_description; }
85
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90
94 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
95
99 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
100
104 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
105
109 inline CreateAppBlockRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
110
114 inline CreateAppBlockRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
115
119 inline CreateAppBlockRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
120
121
125 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
126
130 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
131
135 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
136
140 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
141
145 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
146
150 inline CreateAppBlockRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
151
155 inline CreateAppBlockRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
156
160 inline CreateAppBlockRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
161
162
166 inline const S3Location& GetSourceS3Location() const{ return m_sourceS3Location; }
167
171 inline bool SourceS3LocationHasBeenSet() const { return m_sourceS3LocationHasBeenSet; }
172
176 inline void SetSourceS3Location(const S3Location& value) { m_sourceS3LocationHasBeenSet = true; m_sourceS3Location = value; }
177
181 inline void SetSourceS3Location(S3Location&& value) { m_sourceS3LocationHasBeenSet = true; m_sourceS3Location = std::move(value); }
182
186 inline CreateAppBlockRequest& WithSourceS3Location(const S3Location& value) { SetSourceS3Location(value); return *this;}
187
191 inline CreateAppBlockRequest& WithSourceS3Location(S3Location&& value) { SetSourceS3Location(std::move(value)); return *this;}
192
193
197 inline const ScriptDetails& GetSetupScriptDetails() const{ return m_setupScriptDetails; }
198
202 inline bool SetupScriptDetailsHasBeenSet() const { return m_setupScriptDetailsHasBeenSet; }
203
207 inline void SetSetupScriptDetails(const ScriptDetails& value) { m_setupScriptDetailsHasBeenSet = true; m_setupScriptDetails = value; }
208
212 inline void SetSetupScriptDetails(ScriptDetails&& value) { m_setupScriptDetailsHasBeenSet = true; m_setupScriptDetails = std::move(value); }
213
218
222 inline CreateAppBlockRequest& WithSetupScriptDetails(ScriptDetails&& value) { SetSetupScriptDetails(std::move(value)); return *this;}
223
224
228 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
229
233 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
234
238 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
239
243 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
244
248 inline CreateAppBlockRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
249
253 inline CreateAppBlockRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
254
258 inline CreateAppBlockRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
259
263 inline CreateAppBlockRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
264
268 inline CreateAppBlockRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
269
273 inline CreateAppBlockRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
274
278 inline CreateAppBlockRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
279
283 inline CreateAppBlockRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
284
288 inline CreateAppBlockRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
289
290 private:
291
292 Aws::String m_name;
293 bool m_nameHasBeenSet = false;
294
295 Aws::String m_description;
296 bool m_descriptionHasBeenSet = false;
297
298 Aws::String m_displayName;
299 bool m_displayNameHasBeenSet = false;
300
301 S3Location m_sourceS3Location;
302 bool m_sourceS3LocationHasBeenSet = false;
303
304 ScriptDetails m_setupScriptDetails;
305 bool m_setupScriptDetailsHasBeenSet = false;
306
308 bool m_tagsHasBeenSet = false;
309 };
310
311} // namespace Model
312} // namespace AppStream
313} // namespace Aws
#define AWS_APPSTREAM_API
CreateAppBlockRequest & WithDescription(const char *value)
CreateAppBlockRequest & WithName(const Aws::String &value)
const ScriptDetails & GetSetupScriptDetails() const
virtual const char * GetServiceRequestName() const override
CreateAppBlockRequest & WithSetupScriptDetails(ScriptDetails &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAppBlockRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateAppBlockRequest & AddTags(Aws::String &&key, const char *value)
CreateAppBlockRequest & WithSourceS3Location(S3Location &&value)
CreateAppBlockRequest & WithDisplayName(const Aws::String &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAppBlockRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateAppBlockRequest & AddTags(const char *key, Aws::String &&value)
CreateAppBlockRequest & WithName(Aws::String &&value)
CreateAppBlockRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateAppBlockRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateAppBlockRequest & WithDisplayName(const char *value)
CreateAppBlockRequest & WithDisplayName(Aws::String &&value)
CreateAppBlockRequest & WithName(const char *value)
CreateAppBlockRequest & WithDescription(const Aws::String &value)
CreateAppBlockRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateAppBlockRequest & AddTags(const char *key, const char *value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateAppBlockRequest & WithSourceS3Location(const S3Location &value)
CreateAppBlockRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
CreateAppBlockRequest & WithSetupScriptDetails(const ScriptDetails &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAppBlockRequest & WithDescription(Aws::String &&value)
void SetSetupScriptDetails(const ScriptDetails &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String