AWS SDK for C++  1.8.71
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 
41  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
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 
157  inline const S3Location& GetStorageLocation() const{ return m_storageLocation; }
158 
166  inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
167 
175  inline void SetStorageLocation(const S3Location& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
176 
184  inline void SetStorageLocation(S3Location&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::move(value); }
185 
193  inline CreateBuildRequest& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
194 
202  inline CreateBuildRequest& WithStorageLocation(S3Location&& value) { SetStorageLocation(std::move(value)); return *this;}
203 
204 
213  inline const OperatingSystem& GetOperatingSystem() const{ return m_operatingSystem; }
214 
223  inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; }
224 
233  inline void SetOperatingSystem(const OperatingSystem& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; }
234 
243  inline void SetOperatingSystem(OperatingSystem&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); }
244 
253  inline CreateBuildRequest& WithOperatingSystem(const OperatingSystem& value) { SetOperatingSystem(value); return *this;}
254 
263  inline CreateBuildRequest& WithOperatingSystem(OperatingSystem&& value) { SetOperatingSystem(std::move(value)); return *this;}
264 
265 
277  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
278 
290  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
291 
303  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
304 
316  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
317 
329  inline CreateBuildRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
330 
342  inline CreateBuildRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
343 
355  inline CreateBuildRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
356 
368  inline CreateBuildRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
369 
370  private:
371 
372  Aws::String m_name;
373  bool m_nameHasBeenSet;
374 
375  Aws::String m_version;
376  bool m_versionHasBeenSet;
377 
378  S3Location m_storageLocation;
379  bool m_storageLocationHasBeenSet;
380 
381  OperatingSystem m_operatingSystem;
382  bool m_operatingSystemHasBeenSet;
383 
384  Aws::Vector<Tag> m_tags;
385  bool m_tagsHasBeenSet;
386  };
387 
388 } // namespace Model
389 } // namespace GameLift
390 } // namespace Aws
CreateBuildRequest & WithName(const Aws::String &value)
CreateBuildRequest & WithVersion(const Aws::String &value)
CreateBuildRequest & WithStorageLocation(const S3Location &value)
CreateBuildRequest & WithOperatingSystem(OperatingSystem &&value)
#define AWS_GAMELIFT_API
CreateBuildRequest & WithVersion(const char *value)
const Aws::String & GetVersion() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
void SetName(const Aws::String &value)
CreateBuildRequest & WithVersion(Aws::String &&value)
CreateBuildRequest & WithTags(Aws::Vector< Tag > &&value)
CreateBuildRequest & WithName(Aws::String &&value)
void SetOperatingSystem(OperatingSystem &&value)
void SetStorageLocation(const S3Location &value)
CreateBuildRequest & WithStorageLocation(S3Location &&value)
void SetOperatingSystem(const OperatingSystem &value)
void SetVersion(const Aws::String &value)
CreateBuildRequest & AddTags(Tag &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
const OperatingSystem & GetOperatingSystem() const
const Aws::Vector< Tag > & GetTags() const
CreateBuildRequest & AddTags(const Tag &value)
virtual const char * GetServiceRequestName() const override
void SetTags(const Aws::Vector< Tag > &value)
CreateBuildRequest & WithName(const char *value)
const S3Location & GetStorageLocation() const
CreateBuildRequest & WithOperatingSystem(const OperatingSystem &value)
CreateBuildRequest & WithTags(const Aws::Vector< Tag > &value)
void SetTags(Aws::Vector< Tag > &&value)