AWS SDK for C++  1.9.102
AWS SDK for C++
CreateBuildRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <aws/gamelift/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace GameLift
19 {
20 namespace Model
21 {
22 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateBuild"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
48  inline const Aws::String& GetName() const{ return m_name; }
49 
54  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 
60  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 
66  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
67 
72  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
73 
78  inline CreateBuildRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
79 
84  inline CreateBuildRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 
90  inline CreateBuildRequest& WithName(const char* value) { SetName(value); return *this;}
91 
92 
98  inline const Aws::String& GetVersion() const{ return m_version; }
99 
105  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
106 
112  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
113 
119  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
120 
126  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
127 
133  inline CreateBuildRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
134 
140  inline CreateBuildRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
141 
147  inline CreateBuildRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
148 
149 
158  inline const S3Location& GetStorageLocation() const{ return m_storageLocation; }
159 
168  inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
169 
178  inline void SetStorageLocation(const S3Location& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
179 
188  inline void SetStorageLocation(S3Location&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::move(value); }
189 
198  inline CreateBuildRequest& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
199 
208  inline CreateBuildRequest& WithStorageLocation(S3Location&& value) { SetStorageLocation(std::move(value)); return *this;}
209 
210 
219  inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
220 
229  inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
230 
239  inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
240 
249  inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
250 
259  inline CreateBuildRequest& WithOperatingSystem(const OperatingSystem& value) { SetOperatingSystem(value); return *this;}
260 
269  inline CreateBuildRequest& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;}
270 
271 
283  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
284 
296  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
297 
309  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
310 
322  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
323 
335  inline CreateBuildRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
336 
348  inline CreateBuildRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
349 
361  inline CreateBuildRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
362 
374  inline CreateBuildRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
375 
376  private:
377 
378  Aws::String m_name;
379  bool m_nameHasBeenSet;
380 
381  Aws::String m_version;
382  bool m_versionHasBeenSet;
383 
384  S3Location m_storageLocation;
385  bool m_storageLocationHasBeenSet;
386 
387  OperatingSystem m_operatingSystem;
388  bool m_operatingSystemHasBeenSet;
389 
390  Aws::Vector<Tag> m_tags;
391  bool m_tagsHasBeenSet;
392  };
393 
394 } // namespace Model
395 } // namespace GameLift
396 } // namespace Aws
Aws::GameLift::Model::CreateBuildRequest::WithName
CreateBuildRequest & WithName(Aws::String &&value)
Definition: CreateBuildRequest.h:84
Aws::GameLift::Model::CreateBuildRequest::WithStorageLocation
CreateBuildRequest & WithStorageLocation(S3Location &&value)
Definition: CreateBuildRequest.h:208
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::CreateBuildRequest::WithTags
CreateBuildRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateBuildRequest.h:348
Aws::GameLift::Model::CreateBuildRequest::SetVersion
void SetVersion(Aws::String &&value)
Definition: CreateBuildRequest.h:119
Aws::GameLift::Model::CreateBuildRequest::AddTags
CreateBuildRequest & AddTags(Tag &&value)
Definition: CreateBuildRequest.h:374
Aws::GameLift::Model::CreateBuildRequest::WithOperatingSystem
CreateBuildRequest & WithOperatingSystem(const OperatingSystem &value)
Definition: CreateBuildRequest.h:259
Aws::GameLift::Model::CreateBuildRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateBuildRequest.h:37
Aws::GameLift::Model::CreateBuildRequest::WithName
CreateBuildRequest & WithName(const char *value)
Definition: CreateBuildRequest.h:90
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::CreateBuildRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateBuildRequest.h:309
Aws::GameLift::Model::CreateBuildRequest::SetVersion
void SetVersion(const Aws::String &value)
Definition: CreateBuildRequest.h:112
S3Location.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::CreateBuildRequest::WithName
CreateBuildRequest & WithName(const Aws::String &value)
Definition: CreateBuildRequest.h:78
Aws::GameLift::Model::CreateBuildRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateBuildRequest.h:66
AWSVector.h
OperatingSystem.h
Aws::GameLift::Model::CreateBuildRequest::AddTags
CreateBuildRequest & AddTags(const Tag &value)
Definition: CreateBuildRequest.h:361
Aws::GameLift::Model::CreateBuildRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateBuildRequest.h:54
Aws::GameLift::Model::CreateBuildRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateBuildRequest.h:322
Aws::GameLift::Model::CreateBuildRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::CreateBuildRequest::SetOperatingSystem
void SetOperatingSystem(OperatingSystem &&value)
Definition: CreateBuildRequest.h:249
Aws::GameLift::Model::CreateBuildRequest::WithTags
CreateBuildRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateBuildRequest.h:335
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::CreateBuildRequest::WithVersion
CreateBuildRequest & WithVersion(const char *value)
Definition: CreateBuildRequest.h:147
Aws::GameLift::Model::CreateBuildRequest::SetOperatingSystem
void SetOperatingSystem(const OperatingSystem &value)
Definition: CreateBuildRequest.h:239
Aws::GameLift::Model::CreateBuildRequest::SetVersion
void SetVersion(const char *value)
Definition: CreateBuildRequest.h:126
Aws::GameLift::Model::CreateBuildRequest::SetName
void SetName(const char *value)
Definition: CreateBuildRequest.h:72
Aws::GameLift::Model::CreateBuildRequest::GetOperatingSystem
const OperatingSystem & GetOperatingSystem() const
Definition: CreateBuildRequest.h:219
Aws::GameLift::Model::CreateBuildRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateBuildRequest.h:283
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
AWSString.h
Aws::GameLift::Model::CreateBuildRequest::CreateBuildRequest
CreateBuildRequest()
Aws::GameLift::Model::CreateBuildRequest
Definition: CreateBuildRequest.h:29
Aws::GameLift::Model::CreateBuildRequest::WithVersion
CreateBuildRequest & WithVersion(const Aws::String &value)
Definition: CreateBuildRequest.h:133
Aws::GameLift::Model::CreateBuildRequest::WithOperatingSystem
CreateBuildRequest & WithOperatingSystem(OperatingSystem &&value)
Definition: CreateBuildRequest.h:269
Aws::GameLift::Model::CreateBuildRequest::SetStorageLocation
void SetStorageLocation(S3Location &&value)
Definition: CreateBuildRequest.h:188
Aws::GameLift::Model::CreateBuildRequest::WithStorageLocation
CreateBuildRequest & WithStorageLocation(const S3Location &value)
Definition: CreateBuildRequest.h:198
Aws::GameLift::Model::CreateBuildRequest::GetName
const Aws::String & GetName() const
Definition: CreateBuildRequest.h:48
Aws::GameLift::Model::CreateBuildRequest::GetStorageLocation
const S3Location & GetStorageLocation() const
Definition: CreateBuildRequest.h:158
Aws::GameLift::Model::Tag
Definition: Tag.h:40
Aws::GameLift::Model::CreateBuildRequest::OperatingSystemHasBeenSet
bool OperatingSystemHasBeenSet() const
Definition: CreateBuildRequest.h:229
Aws
Definition: AccessManagementClient.h:15
Aws::GameLift::Model::CreateBuildRequest::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: CreateBuildRequest.h:105
Aws::GameLift::Model::CreateBuildRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::S3Location
Definition: S3Location.h:35
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Tag.h
Aws::GameLift::Model::CreateBuildRequest::GetVersion
const Aws::String & GetVersion() const
Definition: CreateBuildRequest.h:98
Aws::GameLift::Model::CreateBuildRequest::SetStorageLocation
void SetStorageLocation(const S3Location &value)
Definition: CreateBuildRequest.h:178
Aws::GameLift::Model::CreateBuildRequest::WithVersion
CreateBuildRequest & WithVersion(Aws::String &&value)
Definition: CreateBuildRequest.h:140
Aws::GameLift::Model::CreateBuildRequest::StorageLocationHasBeenSet
bool StorageLocationHasBeenSet() const
Definition: CreateBuildRequest.h:168
Aws::GameLift::Model::CreateBuildRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateBuildRequest.h:296
Aws::GameLift::Model::CreateBuildRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateBuildRequest.h:60
Aws::GameLift::Model::OperatingSystem
OperatingSystem
Definition: OperatingSystem.h:17