AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Application.h
1
6#pragma once
7#include <aws/appstream/AppStream_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/appstream/model/S3Location.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/appstream/model/PlatformType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace AppStream
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_APPSTREAM_API Application() = default;
41 AWS_APPSTREAM_API Application(Aws::Utils::Json::JsonView jsonValue);
42 AWS_APPSTREAM_API Application& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
52 template<typename NameT = Aws::String>
53 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
54 template<typename NameT = Aws::String>
55 Application& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
57
59
62 inline const Aws::String& GetDisplayName() const { return m_displayName; }
63 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
64 template<typename DisplayNameT = Aws::String>
65 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
66 template<typename DisplayNameT = Aws::String>
67 Application& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
69
71
74 inline const Aws::String& GetIconURL() const { return m_iconURL; }
75 inline bool IconURLHasBeenSet() const { return m_iconURLHasBeenSet; }
76 template<typename IconURLT = Aws::String>
77 void SetIconURL(IconURLT&& value) { m_iconURLHasBeenSet = true; m_iconURL = std::forward<IconURLT>(value); }
78 template<typename IconURLT = Aws::String>
79 Application& WithIconURL(IconURLT&& value) { SetIconURL(std::forward<IconURLT>(value)); return *this;}
81
83
86 inline const Aws::String& GetLaunchPath() const { return m_launchPath; }
87 inline bool LaunchPathHasBeenSet() const { return m_launchPathHasBeenSet; }
88 template<typename LaunchPathT = Aws::String>
89 void SetLaunchPath(LaunchPathT&& value) { m_launchPathHasBeenSet = true; m_launchPath = std::forward<LaunchPathT>(value); }
90 template<typename LaunchPathT = Aws::String>
91 Application& WithLaunchPath(LaunchPathT&& value) { SetLaunchPath(std::forward<LaunchPathT>(value)); return *this;}
93
95
98 inline const Aws::String& GetLaunchParameters() const { return m_launchParameters; }
99 inline bool LaunchParametersHasBeenSet() const { return m_launchParametersHasBeenSet; }
100 template<typename LaunchParametersT = Aws::String>
101 void SetLaunchParameters(LaunchParametersT&& value) { m_launchParametersHasBeenSet = true; m_launchParameters = std::forward<LaunchParametersT>(value); }
102 template<typename LaunchParametersT = Aws::String>
103 Application& WithLaunchParameters(LaunchParametersT&& value) { SetLaunchParameters(std::forward<LaunchParametersT>(value)); return *this;}
105
107
111 inline bool GetEnabled() const { return m_enabled; }
112 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
113 inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
114 inline Application& WithEnabled(bool value) { SetEnabled(value); return *this;}
116
118
121 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
122 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
123 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
124 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
125 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
126 Application& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
127 template<typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
128 Application& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
129 m_metadataHasBeenSet = true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value)); return *this;
130 }
132
134
137 inline const Aws::String& GetWorkingDirectory() const { return m_workingDirectory; }
138 inline bool WorkingDirectoryHasBeenSet() const { return m_workingDirectoryHasBeenSet; }
139 template<typename WorkingDirectoryT = Aws::String>
140 void SetWorkingDirectory(WorkingDirectoryT&& value) { m_workingDirectoryHasBeenSet = true; m_workingDirectory = std::forward<WorkingDirectoryT>(value); }
141 template<typename WorkingDirectoryT = Aws::String>
142 Application& WithWorkingDirectory(WorkingDirectoryT&& value) { SetWorkingDirectory(std::forward<WorkingDirectoryT>(value)); return *this;}
144
146
149 inline const Aws::String& GetDescription() const { return m_description; }
150 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
151 template<typename DescriptionT = Aws::String>
152 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
153 template<typename DescriptionT = Aws::String>
154 Application& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
156
158
161 inline const Aws::String& GetArn() const { return m_arn; }
162 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
163 template<typename ArnT = Aws::String>
164 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
165 template<typename ArnT = Aws::String>
166 Application& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
168
170
173 inline const Aws::String& GetAppBlockArn() const { return m_appBlockArn; }
174 inline bool AppBlockArnHasBeenSet() const { return m_appBlockArnHasBeenSet; }
175 template<typename AppBlockArnT = Aws::String>
176 void SetAppBlockArn(AppBlockArnT&& value) { m_appBlockArnHasBeenSet = true; m_appBlockArn = std::forward<AppBlockArnT>(value); }
177 template<typename AppBlockArnT = Aws::String>
178 Application& WithAppBlockArn(AppBlockArnT&& value) { SetAppBlockArn(std::forward<AppBlockArnT>(value)); return *this;}
180
182
185 inline const S3Location& GetIconS3Location() const { return m_iconS3Location; }
186 inline bool IconS3LocationHasBeenSet() const { return m_iconS3LocationHasBeenSet; }
187 template<typename IconS3LocationT = S3Location>
188 void SetIconS3Location(IconS3LocationT&& value) { m_iconS3LocationHasBeenSet = true; m_iconS3Location = std::forward<IconS3LocationT>(value); }
189 template<typename IconS3LocationT = S3Location>
190 Application& WithIconS3Location(IconS3LocationT&& value) { SetIconS3Location(std::forward<IconS3LocationT>(value)); return *this;}
192
194
197 inline const Aws::Vector<PlatformType>& GetPlatforms() const { return m_platforms; }
198 inline bool PlatformsHasBeenSet() const { return m_platformsHasBeenSet; }
199 template<typename PlatformsT = Aws::Vector<PlatformType>>
200 void SetPlatforms(PlatformsT&& value) { m_platformsHasBeenSet = true; m_platforms = std::forward<PlatformsT>(value); }
201 template<typename PlatformsT = Aws::Vector<PlatformType>>
202 Application& WithPlatforms(PlatformsT&& value) { SetPlatforms(std::forward<PlatformsT>(value)); return *this;}
203 inline Application& AddPlatforms(PlatformType value) { m_platformsHasBeenSet = true; m_platforms.push_back(value); return *this; }
205
207
210 inline const Aws::Vector<Aws::String>& GetInstanceFamilies() const { return m_instanceFamilies; }
211 inline bool InstanceFamiliesHasBeenSet() const { return m_instanceFamiliesHasBeenSet; }
212 template<typename InstanceFamiliesT = Aws::Vector<Aws::String>>
213 void SetInstanceFamilies(InstanceFamiliesT&& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies = std::forward<InstanceFamiliesT>(value); }
214 template<typename InstanceFamiliesT = Aws::Vector<Aws::String>>
215 Application& WithInstanceFamilies(InstanceFamiliesT&& value) { SetInstanceFamilies(std::forward<InstanceFamiliesT>(value)); return *this;}
216 template<typename InstanceFamiliesT = Aws::String>
217 Application& AddInstanceFamilies(InstanceFamiliesT&& value) { m_instanceFamiliesHasBeenSet = true; m_instanceFamilies.emplace_back(std::forward<InstanceFamiliesT>(value)); return *this; }
219
221
224 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
225 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
226 template<typename CreatedTimeT = Aws::Utils::DateTime>
227 void SetCreatedTime(CreatedTimeT&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::forward<CreatedTimeT>(value); }
228 template<typename CreatedTimeT = Aws::Utils::DateTime>
229 Application& WithCreatedTime(CreatedTimeT&& value) { SetCreatedTime(std::forward<CreatedTimeT>(value)); return *this;}
231 private:
232
233 Aws::String m_name;
234 bool m_nameHasBeenSet = false;
235
236 Aws::String m_displayName;
237 bool m_displayNameHasBeenSet = false;
238
239 Aws::String m_iconURL;
240 bool m_iconURLHasBeenSet = false;
241
242 Aws::String m_launchPath;
243 bool m_launchPathHasBeenSet = false;
244
245 Aws::String m_launchParameters;
246 bool m_launchParametersHasBeenSet = false;
247
248 bool m_enabled{false};
249 bool m_enabledHasBeenSet = false;
250
252 bool m_metadataHasBeenSet = false;
253
254 Aws::String m_workingDirectory;
255 bool m_workingDirectoryHasBeenSet = false;
256
257 Aws::String m_description;
258 bool m_descriptionHasBeenSet = false;
259
260 Aws::String m_arn;
261 bool m_arnHasBeenSet = false;
262
263 Aws::String m_appBlockArn;
264 bool m_appBlockArnHasBeenSet = false;
265
266 S3Location m_iconS3Location;
267 bool m_iconS3LocationHasBeenSet = false;
268
269 Aws::Vector<PlatformType> m_platforms;
270 bool m_platformsHasBeenSet = false;
271
272 Aws::Vector<Aws::String> m_instanceFamilies;
273 bool m_instanceFamiliesHasBeenSet = false;
274
275 Aws::Utils::DateTime m_createdTime{};
276 bool m_createdTimeHasBeenSet = false;
277 };
278
279} // namespace Model
280} // namespace AppStream
281} // namespace Aws
void SetLaunchParameters(LaunchParametersT &&value)
const Aws::String & GetAppBlockArn() const
const Aws::Vector< PlatformType > & GetPlatforms() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
void SetDisplayName(DisplayNameT &&value)
Definition Application.h:65
void SetLaunchPath(LaunchPathT &&value)
Definition Application.h:89
Application & WithDisplayName(DisplayNameT &&value)
Definition Application.h:67
void SetMetadata(MetadataT &&value)
void SetWorkingDirectory(WorkingDirectoryT &&value)
Application & WithWorkingDirectory(WorkingDirectoryT &&value)
void SetPlatforms(PlatformsT &&value)
AWS_APPSTREAM_API Application(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSTREAM_API Application()=default
Application & WithLaunchParameters(LaunchParametersT &&value)
const Aws::String & GetName() const
Definition Application.h:50
void SetCreatedTime(CreatedTimeT &&value)
Application & WithAppBlockArn(AppBlockArnT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
void SetAppBlockArn(AppBlockArnT &&value)
Application & WithIconURL(IconURLT &&value)
Definition Application.h:79
void SetInstanceFamilies(InstanceFamiliesT &&value)
Application & WithArn(ArnT &&value)
Application & WithIconS3Location(IconS3LocationT &&value)
Application & WithName(NameT &&value)
Definition Application.h:55
Application & WithPlatforms(PlatformsT &&value)
const Aws::String & GetDescription() const
AWS_APPSTREAM_API Application & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetIconS3Location(IconS3LocationT &&value)
Application & WithDescription(DescriptionT &&value)
const Aws::Vector< Aws::String > & GetInstanceFamilies() const
void SetIconURL(IconURLT &&value)
Definition Application.h:77
const Aws::String & GetWorkingDirectory() const
const Aws::String & GetArn() const
const Aws::String & GetLaunchParameters() const
Definition Application.h:98
Application & WithEnabled(bool value)
void SetDescription(DescriptionT &&value)
AWS_APPSTREAM_API Aws::Utils::Json::JsonValue Jsonize() const
const S3Location & GetIconS3Location() const
Application & WithCreatedTime(CreatedTimeT &&value)
Application & WithInstanceFamilies(InstanceFamiliesT &&value)
Application & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
const Aws::String & GetDisplayName() const
Definition Application.h:62
Application & WithMetadata(MetadataT &&value)
const Aws::String & GetIconURL() const
Definition Application.h:74
Application & WithLaunchPath(LaunchPathT &&value)
Definition Application.h:91
const Aws::String & GetLaunchPath() const
Definition Application.h:86
Application & AddInstanceFamilies(InstanceFamiliesT &&value)
Application & AddPlatforms(PlatformType value)
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue