AWS SDK for C++  1.9.104
AWS SDK for C++
CreateScriptRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <aws/core/utils/Array.h>
13 #include <aws/gamelift/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace GameLift
19 {
20 namespace Model
21 {
22 
26  {
27  public:
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 "CreateScript"; }
35 
36  Aws::String SerializePayload() const override;
37 
39 
40 
46  inline const Aws::String& GetName() const{ return m_name; }
47 
53  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
54 
60  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
61 
67  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
68 
74  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
75 
81  inline CreateScriptRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
82 
88  inline CreateScriptRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
89 
95  inline CreateScriptRequest& WithName(const char* value) { SetName(value); return *this;}
96 
97 
103  inline const Aws::String& GetVersion() const{ return m_version; }
104 
110  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
111 
117  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
118 
124  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
125 
131  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
132 
138  inline CreateScriptRequest& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
139 
145  inline CreateScriptRequest& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
146 
152  inline CreateScriptRequest& WithVersion(const char* value) { SetVersion(value); return *this;}
153 
154 
165  inline const S3Location& GetStorageLocation() const{ return m_storageLocation; }
166 
177  inline bool StorageLocationHasBeenSet() const { return m_storageLocationHasBeenSet; }
178 
189  inline void SetStorageLocation(const S3Location& value) { m_storageLocationHasBeenSet = true; m_storageLocation = value; }
190 
201  inline void SetStorageLocation(S3Location&& value) { m_storageLocationHasBeenSet = true; m_storageLocation = std::move(value); }
202 
213  inline CreateScriptRequest& WithStorageLocation(const S3Location& value) { SetStorageLocation(value); return *this;}
214 
225  inline CreateScriptRequest& WithStorageLocation(S3Location&& value) { SetStorageLocation(std::move(value)); return *this;}
226 
227 
236  inline const Aws::Utils::ByteBuffer& GetZipFile() const{ return m_zipFile; }
237 
246  inline bool ZipFileHasBeenSet() const { return m_zipFileHasBeenSet; }
247 
256  inline void SetZipFile(const Aws::Utils::ByteBuffer& value) { m_zipFileHasBeenSet = true; m_zipFile = value; }
257 
266  inline void SetZipFile(Aws::Utils::ByteBuffer&& value) { m_zipFileHasBeenSet = true; m_zipFile = std::move(value); }
267 
276  inline CreateScriptRequest& WithZipFile(const Aws::Utils::ByteBuffer& value) { SetZipFile(value); return *this;}
277 
286  inline CreateScriptRequest& WithZipFile(Aws::Utils::ByteBuffer&& value) { SetZipFile(std::move(value)); return *this;}
287 
288 
300  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
301 
313  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
314 
326  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
327 
339  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
340 
352  inline CreateScriptRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
353 
365  inline CreateScriptRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
366 
378  inline CreateScriptRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
379 
391  inline CreateScriptRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
392 
393  private:
394 
395  Aws::String m_name;
396  bool m_nameHasBeenSet;
397 
398  Aws::String m_version;
399  bool m_versionHasBeenSet;
400 
401  S3Location m_storageLocation;
402  bool m_storageLocationHasBeenSet;
403 
404  Aws::Utils::ByteBuffer m_zipFile;
405  bool m_zipFileHasBeenSet;
406 
407  Aws::Vector<Tag> m_tags;
408  bool m_tagsHasBeenSet;
409  };
410 
411 } // namespace Model
412 } // namespace GameLift
413 } // namespace Aws
Aws::GameLift::Model::CreateScriptRequest::WithStorageLocation
CreateScriptRequest & WithStorageLocation(S3Location &&value)
Definition: CreateScriptRequest.h:225
Aws::GameLift::Model::CreateScriptRequest::SetStorageLocation
void SetStorageLocation(S3Location &&value)
Definition: CreateScriptRequest.h:201
Aws::GameLift::Model::CreateScriptRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateScriptRequest.h:34
Aws::GameLift::Model::CreateScriptRequest::SetVersion
void SetVersion(const Aws::String &value)
Definition: CreateScriptRequest.h:117
Aws::GameLift::Model::CreateScriptRequest::VersionHasBeenSet
bool VersionHasBeenSet() const
Definition: CreateScriptRequest.h:110
Aws::GameLift::Model::CreateScriptRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateScriptRequest.h:300
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::GameLift::Model::CreateScriptRequest::WithZipFile
CreateScriptRequest & WithZipFile(const Aws::Utils::ByteBuffer &value)
Definition: CreateScriptRequest.h:276
Aws::GameLift::Model::CreateScriptRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateScriptRequest.h:326
Aws::GameLift::Model::CreateScriptRequest::GetName
const Aws::String & GetName() const
Definition: CreateScriptRequest.h:46
Aws::GameLift::Model::CreateScriptRequest::AddTags
CreateScriptRequest & AddTags(Tag &&value)
Definition: CreateScriptRequest.h:391
Aws::GameLift::Model::CreateScriptRequest::ZipFileHasBeenSet
bool ZipFileHasBeenSet() const
Definition: CreateScriptRequest.h:246
Aws::GameLift::Model::CreateScriptRequest::GetStorageLocation
const S3Location & GetStorageLocation() const
Definition: CreateScriptRequest.h:165
Aws::GameLift::Model::CreateScriptRequest::WithStorageLocation
CreateScriptRequest & WithStorageLocation(const S3Location &value)
Definition: CreateScriptRequest.h:213
Aws::GameLift::Model::CreateScriptRequest::GetZipFile
const Aws::Utils::ByteBuffer & GetZipFile() const
Definition: CreateScriptRequest.h:236
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
S3Location.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GameLift::Model::CreateScriptRequest::AddTags
CreateScriptRequest & AddTags(const Tag &value)
Definition: CreateScriptRequest.h:378
Aws::GameLift::Model::CreateScriptRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateScriptRequest.h:339
Aws::GameLift::Model::CreateScriptRequest::WithVersion
CreateScriptRequest & WithVersion(const Aws::String &value)
Definition: CreateScriptRequest.h:138
AWSVector.h
Aws::GameLift::Model::CreateScriptRequest::StorageLocationHasBeenSet
bool StorageLocationHasBeenSet() const
Definition: CreateScriptRequest.h:177
Aws::GameLift::Model::CreateScriptRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateScriptRequest.h:53
Aws::GameLift::Model::CreateScriptRequest::SetZipFile
void SetZipFile(const Aws::Utils::ByteBuffer &value)
Definition: CreateScriptRequest.h:256
Aws::GameLift::Model::CreateScriptRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateScriptRequest.h:60
Aws::GameLift::Model::CreateScriptRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateScriptRequest.h:313
GameLift_EXPORTS.h
GameLiftRequest.h
Aws::GameLift::Model::CreateScriptRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::GameLift::Model::CreateScriptRequest::WithZipFile
CreateScriptRequest & WithZipFile(Aws::Utils::ByteBuffer &&value)
Definition: CreateScriptRequest.h:286
Aws::GameLift::Model::CreateScriptRequest::WithTags
CreateScriptRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateScriptRequest.h:365
Aws::GameLift::Model::CreateScriptRequest::WithVersion
CreateScriptRequest & WithVersion(const char *value)
Definition: CreateScriptRequest.h:152
Aws::GameLift::Model::CreateScriptRequest::SetVersion
void SetVersion(Aws::String &&value)
Definition: CreateScriptRequest.h:124
Aws::GameLift::GameLiftRequest
Definition: GameLiftRequest.h:17
Aws::GameLift::Model::CreateScriptRequest::SetVersion
void SetVersion(const char *value)
Definition: CreateScriptRequest.h:131
Aws::Utils::Array< unsigned char >
AWSString.h
Aws::GameLift::Model::CreateScriptRequest::WithVersion
CreateScriptRequest & WithVersion(Aws::String &&value)
Definition: CreateScriptRequest.h:145
Aws::GameLift::Model::CreateScriptRequest::CreateScriptRequest
CreateScriptRequest()
Aws::GameLift::Model::CreateScriptRequest::WithName
CreateScriptRequest & WithName(const Aws::String &value)
Definition: CreateScriptRequest.h:81
Aws::GameLift::Model::CreateScriptRequest
Definition: CreateScriptRequest.h:26
Aws::GameLift::Model::CreateScriptRequest::SetName
void SetName(const char *value)
Definition: CreateScriptRequest.h:74
Aws::GameLift::Model::CreateScriptRequest::SetStorageLocation
void SetStorageLocation(const S3Location &value)
Definition: CreateScriptRequest.h:189
Aws::GameLift::Model::CreateScriptRequest::WithName
CreateScriptRequest & WithName(const char *value)
Definition: CreateScriptRequest.h:95
Aws::GameLift::Model::CreateScriptRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateScriptRequest.h:67
Aws::GameLift::Model::Tag
Definition: Tag.h:40
Aws
Definition: AccessManagementClient.h:15
Array.h
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::CreateScriptRequest::GetVersion
const Aws::String & GetVersion() const
Definition: CreateScriptRequest.h:103
Aws::GameLift::Model::CreateScriptRequest::WithName
CreateScriptRequest & WithName(Aws::String &&value)
Definition: CreateScriptRequest.h:88
Aws::GameLift::Model::CreateScriptRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::GameLift::Model::CreateScriptRequest::WithTags
CreateScriptRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateScriptRequest.h:352
Aws::GameLift::Model::CreateScriptRequest::SetZipFile
void SetZipFile(Aws::Utils::ByteBuffer &&value)
Definition: CreateScriptRequest.h:266