AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateAppBlockRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/appstream/model/PackagingType.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/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace AppStream {
19namespace Model {
20
24 public:
25 AWS_APPSTREAM_API CreateAppBlockRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateAppBlock"; }
32
33 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 CreateAppBlockRequest& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetDisplayName() const { return m_displayName; }
78 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
79 template <typename DisplayNameT = Aws::String>
80 void SetDisplayName(DisplayNameT&& value) {
81 m_displayNameHasBeenSet = true;
82 m_displayName = std::forward<DisplayNameT>(value);
83 }
84 template <typename DisplayNameT = Aws::String>
85 CreateAppBlockRequest& WithDisplayName(DisplayNameT&& value) {
86 SetDisplayName(std::forward<DisplayNameT>(value));
87 return *this;
88 }
90
92
95 inline const S3Location& GetSourceS3Location() const { return m_sourceS3Location; }
96 inline bool SourceS3LocationHasBeenSet() const { return m_sourceS3LocationHasBeenSet; }
97 template <typename SourceS3LocationT = S3Location>
98 void SetSourceS3Location(SourceS3LocationT&& value) {
99 m_sourceS3LocationHasBeenSet = true;
100 m_sourceS3Location = std::forward<SourceS3LocationT>(value);
101 }
102 template <typename SourceS3LocationT = S3Location>
103 CreateAppBlockRequest& WithSourceS3Location(SourceS3LocationT&& value) {
104 SetSourceS3Location(std::forward<SourceS3LocationT>(value));
105 return *this;
106 }
108
110
114 inline const ScriptDetails& GetSetupScriptDetails() const { return m_setupScriptDetails; }
115 inline bool SetupScriptDetailsHasBeenSet() const { return m_setupScriptDetailsHasBeenSet; }
116 template <typename SetupScriptDetailsT = ScriptDetails>
117 void SetSetupScriptDetails(SetupScriptDetailsT&& value) {
118 m_setupScriptDetailsHasBeenSet = true;
119 m_setupScriptDetails = std::forward<SetupScriptDetailsT>(value);
120 }
121 template <typename SetupScriptDetailsT = ScriptDetails>
122 CreateAppBlockRequest& WithSetupScriptDetails(SetupScriptDetailsT&& value) {
123 SetSetupScriptDetails(std::forward<SetupScriptDetailsT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
133 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
135 void SetTags(TagsT&& value) {
136 m_tagsHasBeenSet = true;
137 m_tags = std::forward<TagsT>(value);
138 }
139 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
141 SetTags(std::forward<TagsT>(value));
142 return *this;
143 }
144 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
145 CreateAppBlockRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
146 m_tagsHasBeenSet = true;
147 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
148 return *this;
149 }
151
153
157 inline const ScriptDetails& GetPostSetupScriptDetails() const { return m_postSetupScriptDetails; }
158 inline bool PostSetupScriptDetailsHasBeenSet() const { return m_postSetupScriptDetailsHasBeenSet; }
159 template <typename PostSetupScriptDetailsT = ScriptDetails>
160 void SetPostSetupScriptDetails(PostSetupScriptDetailsT&& value) {
161 m_postSetupScriptDetailsHasBeenSet = true;
162 m_postSetupScriptDetails = std::forward<PostSetupScriptDetailsT>(value);
163 }
164 template <typename PostSetupScriptDetailsT = ScriptDetails>
165 CreateAppBlockRequest& WithPostSetupScriptDetails(PostSetupScriptDetailsT&& value) {
166 SetPostSetupScriptDetails(std::forward<PostSetupScriptDetailsT>(value));
167 return *this;
168 }
170
172
175 inline PackagingType GetPackagingType() const { return m_packagingType; }
176 inline bool PackagingTypeHasBeenSet() const { return m_packagingTypeHasBeenSet; }
177 inline void SetPackagingType(PackagingType value) {
178 m_packagingTypeHasBeenSet = true;
179 m_packagingType = value;
180 }
182 SetPackagingType(value);
183 return *this;
184 }
186 private:
187 Aws::String m_name;
188
189 Aws::String m_description;
190
191 Aws::String m_displayName;
192
193 S3Location m_sourceS3Location;
194
195 ScriptDetails m_setupScriptDetails;
196
198
199 ScriptDetails m_postSetupScriptDetails;
200
201 PackagingType m_packagingType{PackagingType::NOT_SET};
202 bool m_nameHasBeenSet = false;
203 bool m_descriptionHasBeenSet = false;
204 bool m_displayNameHasBeenSet = false;
205 bool m_sourceS3LocationHasBeenSet = false;
206 bool m_setupScriptDetailsHasBeenSet = false;
207 bool m_tagsHasBeenSet = false;
208 bool m_postSetupScriptDetailsHasBeenSet = false;
209 bool m_packagingTypeHasBeenSet = false;
210};
211
212} // namespace Model
213} // namespace AppStream
214} // namespace Aws
CreateAppBlockRequest & WithName(NameT &&value)
CreateAppBlockRequest & WithPostSetupScriptDetails(PostSetupScriptDetailsT &&value)
AWS_APPSTREAM_API CreateAppBlockRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateAppBlockRequest & WithPackagingType(PackagingType value)
CreateAppBlockRequest & WithTags(TagsT &&value)
void SetSetupScriptDetails(SetupScriptDetailsT &&value)
CreateAppBlockRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetSourceS3Location(SourceS3LocationT &&value)
CreateAppBlockRequest & WithDisplayName(DisplayNameT &&value)
CreateAppBlockRequest & WithDescription(DescriptionT &&value)
AWS_APPSTREAM_API Aws::String SerializePayload() const override
CreateAppBlockRequest & WithSetupScriptDetails(SetupScriptDetailsT &&value)
const ScriptDetails & GetPostSetupScriptDetails() const
CreateAppBlockRequest & WithSourceS3Location(SourceS3LocationT &&value)
void SetPostSetupScriptDetails(PostSetupScriptDetailsT &&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