AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateBuildRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/gamelift/GameLiftRequest.h>
10#include <aws/gamelift/GameLift_EXPORTS.h>
11#include <aws/gamelift/model/OperatingSystem.h>
12#include <aws/gamelift/model/S3Location.h>
13#include <aws/gamelift/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace GameLift {
19namespace Model {
20
24 public:
25 AWS_GAMELIFT_API CreateBuildRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateBuild"; }
32
33 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
34
36
38
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
50 CreateBuildRequest& WithName(NameT&& value) {
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::String& GetVersion() const { return m_version; }
62 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
63 template <typename VersionT = Aws::String>
64 void SetVersion(VersionT&& value) {
65 m_versionHasBeenSet = true;
66 m_version = std::forward<VersionT>(value);
67 }
68 template <typename VersionT = Aws::String>
69 CreateBuildRequest& WithVersion(VersionT&& value) {
70 SetVersion(std::forward<VersionT>(value));
71 return *this;
72 }
74
76
86 inline const S3Location& GetStorageLocation() const { return m_storageLocation; }
87 inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
88 template <typename StorageLocationT = S3Location>
89 void SetStorageLocation(StorageLocationT&& value) {
90 m_storageLocationHasBeenSet = true;
91 m_storageLocation = std::forward<StorageLocationT>(value);
92 }
93 template <typename StorageLocationT = S3Location>
94 CreateBuildRequest& WithStorageLocation(StorageLocationT&& value) {
95 SetStorageLocation(std::forward<StorageLocationT>(value));
96 return *this;
97 }
99
101
121 inline OperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
122 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
124 m_operatingSystemHasBeenSet = true;
125 m_operatingSystem = value;
126 }
128 SetOperatingSystem(value);
129 return *this;
130 }
132
134
150 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 template <typename TagsT = Aws::Vector<Tag>>
153 void SetTags(TagsT&& value) {
154 m_tagsHasBeenSet = true;
155 m_tags = std::forward<TagsT>(value);
156 }
157 template <typename TagsT = Aws::Vector<Tag>>
158 CreateBuildRequest& WithTags(TagsT&& value) {
159 SetTags(std::forward<TagsT>(value));
160 return *this;
161 }
162 template <typename TagsT = Tag>
163 CreateBuildRequest& AddTags(TagsT&& value) {
164 m_tagsHasBeenSet = true;
165 m_tags.emplace_back(std::forward<TagsT>(value));
166 return *this;
167 }
169
171
178 inline const Aws::String& GetServerSdkVersion() const { return m_serverSdkVersion; }
179 inline bool ServerSdkVersionHasBeenSet() const { return m_serverSdkVersionHasBeenSet; }
180 template <typename ServerSdkVersionT = Aws::String>
181 void SetServerSdkVersion(ServerSdkVersionT&& value) {
182 m_serverSdkVersionHasBeenSet = true;
183 m_serverSdkVersion = std::forward<ServerSdkVersionT>(value);
184 }
185 template <typename ServerSdkVersionT = Aws::String>
186 CreateBuildRequest& WithServerSdkVersion(ServerSdkVersionT&& value) {
187 SetServerSdkVersion(std::forward<ServerSdkVersionT>(value));
188 return *this;
189 }
191 private:
192 Aws::String m_name;
193
194 Aws::String m_version;
195
196 S3Location m_storageLocation;
197
198 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
199
200 Aws::Vector<Tag> m_tags;
201
202 Aws::String m_serverSdkVersion;
203 bool m_nameHasBeenSet = false;
204 bool m_versionHasBeenSet = false;
205 bool m_storageLocationHasBeenSet = false;
206 bool m_operatingSystemHasBeenSet = false;
207 bool m_tagsHasBeenSet = false;
208 bool m_serverSdkVersionHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace GameLift
213} // namespace Aws
CreateBuildRequest & AddTags(TagsT &&value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
const Aws::Vector< Tag > & GetTags() const
CreateBuildRequest & WithName(NameT &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_GAMELIFT_API CreateBuildRequest()=default
const Aws::String & GetServerSdkVersion() const
CreateBuildRequest & WithTags(TagsT &&value)
void SetOperatingSystem(OperatingSystem value)
const S3Location & GetStorageLocation() const
void SetServerSdkVersion(ServerSdkVersionT &&value)
void SetStorageLocation(StorageLocationT &&value)
CreateBuildRequest & WithVersion(VersionT &&value)
CreateBuildRequest & WithStorageLocation(StorageLocationT &&value)
CreateBuildRequest & WithServerSdkVersion(ServerSdkVersionT &&value)
CreateBuildRequest & WithOperatingSystem(OperatingSystem value)
virtual const char * GetServiceRequestName() 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