AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateAppBlockRequest.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/appstream/AppStreamRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appstream/model/S3Location.h>
11#include <aws/appstream/model/ScriptDetails.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/appstream/model/PackagingType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace AppStream
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_APPSTREAM_API CreateAppBlockRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateAppBlock"; }
35
36 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetName() const{ return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
48 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
49 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
50 inline CreateAppBlockRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline CreateAppBlockRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline CreateAppBlockRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
59 inline const Aws::String& GetDescription() const{ return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
62 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
63 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
64 inline CreateAppBlockRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
65 inline CreateAppBlockRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
66 inline CreateAppBlockRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
68
70
73 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
74 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
75 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
76 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
77 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
78 inline CreateAppBlockRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
79 inline CreateAppBlockRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
80 inline CreateAppBlockRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
82
84
87 inline const S3Location& GetSourceS3Location() const{ return m_sourceS3Location; }
88 inline bool SourceS3LocationHasBeenSet() const { return m_sourceS3LocationHasBeenSet; }
89 inline void SetSourceS3Location(const S3Location& value) { m_sourceS3LocationHasBeenSet = true; m_sourceS3Location = value; }
90 inline void SetSourceS3Location(S3Location&& value) { m_sourceS3LocationHasBeenSet = true; m_sourceS3Location = std::move(value); }
91 inline CreateAppBlockRequest& WithSourceS3Location(const S3Location& value) { SetSourceS3Location(value); return *this;}
92 inline CreateAppBlockRequest& WithSourceS3Location(S3Location&& value) { SetSourceS3Location(std::move(value)); return *this;}
94
96
100 inline const ScriptDetails& GetSetupScriptDetails() const{ return m_setupScriptDetails; }
101 inline bool SetupScriptDetailsHasBeenSet() const { return m_setupScriptDetailsHasBeenSet; }
102 inline void SetSetupScriptDetails(const ScriptDetails& value) { m_setupScriptDetailsHasBeenSet = true; m_setupScriptDetails = value; }
103 inline void SetSetupScriptDetails(ScriptDetails&& value) { m_setupScriptDetailsHasBeenSet = true; m_setupScriptDetails = std::move(value); }
105 inline CreateAppBlockRequest& WithSetupScriptDetails(ScriptDetails&& value) { SetSetupScriptDetails(std::move(value)); return *this;}
107
109
112 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
115 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
116 inline CreateAppBlockRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
117 inline CreateAppBlockRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
118 inline CreateAppBlockRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
119 inline CreateAppBlockRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
120 inline CreateAppBlockRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
121 inline CreateAppBlockRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
122 inline CreateAppBlockRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
123 inline CreateAppBlockRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
124 inline CreateAppBlockRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
126
128
132 inline const ScriptDetails& GetPostSetupScriptDetails() const{ return m_postSetupScriptDetails; }
133 inline bool PostSetupScriptDetailsHasBeenSet() const { return m_postSetupScriptDetailsHasBeenSet; }
134 inline void SetPostSetupScriptDetails(const ScriptDetails& value) { m_postSetupScriptDetailsHasBeenSet = true; m_postSetupScriptDetails = value; }
135 inline void SetPostSetupScriptDetails(ScriptDetails&& value) { m_postSetupScriptDetailsHasBeenSet = true; m_postSetupScriptDetails = std::move(value); }
139
141
144 inline const PackagingType& GetPackagingType() const{ return m_packagingType; }
145 inline bool PackagingTypeHasBeenSet() const { return m_packagingTypeHasBeenSet; }
146 inline void SetPackagingType(const PackagingType& value) { m_packagingTypeHasBeenSet = true; m_packagingType = value; }
147 inline void SetPackagingType(PackagingType&& value) { m_packagingTypeHasBeenSet = true; m_packagingType = std::move(value); }
148 inline CreateAppBlockRequest& WithPackagingType(const PackagingType& value) { SetPackagingType(value); return *this;}
149 inline CreateAppBlockRequest& WithPackagingType(PackagingType&& value) { SetPackagingType(std::move(value)); return *this;}
151 private:
152
153 Aws::String m_name;
154 bool m_nameHasBeenSet = false;
155
156 Aws::String m_description;
157 bool m_descriptionHasBeenSet = false;
158
159 Aws::String m_displayName;
160 bool m_displayNameHasBeenSet = false;
161
162 S3Location m_sourceS3Location;
163 bool m_sourceS3LocationHasBeenSet = false;
164
165 ScriptDetails m_setupScriptDetails;
166 bool m_setupScriptDetailsHasBeenSet = false;
167
169 bool m_tagsHasBeenSet = false;
170
171 ScriptDetails m_postSetupScriptDetails;
172 bool m_postSetupScriptDetailsHasBeenSet = false;
173
174 PackagingType m_packagingType;
175 bool m_packagingTypeHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace AppStream
180} // namespace Aws
CreateAppBlockRequest & WithDescription(const char *value)
CreateAppBlockRequest & WithName(const Aws::String &value)
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 & WithPostSetupScriptDetails(ScriptDetails &&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
void SetPackagingType(const PackagingType &value)
CreateAppBlockRequest & WithSetupScriptDetails(const ScriptDetails &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateAppBlockRequest & WithPackagingType(const PackagingType &value)
CreateAppBlockRequest & WithPostSetupScriptDetails(const ScriptDetails &value)
const ScriptDetails & GetPostSetupScriptDetails() const
CreateAppBlockRequest & WithDescription(Aws::String &&value)
CreateAppBlockRequest & WithPackagingType(PackagingType &&value)
void SetPostSetupScriptDetails(const ScriptDetails &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