AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateApplicationRequest.h
1
6#pragma once
7#include <aws/appstream/AppStreamRequest.h>
8#include <aws/appstream/AppStream_EXPORTS.h>
9#include <aws/appstream/model/ApplicationAttribute.h>
10#include <aws/appstream/model/S3Location.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 AppStream {
18namespace Model {
19
23 public:
24 AWS_APPSTREAM_API UpdateApplicationRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateApplication"; }
31
32 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
33
35
37
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
60 inline const Aws::String& GetDisplayName() const { return m_displayName; }
61 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
62 template <typename DisplayNameT = Aws::String>
63 void SetDisplayName(DisplayNameT&& value) {
64 m_displayNameHasBeenSet = true;
65 m_displayName = std::forward<DisplayNameT>(value);
66 }
67 template <typename DisplayNameT = Aws::String>
69 SetDisplayName(std::forward<DisplayNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const S3Location& GetIconS3Location() const { return m_iconS3Location; }
97 inline bool IconS3LocationHasBeenSet() const { return m_iconS3LocationHasBeenSet; }
98 template <typename IconS3LocationT = S3Location>
99 void SetIconS3Location(IconS3LocationT&& value) {
100 m_iconS3LocationHasBeenSet = true;
101 m_iconS3Location = std::forward<IconS3LocationT>(value);
102 }
103 template <typename IconS3LocationT = S3Location>
105 SetIconS3Location(std::forward<IconS3LocationT>(value));
106 return *this;
107 }
109
111
114 inline const Aws::String& GetLaunchPath() const { return m_launchPath; }
115 inline bool LaunchPathHasBeenSet() const { return m_launchPathHasBeenSet; }
116 template <typename LaunchPathT = Aws::String>
117 void SetLaunchPath(LaunchPathT&& value) {
118 m_launchPathHasBeenSet = true;
119 m_launchPath = std::forward<LaunchPathT>(value);
120 }
121 template <typename LaunchPathT = Aws::String>
123 SetLaunchPath(std::forward<LaunchPathT>(value));
124 return *this;
125 }
127
129
132 inline const Aws::String& GetWorkingDirectory() const { return m_workingDirectory; }
133 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
134 template <typename WorkingDirectoryT = Aws::String>
135 void SetWorkingDirectory(WorkingDirectoryT&& value) {
136 m_workingDirectoryHasBeenSet = true;
137 m_workingDirectory = std::forward<WorkingDirectoryT>(value);
138 }
139 template <typename WorkingDirectoryT = Aws::String>
140 UpdateApplicationRequest& WithWorkingDirectory(WorkingDirectoryT&& value) {
141 SetWorkingDirectory(std::forward<WorkingDirectoryT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetLaunchParameters() const { return m_launchParameters; }
151 inline bool LaunchParametersHasBeenSet() const { return m_launchParametersHasBeenSet; }
152 template <typename LaunchParametersT = Aws::String>
153 void SetLaunchParameters(LaunchParametersT&& value) {
154 m_launchParametersHasBeenSet = true;
155 m_launchParameters = std::forward<LaunchParametersT>(value);
156 }
157 template <typename LaunchParametersT = Aws::String>
158 UpdateApplicationRequest& WithLaunchParameters(LaunchParametersT&& value) {
159 SetLaunchParameters(std::forward<LaunchParametersT>(value));
160 return *this;
161 }
163
165
168 inline const Aws::String& GetAppBlockArn() const { return m_appBlockArn; }
169 inline bool AppBlockArnHasBeenSet() const { return m_appBlockArnHasBeenSet; }
170 template <typename AppBlockArnT = Aws::String>
171 void SetAppBlockArn(AppBlockArnT&& value) {
172 m_appBlockArnHasBeenSet = true;
173 m_appBlockArn = std::forward<AppBlockArnT>(value);
174 }
175 template <typename AppBlockArnT = Aws::String>
177 SetAppBlockArn(std::forward<AppBlockArnT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::Vector<ApplicationAttribute>& GetAttributesToDelete() const { return m_attributesToDelete; }
187 inline bool AttributesToDeleteHasBeenSet() const { return m_attributesToDeleteHasBeenSet; }
188 template <typename AttributesToDeleteT = Aws::Vector<ApplicationAttribute>>
189 void SetAttributesToDelete(AttributesToDeleteT&& value) {
190 m_attributesToDeleteHasBeenSet = true;
191 m_attributesToDelete = std::forward<AttributesToDeleteT>(value);
192 }
193 template <typename AttributesToDeleteT = Aws::Vector<ApplicationAttribute>>
194 UpdateApplicationRequest& WithAttributesToDelete(AttributesToDeleteT&& value) {
195 SetAttributesToDelete(std::forward<AttributesToDeleteT>(value));
196 return *this;
197 }
199 m_attributesToDeleteHasBeenSet = true;
200 m_attributesToDelete.push_back(value);
201 return *this;
202 }
204 private:
205 Aws::String m_name;
206
207 Aws::String m_displayName;
208
209 Aws::String m_description;
210
211 S3Location m_iconS3Location;
212
213 Aws::String m_launchPath;
214
215 Aws::String m_workingDirectory;
216
217 Aws::String m_launchParameters;
218
219 Aws::String m_appBlockArn;
220
221 Aws::Vector<ApplicationAttribute> m_attributesToDelete;
222 bool m_nameHasBeenSet = false;
223 bool m_displayNameHasBeenSet = false;
224 bool m_descriptionHasBeenSet = false;
225 bool m_iconS3LocationHasBeenSet = false;
226 bool m_launchPathHasBeenSet = false;
227 bool m_workingDirectoryHasBeenSet = false;
228 bool m_launchParametersHasBeenSet = false;
229 bool m_appBlockArnHasBeenSet = false;
230 bool m_attributesToDeleteHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace AppStream
235} // namespace Aws
AWS_APPSTREAM_API Aws::String SerializePayload() const override
UpdateApplicationRequest & WithLaunchPath(LaunchPathT &&value)
const Aws::Vector< ApplicationAttribute > & GetAttributesToDelete() const
UpdateApplicationRequest & WithWorkingDirectory(WorkingDirectoryT &&value)
UpdateApplicationRequest & WithLaunchParameters(LaunchParametersT &&value)
UpdateApplicationRequest & AddAttributesToDelete(ApplicationAttribute value)
UpdateApplicationRequest & WithAttributesToDelete(AttributesToDeleteT &&value)
virtual const char * GetServiceRequestName() const override
UpdateApplicationRequest & WithAppBlockArn(AppBlockArnT &&value)
UpdateApplicationRequest & WithDescription(DescriptionT &&value)
UpdateApplicationRequest & WithIconS3Location(IconS3LocationT &&value)
AWS_APPSTREAM_API UpdateApplicationRequest()=default
UpdateApplicationRequest & WithName(NameT &&value)
UpdateApplicationRequest & WithDisplayName(DisplayNameT &&value)
AWS_APPSTREAM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector