AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
49 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
50 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
51 inline CreateBuildRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
52 inline CreateBuildRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
53 inline CreateBuildRequest& WithName(const char* value) { SetName(value); return *this;}
55
57
61 inline const Aws::String& GetVersion() const{ return m_version; }
62 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
63 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
64 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
65 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
66 inline CreateBuildRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
67 inline CreateBuildRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
68 inline CreateBuildRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
70
72
82 inline const S3Location& GetStorageLocation() const{ return m_storageLocation; }
83 inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
84 inline void SetStorageLocation(const S3Location& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
85 inline void SetStorageLocation(S3Location&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::move(value); }
86 inline CreateBuildRequest& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
87 inline CreateBuildRequest& WithStorageLocation(S3Location&& value) { SetStorageLocation(std::move(value)); return *this;}
89
91
105 inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
106 inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
107 inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
108 inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
109 inline CreateBuildRequest& WithOperatingSystem(const OperatingSystem& value) { SetOperatingSystem(value); return *this;}
110 inline CreateBuildRequest& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;}
112
114
130 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
131 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
132 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
133 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
134 inline CreateBuildRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
135 inline CreateBuildRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
136 inline CreateBuildRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
137 inline CreateBuildRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
139
141
148 inline const Aws::String& GetServerSdkVersion() const{ return m_serverSdkVersion; }
149 inline bool ServerSdkVersionHasBeenSet() const { return m_serverSdkVersionHasBeenSet; }
150 inline void SetServerSdkVersion(const Aws::String& value) { m_serverSdkVersionHasBeenSet = true; m_serverSdkVersion = value; }
151 inline void SetServerSdkVersion(Aws::String&& value) { m_serverSdkVersionHasBeenSet = true; m_serverSdkVersion = std::move(value); }
152 inline void SetServerSdkVersion(const char* value) { m_serverSdkVersionHasBeenSet = true; m_serverSdkVersion.assign(value); }
153 inline CreateBuildRequest& WithServerSdkVersion(const Aws::String& value) { SetServerSdkVersion(value); return *this;}
154 inline CreateBuildRequest& WithServerSdkVersion(Aws::String&& value) { SetServerSdkVersion(std::move(value)); return *this;}
155 inline CreateBuildRequest& WithServerSdkVersion(const char* value) { SetServerSdkVersion(value); return *this;}
157 private:
158
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
162 Aws::String m_version;
163 bool m_versionHasBeenSet = false;
164
165 S3Location m_storageLocation;
166 bool m_storageLocationHasBeenSet = false;
167
168 OperatingSystem m_operatingSystem;
169 bool m_operatingSystemHasBeenSet = false;
170
171 Aws::Vector<Tag> m_tags;
172 bool m_tagsHasBeenSet = false;
173
174 Aws::String m_serverSdkVersion;
175 bool m_serverSdkVersionHasBeenSet = false;
176 };
177
178} // namespace Model
179} // namespace GameLift
180} // namespace Aws
CreateBuildRequest & WithServerSdkVersion(const Aws::String &value)
AWS_GAMELIFT_API Aws::String SerializePayload() const override
CreateBuildRequest & WithTags(Aws::Vector< Tag > &&value)
CreateBuildRequest & WithVersion(const char *value)
void SetOperatingSystem(OperatingSystem &&value)
CreateBuildRequest & WithName(Aws::String &&value)
const Aws::Vector< Tag > & GetTags() const
CreateBuildRequest & WithVersion(const Aws::String &value)
CreateBuildRequest & WithName(const char *value)
CreateBuildRequest & WithVersion(Aws::String &&value)
void SetTags(Aws::Vector< Tag > &&value)
AWS_GAMELIFT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const Aws::String & GetServerSdkVersion() const
CreateBuildRequest & AddTags(const Tag &value)
const S3Location & GetStorageLocation() const
void SetVersion(const Aws::String &value)
void SetOperatingSystem(const OperatingSystem &value)
void SetServerSdkVersion(const Aws::String &value)
CreateBuildRequest & WithOperatingSystem(const OperatingSystem &value)
CreateBuildRequest & WithName(const Aws::String &value)
void SetStorageLocation(const S3Location &value)
void SetName(const Aws::String &value)
CreateBuildRequest & WithServerSdkVersion(Aws::String &&value)
CreateBuildRequest & WithOperatingSystem(OperatingSystem &&value)
CreateBuildRequest & WithServerSdkVersion(const char *value)
CreateBuildRequest & WithTags(const Aws::Vector< Tag > &value)
CreateBuildRequest & WithStorageLocation(S3Location &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateBuildRequest & AddTags(Tag &&value)
const OperatingSystem & GetOperatingSystem() const
CreateBuildRequest & WithStorageLocation(const S3Location &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