AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateBuildRequest.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/gamelift/GameLiftRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/gamelift/model/S3Location.h>
11#include <aws/gamelift/model/OperatingSystem.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/gamelift/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace GameLift
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_GAMELIFT_API CreateBuildRequest() = 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 "CreateBuild"; }
35
36 AWS_GAMELIFT_API Aws::String SerializePayload() const override;
37
39
40
42
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 CreateBuildRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
59 inline const Aws::String& GetVersion() const { return m_version; }
60 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
61 template<typename VersionT = Aws::String>
62 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
63 template<typename VersionT = Aws::String>
64 CreateBuildRequest& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
66
68
78 inline const S3Location& GetStorageLocation() const { return m_storageLocation; }
79 inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
80 template<typename StorageLocationT = S3Location>
81 void SetStorageLocation(StorageLocationT&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::forward<StorageLocationT>(value); }
82 template<typename StorageLocationT = S3Location>
83 CreateBuildRequest& WithStorageLocation(StorageLocationT&& value) { SetStorageLocation(std::forward<StorageLocationT>(value)); return *this;}
85
87
101 inline OperatingSystem GetOperatingSystem() const { return m_operatingSystem; }
102 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
103 inline void SetOperatingSystem(OperatingSystem value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
106
108
124 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
125 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
126 template<typename TagsT = Aws::Vector<Tag>>
127 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
128 template<typename TagsT = Aws::Vector<Tag>>
129 CreateBuildRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
130 template<typename TagsT = Tag>
131 CreateBuildRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
133
135
142 inline const Aws::String& GetServerSdkVersion() const { return m_serverSdkVersion; }
143 inline bool ServerSdkVersionHasBeenSet() const { return m_serverSdkVersionHasBeenSet; }
144 template<typename ServerSdkVersionT = Aws::String>
145 void SetServerSdkVersion(ServerSdkVersionT&& value) { m_serverSdkVersionHasBeenSet = true; m_serverSdkVersion = std::forward<ServerSdkVersionT>(value); }
146 template<typename ServerSdkVersionT = Aws::String>
147 CreateBuildRequest& WithServerSdkVersion(ServerSdkVersionT&& value) { SetServerSdkVersion(std::forward<ServerSdkVersionT>(value)); return *this;}
149 private:
150
151 Aws::String m_name;
152 bool m_nameHasBeenSet = false;
153
154 Aws::String m_version;
155 bool m_versionHasBeenSet = false;
156
157 S3Location m_storageLocation;
158 bool m_storageLocationHasBeenSet = false;
159
160 OperatingSystem m_operatingSystem{OperatingSystem::NOT_SET};
161 bool m_operatingSystemHasBeenSet = false;
162
163 Aws::Vector<Tag> m_tags;
164 bool m_tagsHasBeenSet = false;
165
166 Aws::String m_serverSdkVersion;
167 bool m_serverSdkVersionHasBeenSet = false;
168 };
169
170} // namespace Model
171} // namespace GameLift
172} // 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