AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 UpdateApplicationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
52
54
58 inline const Aws::String& GetDisplayName() const { return m_displayName; }
59 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
60 template<typename DisplayNameT = Aws::String>
61 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
62 template<typename DisplayNameT = Aws::String>
63 UpdateApplicationRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template<typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
74 template<typename DescriptionT = Aws::String>
75 UpdateApplicationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
77
79
82 inline const S3Location& GetIconS3Location() const { return m_iconS3Location; }
83 inline bool IconS3LocationHasBeenSet() const { return m_iconS3LocationHasBeenSet; }
84 template<typename IconS3LocationT = S3Location>
85 void SetIconS3Location(IconS3LocationT&& value) { m_iconS3LocationHasBeenSet = true; m_iconS3Location = std::forward<IconS3LocationT>(value); }
86 template<typename IconS3LocationT = S3Location>
87 UpdateApplicationRequest& WithIconS3Location(IconS3LocationT&& value) { SetIconS3Location(std::forward<IconS3LocationT>(value)); return *this;}
89
91
94 inline const Aws::String& GetLaunchPath() const { return m_launchPath; }
95 inline bool LaunchPathHasBeenSet() const { return m_launchPathHasBeenSet; }
96 template<typename LaunchPathT = Aws::String>
97 void SetLaunchPath(LaunchPathT&& value) { m_launchPathHasBeenSet = true; m_launchPath = std::forward<LaunchPathT>(value); }
98 template<typename LaunchPathT = Aws::String>
99 UpdateApplicationRequest& WithLaunchPath(LaunchPathT&& value) { SetLaunchPath(std::forward<LaunchPathT>(value)); return *this;}
101
103
106 inline const Aws::String& GetWorkingDirectory() const { return m_workingDirectory; }
107 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
108 template<typename WorkingDirectoryT = Aws::String>
109 void SetWorkingDirectory(WorkingDirectoryT&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::forward<WorkingDirectoryT>(value); }
110 template<typename WorkingDirectoryT = Aws::String>
111 UpdateApplicationRequest& WithWorkingDirectory(WorkingDirectoryT&& value) { SetWorkingDirectory(std::forward<WorkingDirectoryT>(value)); return *this;}
113
115
118 inline const Aws::String& GetLaunchParameters() const { return m_launchParameters; }
119 inline bool LaunchParametersHasBeenSet() const { return m_launchParametersHasBeenSet; }
120 template<typename LaunchParametersT = Aws::String>
121 void SetLaunchParameters(LaunchParametersT&& value) { m_launchParametersHasBeenSet = true; m_launchParameters = std::forward<LaunchParametersT>(value); }
122 template<typename LaunchParametersT = Aws::String>
123 UpdateApplicationRequest& WithLaunchParameters(LaunchParametersT&& value) { SetLaunchParameters(std::forward<LaunchParametersT>(value)); return *this;}
125
127
130 inline const Aws::String& GetAppBlockArn() const { return m_appBlockArn; }
131 inline bool AppBlockArnHasBeenSet() const { return m_appBlockArnHasBeenSet; }
132 template<typename AppBlockArnT = Aws::String>
133 void SetAppBlockArn(AppBlockArnT&& value) { m_appBlockArnHasBeenSet = true; m_appBlockArn = std::forward<AppBlockArnT>(value); }
134 template<typename AppBlockArnT = Aws::String>
135 UpdateApplicationRequest& WithAppBlockArn(AppBlockArnT&& value) { SetAppBlockArn(std::forward<AppBlockArnT>(value)); return *this;}
137
139
142 inline const Aws::Vector<ApplicationAttribute>& GetAttributesToDelete() const { return m_attributesToDelete; }
143 inline bool AttributesToDeleteHasBeenSet() const { return m_attributesToDeleteHasBeenSet; }
144 template<typename AttributesToDeleteT = Aws::Vector<ApplicationAttribute>>
145 void SetAttributesToDelete(AttributesToDeleteT&& value) { m_attributesToDeleteHasBeenSet = true; m_attributesToDelete = std::forward<AttributesToDeleteT>(value); }
146 template<typename AttributesToDeleteT = Aws::Vector<ApplicationAttribute>>
147 UpdateApplicationRequest& WithAttributesToDelete(AttributesToDeleteT&& value) { SetAttributesToDelete(std::forward<AttributesToDeleteT>(value)); return *this;}
148 inline UpdateApplicationRequest& AddAttributesToDelete(ApplicationAttribute value) { m_attributesToDeleteHasBeenSet = true; m_attributesToDelete.push_back(value); return *this; }
150 private:
151
152 Aws::String m_name;
153 bool m_nameHasBeenSet = false;
154
155 Aws::String m_displayName;
156 bool m_displayNameHasBeenSet = false;
157
158 Aws::String m_description;
159 bool m_descriptionHasBeenSet = false;
160
161 S3Location m_iconS3Location;
162 bool m_iconS3LocationHasBeenSet = false;
163
164 Aws::String m_launchPath;
165 bool m_launchPathHasBeenSet = false;
166
167 Aws::String m_workingDirectory;
168 bool m_workingDirectoryHasBeenSet = false;
169
170 Aws::String m_launchParameters;
171 bool m_launchParametersHasBeenSet = false;
172
173 Aws::String m_appBlockArn;
174 bool m_appBlockArnHasBeenSet = false;
175
176 Aws::Vector<ApplicationAttribute> m_attributesToDelete;
177 bool m_attributesToDeleteHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace AppStream
182} // 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