AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateApplicationRequest.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/core/utils/memory/stl/AWSVector.h>
12#include <aws/appstream/model/ApplicationAttribute.h>
13#include <utility>
14
15namespace Aws
16{
17namespace AppStream
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_APPSTREAM_API UpdateApplicationRequest();
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 "UpdateApplication"; }
34
35 AWS_APPSTREAM_API Aws::String SerializePayload() const override;
36
38
39
41
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 UpdateApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
51 inline UpdateApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
52 inline UpdateApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
54
56
60 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
61 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
62 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
63 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
64 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
65 inline UpdateApplicationRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
66 inline UpdateApplicationRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
67 inline UpdateApplicationRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
69
71
74 inline const Aws::String& GetDescription() const{ return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
77 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
78 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
79 inline UpdateApplicationRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
80 inline UpdateApplicationRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
81 inline UpdateApplicationRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
83
85
88 inline const S3Location& GetIconS3Location() const{ return m_iconS3Location; }
89 inline bool IconS3LocationHasBeenSet() const { return m_iconS3LocationHasBeenSet; }
90 inline void SetIconS3Location(const S3Location& value) { m_iconS3LocationHasBeenSet = true; m_iconS3Location = value; }
91 inline void SetIconS3Location(S3Location&& value) { m_iconS3LocationHasBeenSet = true; m_iconS3Location = std::move(value); }
92 inline UpdateApplicationRequest& WithIconS3Location(const S3Location& value) { SetIconS3Location(value); return *this;}
93 inline UpdateApplicationRequest& WithIconS3Location(S3Location&& value) { SetIconS3Location(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetLaunchPath() const{ return m_launchPath; }
101 inline bool LaunchPathHasBeenSet() const { return m_launchPathHasBeenSet; }
102 inline void SetLaunchPath(const Aws::String& value) { m_launchPathHasBeenSet = true; m_launchPath = value; }
103 inline void SetLaunchPath(Aws::String&& value) { m_launchPathHasBeenSet = true; m_launchPath = std::move(value); }
104 inline void SetLaunchPath(const char* value) { m_launchPathHasBeenSet = true; m_launchPath.assign(value); }
105 inline UpdateApplicationRequest& WithLaunchPath(const Aws::String& value) { SetLaunchPath(value); return *this;}
106 inline UpdateApplicationRequest& WithLaunchPath(Aws::String&& value) { SetLaunchPath(std::move(value)); return *this;}
107 inline UpdateApplicationRequest& WithLaunchPath(const char* value) { SetLaunchPath(value); return *this;}
109
111
114 inline const Aws::String& GetWorkingDirectory() const{ return m_workingDirectory; }
115 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
116 inline void SetWorkingDirectory(const Aws::String& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = value; }
117 inline void SetWorkingDirectory(Aws::String&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::move(value); }
118 inline void SetWorkingDirectory(const char* value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory.assign(value); }
120 inline UpdateApplicationRequest& WithWorkingDirectory(Aws::String&& value) { SetWorkingDirectory(std::move(value)); return *this;}
121 inline UpdateApplicationRequest& WithWorkingDirectory(const char* value) { SetWorkingDirectory(value); return *this;}
123
125
128 inline const Aws::String& GetLaunchParameters() const{ return m_launchParameters; }
129 inline bool LaunchParametersHasBeenSet() const { return m_launchParametersHasBeenSet; }
130 inline void SetLaunchParameters(const Aws::String& value) { m_launchParametersHasBeenSet = true; m_launchParameters = value; }
131 inline void SetLaunchParameters(Aws::String&& value) { m_launchParametersHasBeenSet = true; m_launchParameters = std::move(value); }
132 inline void SetLaunchParameters(const char* value) { m_launchParametersHasBeenSet = true; m_launchParameters.assign(value); }
134 inline UpdateApplicationRequest& WithLaunchParameters(Aws::String&& value) { SetLaunchParameters(std::move(value)); return *this;}
135 inline UpdateApplicationRequest& WithLaunchParameters(const char* value) { SetLaunchParameters(value); return *this;}
137
139
142 inline const Aws::String& GetAppBlockArn() const{ return m_appBlockArn; }
143 inline bool AppBlockArnHasBeenSet() const { return m_appBlockArnHasBeenSet; }
144 inline void SetAppBlockArn(const Aws::String& value) { m_appBlockArnHasBeenSet = true; m_appBlockArn = value; }
145 inline void SetAppBlockArn(Aws::String&& value) { m_appBlockArnHasBeenSet = true; m_appBlockArn = std::move(value); }
146 inline void SetAppBlockArn(const char* value) { m_appBlockArnHasBeenSet = true; m_appBlockArn.assign(value); }
147 inline UpdateApplicationRequest& WithAppBlockArn(const Aws::String& value) { SetAppBlockArn(value); return *this;}
148 inline UpdateApplicationRequest& WithAppBlockArn(Aws::String&& value) { SetAppBlockArn(std::move(value)); return *this;}
149 inline UpdateApplicationRequest& WithAppBlockArn(const char* value) { SetAppBlockArn(value); return *this;}
151
153
156 inline const Aws::Vector<ApplicationAttribute>& GetAttributesToDelete() const{ return m_attributesToDelete; }
157 inline bool AttributesToDeleteHasBeenSet() const { return m_attributesToDeleteHasBeenSet; }
158 inline void SetAttributesToDelete(const Aws::Vector<ApplicationAttribute>& value) { m_attributesToDeleteHasBeenSet = true; m_attributesToDelete = value; }
159 inline void SetAttributesToDelete(Aws::Vector<ApplicationAttribute>&& value) { m_attributesToDeleteHasBeenSet = true; m_attributesToDelete = std::move(value); }
162 inline UpdateApplicationRequest& AddAttributesToDelete(const ApplicationAttribute& value) { m_attributesToDeleteHasBeenSet = true; m_attributesToDelete.push_back(value); return *this; }
163 inline UpdateApplicationRequest& AddAttributesToDelete(ApplicationAttribute&& value) { m_attributesToDeleteHasBeenSet = true; m_attributesToDelete.push_back(std::move(value)); return *this; }
165 private:
166
167 Aws::String m_name;
168 bool m_nameHasBeenSet = false;
169
170 Aws::String m_displayName;
171 bool m_displayNameHasBeenSet = false;
172
173 Aws::String m_description;
174 bool m_descriptionHasBeenSet = false;
175
176 S3Location m_iconS3Location;
177 bool m_iconS3LocationHasBeenSet = false;
178
179 Aws::String m_launchPath;
180 bool m_launchPathHasBeenSet = false;
181
182 Aws::String m_workingDirectory;
183 bool m_workingDirectoryHasBeenSet = false;
184
185 Aws::String m_launchParameters;
186 bool m_launchParametersHasBeenSet = false;
187
188 Aws::String m_appBlockArn;
189 bool m_appBlockArnHasBeenSet = false;
190
191 Aws::Vector<ApplicationAttribute> m_attributesToDelete;
192 bool m_attributesToDeleteHasBeenSet = false;
193 };
194
195} // namespace Model
196} // namespace AppStream
197} // namespace Aws
AWS_APPSTREAM_API Aws::String SerializePayload() const override
UpdateApplicationRequest & WithIconS3Location(const S3Location &value)
UpdateApplicationRequest & WithWorkingDirectory(Aws::String &&value)
UpdateApplicationRequest & WithDescription(Aws::String &&value)
UpdateApplicationRequest & WithDisplayName(const char *value)
UpdateApplicationRequest & WithName(const Aws::String &value)
const Aws::Vector< ApplicationAttribute > & GetAttributesToDelete() const
UpdateApplicationRequest & WithDisplayName(const Aws::String &value)
UpdateApplicationRequest & WithLaunchParameters(const char *value)
UpdateApplicationRequest & WithAppBlockArn(Aws::String &&value)
UpdateApplicationRequest & WithLaunchParameters(Aws::String &&value)
UpdateApplicationRequest & WithDescription(const Aws::String &value)
UpdateApplicationRequest & WithLaunchPath(const Aws::String &value)
UpdateApplicationRequest & WithAppBlockArn(const Aws::String &value)
UpdateApplicationRequest & WithName(const char *value)
UpdateApplicationRequest & WithDescription(const char *value)
virtual const char * GetServiceRequestName() const override
UpdateApplicationRequest & AddAttributesToDelete(ApplicationAttribute &&value)
UpdateApplicationRequest & WithAttributesToDelete(Aws::Vector< ApplicationAttribute > &&value)
void SetAttributesToDelete(const Aws::Vector< ApplicationAttribute > &value)
UpdateApplicationRequest & WithAttributesToDelete(const Aws::Vector< ApplicationAttribute > &value)
UpdateApplicationRequest & WithName(Aws::String &&value)
UpdateApplicationRequest & WithIconS3Location(S3Location &&value)
UpdateApplicationRequest & WithLaunchPath(Aws::String &&value)
UpdateApplicationRequest & WithWorkingDirectory(const char *value)
void SetAttributesToDelete(Aws::Vector< ApplicationAttribute > &&value)
UpdateApplicationRequest & WithWorkingDirectory(const Aws::String &value)
UpdateApplicationRequest & WithLaunchParameters(const Aws::String &value)
UpdateApplicationRequest & WithLaunchPath(const char *value)
UpdateApplicationRequest & WithDisplayName(Aws::String &&value)
UpdateApplicationRequest & AddAttributesToDelete(const ApplicationAttribute &value)
UpdateApplicationRequest & WithAppBlockArn(const char *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