AWS SDK for C++

AWS SDK for C++ Version 1.11.644

Loading...
Searching...
No Matches
CreateApplicationRequest.h
1
6#pragma once
7#include <aws/gameliftstreams/GameLiftStreams_EXPORTS.h>
8#include <aws/gameliftstreams/GameLiftStreamsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/gameliftstreams/model/RuntimeEnvironment.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace GameLiftStreams
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_GAMELIFTSTREAMS_API CreateApplicationRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateApplication"; }
35
36 AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override;
37
38
40
44 inline const Aws::String& GetDescription() const { return m_description; }
45 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
46 template<typename DescriptionT = Aws::String>
47 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
48 template<typename DescriptionT = Aws::String>
49 CreateApplicationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
51
53
65 inline const RuntimeEnvironment& GetRuntimeEnvironment() const { return m_runtimeEnvironment; }
66 inline bool RuntimeEnvironmentHasBeenSet() const { return m_runtimeEnvironmentHasBeenSet; }
67 template<typename RuntimeEnvironmentT = RuntimeEnvironment>
68 void SetRuntimeEnvironment(RuntimeEnvironmentT&& value) { m_runtimeEnvironmentHasBeenSet = true; m_runtimeEnvironment = std::forward<RuntimeEnvironmentT>(value); }
69 template<typename RuntimeEnvironmentT = RuntimeEnvironment>
70 CreateApplicationRequest& WithRuntimeEnvironment(RuntimeEnvironmentT&& value) { SetRuntimeEnvironment(std::forward<RuntimeEnvironmentT>(value)); return *this;}
72
74
79 inline const Aws::String& GetExecutablePath() const { return m_executablePath; }
80 inline bool ExecutablePathHasBeenSet() const { return m_executablePathHasBeenSet; }
81 template<typename ExecutablePathT = Aws::String>
82 void SetExecutablePath(ExecutablePathT&& value) { m_executablePathHasBeenSet = true; m_executablePath = std::forward<ExecutablePathT>(value); }
83 template<typename ExecutablePathT = Aws::String>
84 CreateApplicationRequest& WithExecutablePath(ExecutablePathT&& value) { SetExecutablePath(std::forward<ExecutablePathT>(value)); return *this;}
86
88
98 inline const Aws::String& GetApplicationSourceUri() const { return m_applicationSourceUri; }
99 inline bool ApplicationSourceUriHasBeenSet() const { return m_applicationSourceUriHasBeenSet; }
100 template<typename ApplicationSourceUriT = Aws::String>
101 void SetApplicationSourceUri(ApplicationSourceUriT&& value) { m_applicationSourceUriHasBeenSet = true; m_applicationSourceUri = std::forward<ApplicationSourceUriT>(value); }
102 template<typename ApplicationSourceUriT = Aws::String>
103 CreateApplicationRequest& WithApplicationSourceUri(ApplicationSourceUriT&& value) { SetApplicationSourceUri(std::forward<ApplicationSourceUriT>(value)); return *this;}
105
107
117 inline const Aws::Vector<Aws::String>& GetApplicationLogPaths() const { return m_applicationLogPaths; }
118 inline bool ApplicationLogPathsHasBeenSet() const { return m_applicationLogPathsHasBeenSet; }
119 template<typename ApplicationLogPathsT = Aws::Vector<Aws::String>>
120 void SetApplicationLogPaths(ApplicationLogPathsT&& value) { m_applicationLogPathsHasBeenSet = true; m_applicationLogPaths = std::forward<ApplicationLogPathsT>(value); }
121 template<typename ApplicationLogPathsT = Aws::Vector<Aws::String>>
122 CreateApplicationRequest& WithApplicationLogPaths(ApplicationLogPathsT&& value) { SetApplicationLogPaths(std::forward<ApplicationLogPathsT>(value)); return *this;}
123 template<typename ApplicationLogPathsT = Aws::String>
124 CreateApplicationRequest& AddApplicationLogPaths(ApplicationLogPathsT&& value) { m_applicationLogPathsHasBeenSet = true; m_applicationLogPaths.emplace_back(std::forward<ApplicationLogPathsT>(value)); return *this; }
126
128
138 inline const Aws::String& GetApplicationLogOutputUri() const { return m_applicationLogOutputUri; }
139 inline bool ApplicationLogOutputUriHasBeenSet() const { return m_applicationLogOutputUriHasBeenSet; }
140 template<typename ApplicationLogOutputUriT = Aws::String>
141 void SetApplicationLogOutputUri(ApplicationLogOutputUriT&& value) { m_applicationLogOutputUriHasBeenSet = true; m_applicationLogOutputUri = std::forward<ApplicationLogOutputUriT>(value); }
142 template<typename ApplicationLogOutputUriT = Aws::String>
143 CreateApplicationRequest& WithApplicationLogOutputUri(ApplicationLogOutputUriT&& value) { SetApplicationLogOutputUri(std::forward<ApplicationLogOutputUriT>(value)); return *this;}
145
147
161 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
162 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
163 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
164 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
165 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
166 CreateApplicationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
167 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
168 CreateApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
169 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
170 }
172
174
179 inline const Aws::String& GetClientToken() const { return m_clientToken; }
180 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
181 template<typename ClientTokenT = Aws::String>
182 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
183 template<typename ClientTokenT = Aws::String>
184 CreateApplicationRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
186 private:
187
188 Aws::String m_description;
189 bool m_descriptionHasBeenSet = false;
190
191 RuntimeEnvironment m_runtimeEnvironment;
192 bool m_runtimeEnvironmentHasBeenSet = false;
193
194 Aws::String m_executablePath;
195 bool m_executablePathHasBeenSet = false;
196
197 Aws::String m_applicationSourceUri;
198 bool m_applicationSourceUriHasBeenSet = false;
199
200 Aws::Vector<Aws::String> m_applicationLogPaths;
201 bool m_applicationLogPathsHasBeenSet = false;
202
203 Aws::String m_applicationLogOutputUri;
204 bool m_applicationLogOutputUriHasBeenSet = false;
205
207 bool m_tagsHasBeenSet = false;
208
210 bool m_clientTokenHasBeenSet = true;
211 };
212
213} // namespace Model
214} // namespace GameLiftStreams
215} // namespace Aws
CreateApplicationRequest & WithExecutablePath(ExecutablePathT &&value)
virtual const char * GetServiceRequestName() const override
AWS_GAMELIFTSTREAMS_API Aws::String SerializePayload() const override
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetApplicationLogOutputUri(ApplicationLogOutputUriT &&value)
const Aws::Vector< Aws::String > & GetApplicationLogPaths() const
CreateApplicationRequest & WithApplicationLogOutputUri(ApplicationLogOutputUriT &&value)
CreateApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateApplicationRequest & WithRuntimeEnvironment(RuntimeEnvironmentT &&value)
CreateApplicationRequest & AddApplicationLogPaths(ApplicationLogPathsT &&value)
CreateApplicationRequest & WithClientToken(ClientTokenT &&value)
AWS_GAMELIFTSTREAMS_API CreateApplicationRequest()=default
CreateApplicationRequest & WithApplicationLogPaths(ApplicationLogPathsT &&value)
CreateApplicationRequest & WithDescription(DescriptionT &&value)
CreateApplicationRequest & WithApplicationSourceUri(ApplicationSourceUriT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
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