AWS SDK for C++

AWS SDK for C++ Version 1.11.716

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
115 inline OperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
116 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
118 m_operatingSystemHasBeenSet = true;
119 m_operatingSystem = value;
120 }
122 SetOperatingSystem(value);
123 return *this;
124 }
126
128
144 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template <typename TagsT = Aws::Vector<Tag>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Vector<Tag>>
152 CreateBuildRequest& WithTags(TagsT&& value) {
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsT = Tag>
157 CreateBuildRequest& AddTags(TagsT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags.emplace_back(std::forward<TagsT>(value));
160 return *this;
161 }
163
165
172 inline const Aws::String& GetServerSdkVersion() const { return m_serverSdkVersion; }
173 inline bool ServerSdkVersionHasBeenSet() const { return m_serverSdkVersionHasBeenSet; }
174 template <typename ServerSdkVersionT = Aws::String>
175 void SetServerSdkVersion(ServerSdkVersionT&& value) {
176 m_serverSdkVersionHasBeenSet = true;
177 m_serverSdkVersion = std::forward<ServerSdkVersionT>(value);
178 }
179 template <typename ServerSdkVersionT = Aws::String>
180 CreateBuildRequest& WithServerSdkVersion(ServerSdkVersionT&& value) {
181 SetServerSdkVersion(std::forward<ServerSdkVersionT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_name;
187
188 Aws::String m_version;
189
190 S3Location m_storageLocation;
191
192 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
193
194 Aws::Vector<Tag> m_tags;
195
196 Aws::String m_serverSdkVersion;
197 bool m_nameHasBeenSet = false;
198 bool m_versionHasBeenSet = false;
199 bool m_storageLocationHasBeenSet = false;
200 bool m_operatingSystemHasBeenSet = false;
201 bool m_tagsHasBeenSet = false;
202 bool m_serverSdkVersionHasBeenSet = false;
203};
204
205} // namespace Model
206} // namespace GameLift
207} // 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